1jQuery(window).load(function() { 2 if(jQuery('#slider') > 0) { 3 jQuery('.nivoSlider').nivoSlider({ 4 effect:'fade', 5 }); 6 } else { 7 jQuery('#slider').nivoSlider({ 8 effect:'fade', 9 }); 10 } 11}); 12 13 14// NAVIGATION CALLBACK 15var ww = jQuery(window).width(); 16jQuery(document).ready(function() { 17 jQuery(".main_menu li a").each(function() { 18 if (jQuery(this).next().length > 0) { 19 jQuery(this).addClass("parent"); 20 }; 21 }) 22 jQuery(".toggleMenu").click(function(e) { 23 e.preventDefault(); 24 jQuery(this).toggleClass("active"); 25 jQuery(".main_menu").slideToggle('fast'); 26 }); 27 adjustMenu(); 28}) 29 30// navigation orientation resize callbak 31jQuery(window).bind('resize orientationchange', function() { 32 ww = jQuery(window).width(); 33 adjustMenu(); 34}); 35 36var adjustMenu = function() { 37 if (ww < 981) { 38 jQuery(".toggleMenu").css("display", "block"); 39 if (!jQuery(".toggleMenu").hasClass("active")) { 40 jQuery(".main_menu").hide(); 41 } else { 42 jQuery(".main_menu").show(); 43 } 44 jQuery(".main_menu li").unbind('mouseenter mouseleave'); 45 } else { 46 jQuery(".toggleMenu").css("display", "none"); 47 jQuery(".main_menu").show(); 48 jQuery(".main_menu li").removeClass("hover"); 49 jQuery(".main_menu li a").unbind('click'); 50 jQuery(".main_menu li").unbind('mouseenter mouseleave').bind('mouseenter mouseleave', function() { 51 jQuery(this).toggleClass('hover'); 52 }); 53 } 54} 55 56jQuery(window).bind('scroll', function() { 57 if (jQuery(window).scrollTop() >= 80) { 58 jQuery('.site-header').addClass('fixed-header'); 59 } 60 else { 61 jQuery('.site-header').removeClass('fixed-header'); 62 } 63}); 64 65jQuery(document).ready(function(){ 66 // hide #back-top first 67 jQuery("#back-top").hide(); 68 // fade in #back-top 69 jQuery(function () { 70 jQuery(window).scroll(function () { 71 if (jQuery(this).scrollTop() > 0) { 72 jQuery('#back-top').fadeIn(); 73 } else { 74 jQuery('#back-top').fadeOut(); 75 } 76 }); 77 // scroll body to 0px on click 78 jQuery('#back-top').click(function () { 79 jQuery('body,html').animate({ 80 scrollTop: 0 81 }, 500); 82 return false; 83 }); 84 }); 85 86});
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.