1jQuery(window).load(function() { 2 if( radiateScriptParam.push_height_key == '1' ){ 3 var divheight = jQuery('.header-wrap').height()+'px'; 4 var divheight_hdt_2 = jQuery('.header-wrap').height() + 20 +'px'; 5 jQuery('body').css({ "margin-top": divheight }); 6 jQuery('body.radiate-hdt-2').css({ "margin-top": divheight_hdt_2 }); 7 } 8 9 jQuery(".header-search-icon").click(function(){ 10 jQuery("#masthead .search-form").toggle('slow'); 11 }); 12 13 jQuery(window).bind('scroll', function(e) { 14 header_image_effect(); 15 }); 16 if( radiateScriptParam.header_type_key == "type_2" ) { 17 var offset = 20; 18 } else { 19 var offset = 0; 20 } 21 22 if( radiateScriptParam.responsiveness == '1' ){ 23 responsive_header_image(); 24 } 25 26 //runs when responsive is on for header image 27 function responsive_header_image() { 28 if (jQuery(window).width() <= 768){ 29 var divheight = jQuery('.header-wrap').height()+ offset; 30 jQuery('#parallax-bg').css({ "top": divheight }); 31 32 } 33 var headerImgHeight = jQuery('.header-image-wrap').height()+'px'; 34 jQuery("#masthead").css({"margin-bottom": headerImgHeight }); 35 36 jQuery( window ).resize(function() { 37 if (jQuery(window).width() <= 768){ 38 var divheight = jQuery('.header-wrap').height()+ offset; 39 jQuery('#parallax-bg').css({ "top": divheight }); 40 41 } else { 42 var headerImgHeight = jQuery('.header-image-wrap').height()+'px'; 43 jQuery("#masthead").css({"margin-bottom": headerImgHeight }); 44 45 } 46 var headerImgHeight = jQuery('.header-image-wrap').height()+'px'; 47 jQuery("#masthead").css({"margin-bottom": headerImgHeight }); 48 }); 49 } 50 function header_image_effect() { 51 if( radiateScriptParam.push_height_key == '0' ) { 52 53 if (jQuery(window).width() <= 768){ 54 var divheight = jQuery('.header-wrap').height()+ offset; 55 56 //parallax effect code 57 var scrollPosition = jQuery(window).scrollTop(); 58 jQuery('#parallax-bg').css('top', (parseInt(divheight) - (scrollPosition * .2)) + 'px'); 59 } else { 60 var scrollPosition = jQuery(window).scrollTop(); 61 jQuery('#parallax-bg').css('top', (0 - (scrollPosition * .2)) + 'px'); 62 } 63 } else { 64 var scrollPosition = jQuery(window).scrollTop(); 65 jQuery('#parallax-bg').css('top', (0 - (scrollPosition * .2)) + 'px') 66 67 } 68 69 } 70 71 //runs when slider is activated 72 if( radiateScriptParam.slider_on_off_check == '1' ) { 73 //runs when window width is less than particular given pixels 74 var imgHeight = jQuery('.single-slide').height(); 75 if (jQuery(window).width() <= 768){ 76 var divheight = jQuery('.header-wrap').height()+ offset +'px'; 77 var divheightint = jQuery('.header-wrap').height()+ offset; 78 jQuery('#parallax-bg').css({ "top": divheight }); 79 jQuery('#masthead').css({ "height": parseInt(imgHeight) + parseInt(divheightint) }); 80 } else { 81 jQuery('#masthead').css({ "height": parseInt(imgHeight) }); 82 } 83 jQuery('.slider-nav').css({ "top": parseInt(imgHeight/2) }); 84 85 //runs when window is resized 86 jQuery( window ).resize(function() { 87 var imgHeight = jQuery('.single-slide').height(); 88 jQuery('.slider-nav').css({ "top": parseInt(imgHeight/2) }); 89 if (jQuery(window).width() <= 768) { 90 var divheight = jQuery('.header-wrap').height()+ offset +'px'; 91 var divheightint = jQuery('.header-wrap').height()+ offset; 92 jQuery('#parallax-bg').css({ "top": divheight }); 93 jQuery('#masthead').css({ "height": parseInt(imgHeight) + parseInt(divheightint) }); 94 } else { 95 96 jQuery('#masthead').css({ "height": parseInt(imgHeight) }); 97 } 98 }); 99 } 100 if( radiateScriptParam.header_type_key == 'type_2' && radiateScriptParam.header_resize != '1' ){ 101 var diveImgHeight = jQuery('#header-logo-image').height()+'px'; 102 jQuery(function(){ 103 jQuery('.header-wrap').data('size','big'); 104 }); 105 jQuery(window).scroll(function(){ 106 if(jQuery(document).scrollTop() > 200) 107 { 108 if(jQuery('.header-wrap').data('size') == 'big') 109 { 110 jQuery('.header-wrap').data('size','small'); 111 jQuery('.header-wrap').stop().animate({ 112 paddingTop:'0px', 113 paddingBottom:'0px' 114 },100); 115 jQuery('#site-navigation').stop().animate({ 116 marginTop:'0px' 117 },100); 118 jQuery('#header-logo-image').stop().animate({ 119 height:'48px', 120 paddingTop: '4px' 121 },100); 122 if( radiateScriptParam.header_type_key == 'type_2' && radiateScriptParam.push_he
122ight_key == '1' ){ 123 jQuery('body').stop().animate({ 124 marginTop:'48px' 125 },100); 126 } 127 jQuery('.header-search-icon').stop().animate({ 128 paddingTop:'7px', 129 paddingBottom:'7px' 130 },100); 131 jQuery('.site-description').stop().animate({ 132 opacity:'0', 133 height:'0px' 134 },100); 135 136 } 137 } 138 else 139 { 140 if(jQuery('.header-wrap').data('size') == 'small') 141 { 142 jQuery('.header-wrap').data('size','big'); 143 jQuery('.header-wrap').stop().animate({ 144 paddingTop:'10px', 145 paddingBottom:'10px' 146 },100); 147 jQuery('#site-navigation').stop().animate({ 148 marginTop:'8px' 149 },100); 150 jQuery('#header-logo-image').stop().animate({ 151 height: diveImgHeight, 152 paddingTop: '0px' 153 },100); 154 if( radiateScriptParam.header_type_key == 'type_2' && radiateScriptParam.push_height_key == '1' ){ 155 jQuery('body').stop().animate({ 156 marginTop: divheight_hdt_2 157 },1200); 158 } 159 jQuery('.header-search-icon').stop().animate({ 160 paddingTop:'14px', 161 paddingBottom:'14px' 162 },100); 163 jQuery('.site-description').stop().animate({ 164 opacity:'1', 165 height:'100%' 166 },100); 167 168 } 169 } 170 }); 171 } 172 173});
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.