PageSourceSearch

https://ctu.int/wp-content/themes/ctu/assets/ctu.js?v=6ab58d3d52bb1&ver=1

js ctu.int collected 2026-09-24 20:51:35 UTC 4,612 bytes, 126 lines download raw bytes

1jQuery(document).ready(function() {
2	
3	jQuery('.hp-custom-link').click(function(event) {
4		event.preventDefault();
5		console.log( jQuery(this).attr('href') );
6	});
7	
8	
9	jQuery('.main-header-bar').mouseleave(function() {
10		
11		//jQuery('.main-header-bar').css('height','0px');
12		//console.log('left');
13		//jQuery('.main-header-bar').toggleClass('maximumHeight');
14
15		
16		
17		
18		/*setTimeout(function(){ jQuery('.main-header-bar').css(''); 
19		console.log('closed twice');
20		jQuery('.main-header-bar').removeAttr("style");
21		jQuery('.main-header-bar').css('')
22		
23		}, 500);*/
24		// setTimeout(function(){ jQuery('.main-header-bar').removeAttr('style'); }, 500);
25		
26		
27	});
28
29    //jQuery('.in_progress').click(function(){
30       // alert("Development in Progress");
31    //});
32
33    // Set the Height and dimensions of the Post Thumbnail
34    if(jQuery('.single-post .post-thumb-img-content.post-thumb').length){
35        win_height = jQuery(window).height();
36        //alert(win_height);
37        feature_img_con_h = win_height - 375;           //  height of feature img container
38        //alert(feature_img_con_h);
39        jQuery('.single-post .post-thumb-img-content.post-thumb').css('max-height',feature_img_con_h);
40        feature_img_height = jQuery('.single-post .post-thumb-img-content.post-thumb').height();
41        //alert(feature_img_height);
42        feature_img_offset = (win_height - feature_img_height) / 2;
43        //alert(feature_img_offset);
44        jQuery('.single-post .attachment-large.size-large.wp-post-image').css('margin-top', - feature_img_offset);       
45    }
46    
47
48    if(jQuery('.hp_news_grid').length){
49        setTimeout(() => {
50            
51        
52        //alert('grid');
53        gw = jQuery(".hp_news_grid.col-md-6").width();  // grid width
54        //alert(gw);
55        //alert(jQuery("body").width());
56        gh = gw;        // grid height
57        gmw = gw * 2    // grid max width
58        jQuery(".hp_news_grid.col-md-6").height(gh);
59        jQuery(".hp_news_grid.col-md-12").height(gh);
60        jQuery('.grid_img').height(gh);
61
62
63        jQuery('.hp_news_grid img').each(function(){
64            rgw = jQuery(this).parent().parent().parent().width();  // real grid width
65            //alert(rgw);
66            parentClass = jQuery(this).parent().parent().parent().attr('class');
67            //alert(parentClass);
68            /*gw = jQuery(this).parent().parent().width();  // grid width
69            gh = gw;        // grid height
70            gmw = gw * 2    // grid max width
71            jQuery(this).parent().parent().height(gh);
72            //jQuery(".hp_news_grid.col-md-12").height(gh);*/
73            jQuery(this).parent().height(gh);
74
75
76
77            iw = jQuery(this).width();
78            ih = jQuery(this).height();
79            if(iw > ih){                // Landscape
80                iar = iw / ih           // img aspect ratio
81                riw = gw * iar;         // resized img width
82                ios = - (riw - gw) / 2  // img offset
83                rih = riw / iar;
84            }
85            
86            //jQuery(this).height(gh);
87            jQuery(this).css('max-width',gmw);
88            if(parentClass.indexOf("col-md-6") >= 0){
89                jQuery(this).css('max-width',gmw);
90                jQuery(this).width(riw);
91                jQuery(this).css('margin-left', ios);
92                jQuery(this).parent().parent().parent().find('.grid_title').css('width',gw);
93            }else{
94                jQuery(this).css('max-width',gmw + 4);
95                width_adj = rgw - riw;
96                jQuery(this).width(riw + width_adj);
97                jQuery(this).parent().parent().parent().find('.grid_title').css('width',rgw);
98                if(rih > gh){
99                    top_offset = (gh - rih) / 2;
100                    jQuery(this).css('margin-top', top_offset);
101                }
102            }
103
104            
105            
106            //gtp = jQuery(this).parent().find('.grid_title').css('padding-left');     // Grid Title Padding
107            //gtp = 20;     // Grid Title Padding
108           // gtw = gw - (parseInt(gtp) * 2);                                 // Grid Title Width
109            //alert(gw);
110            //jQuery(this).parent().find('.grid_title').css('max-width',gw);
111            
112
113
114            
115            if(iw > ih){ // Landscape
116                //jQuery(this).addClass('h100');
117                
118                //jQuery('.grid_img').height(ih);
119            }else{ //portrait
120                //jQuery(this).addClass('w100');
121                //jQuery('.hp_news_grid.col-md-6 img').width(iw);
122            }
123        }); 
124    }, 1000);  
125    }
126});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.