1$j(document).ready(function(){ 2 3 $j(".nav li a").each(function() { 4 if ($j(this).next().length > 0) { 5 $j(this).addClass("parent"); 6 } 7 }); 8 9}); 10 11 12 13$j(function() { 14 15 var pull = $j('.toggleMenu'); 16 menu = $j('.nav'); 17 menuHeight = menu.height(); 18 19 $j(pull).on('click', function(e) { 20 e.preventDefault(); 21 $j(this).toggleClass('active'); 22 menu.slideToggle(); 23 }); 24 25 26 27 function query() { 28 var w = $j(window).width(); 29 if (w <= 789){ 30 31 $j(".nav li").unbind('mouseenter mouseleave'); 32 $j(".nav li a.parent").unbind('click').bind('click', function(e) { 33 // must be attached to anchor element to prevent bubbling 34 e.preventDefault(); 35 $j(this).parent("li").toggleClass("hover"); 36 }); 37 38 } 39 else if (w > 789 && menu.is(':hidden')) { 40 menu.removeAttr('style'); 41 } 42 43 else if (w > 789) { 44 $j(".nav li").removeClass("hover"); 45 $j(".nav li a").unbind('click'); 46 } 47 } 48 49var w = $j(window).width(); 50 if (w > 768) { 51var navOffset = jQuery(".nav").offset().top; 52 53 jQuery(window).scroll(function(){ 54 var scrollPos = jQuery(window).scrollTop(); 55 56 if (scrollPos >= navOffset) { 57 jQuery("nav").addClass("fixed"); 58 jQuery(".nav-fixed-padding").addClass("fixed"); 59 } else { 60 jQuery("nav").removeClass("fixed"); 61 jQuery(".nav-fixed-padding").removeClass("fixed"); 62 } 63 64 }); 65 } 66 67 $j(window).resize(function(){ 68 69 query(); 70 }); 71 72 73 74 $j(document).ready(function(){ 75 76 query(); 77 }); 78 79 80});
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.