1/* global radiateScriptParam */ 2jQuery(document).ready(function() { 3 4 if( radiateScriptParam.radiate_image_link === ''){ 5 var divheight = jQuery('.header-wrap').height()+'px'; 6 jQuery('body').css({ 'margin-top': divheight }); 7 } 8 9 jQuery('.header-search-icon').click(function(){ 10 jQuery('#masthead .search-form').toggle('slow'); 11 }); 12 13 jQuery(window).bind('scroll', function() { 14 header_image_effect(); 15 }); 16 17 // Scroll to top 18 jQuery('#scroll-up').hide(); 19 jQuery(function () { 20 jQuery(window).scroll(function () { 21 if (jQuery(this).scrollTop() > 1000) { 22 jQuery('#scroll-up').fadeIn(); 23 } else { 24 jQuery('#scroll-up').fadeOut(); 25 } 26 }); 27 jQuery('a#scroll-up').click(function () { 28 jQuery('body,html').animate({ 29 scrollTop: 0 30 }, 800); 31 return false; 32 }); 33 }); 34 35}); 36 37 38function header_image_effect() { 39 var scrollPosition = jQuery(window).scrollTop(); 40 jQuery('#parallax-bg').css('top', (0 - (scrollPosition * 0.2)) + 'px'); 41} 42 43jQuery(document).ready(function() { 44 jQuery('.better-responsive-menu #site-navigation .menu-toggle').click(function() { 45 jQuery('.better-responsive-menu #site-navigation .menu-primary-container > ul,.better-responsive-menu #site-navigation .menu > ul').slideToggle('slow'); 46 }); 47});
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.