1 2var ww = document.body.clientWidth; 3 4$(document).ready(function() { 5 /*$(".nev_menu li a").each(function() { 6 if ($(this).next().length > 0) { 7 $(this).addClass("parent"); 8 }; 9 })*/ 10 11 $(".toggleMenu").click(function(e) { 12 e.preventDefault(); 13 $(this).toggleClass("active"); 14 $(".nev_menu").toggle(); 15 $("header").toggleClass("active"); 16 }); 17 adjustMenu(); 18}) 19 20$(window).bind('resize orientationchange', function() { 21 ww = document.body.clientWidth; 22 adjustMenu(); 23}); 24 25var adjustMenu = function() { 26 if (ww < 996) { 27 $(".toggleMenu").css("display", "inline-block"); 28 if (!$(".toggleMenu").hasClass("active")) { 29 $(".nev_menu").hide(); 30 31 } else { 32 $(".nev_menu").show(); 33 34 } 35 $(".nev_menu li").unbind('mouseenter mouseleave'); 36 $(".nev_menu li").each(function () { 37 if ($(this).find('a').next().length > 0) { 38 $(this).addClass("parent"); 39 }; 40 }) 41 $(".nev_menu li .arrowSpan").unbind('click').bind('click', function (e) { 42 // must be attached to anchor element to prevent bubbling 43 e.preventDefault(); 44 $(this).parent("li").toggleClass("hover"); 45 }); 46 } 47 else if (ww >= 996) { 48 $(".toggleMenu").css("display", "none"); 49 $(".nev_menu").show(); 50 $(".nev_menu li").removeClass("hover"); 51 /*$(".nev_menu li a").unbind('click'); 52 $(".nev_menu li").unbind('mouseenter mouseleave').bind('mouseenter mouseleave', function() { 53 // must be attached to li so that mouseleave is not triggered when hover over submenu 54 $(this).toggleClass('hover'); 55 });*/ 56 } 57} 58 59 60
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.