1$(function() { 2 3 var overlay = $("<div class=\"left-menu-overlay\"></div>"); 4 var header = $('.js-left-menu-mobile'), 5 scrollPrev = 0; 6 7 $(window).scroll(function() { 8 if ($(window).width() <= 860) 9 { 10 var scrolled = $(window).scrollTop(); 11 12 if (scrolled > 330) 13 { 14 header.addClass("fixed"); 15 } 16 else 17 { 18 header.removeClass("fixed"); 19 } 20 21 22 if ( scrolled > 330 && scrolled > scrollPrev ) { 23 header.removeClass('out'); 24 } else { 25 header.addClass('out'); 26 } 27 scrollPrev = scrolled; 28 } 29 }); 30 31 32 $(document).on("click", ".js-left-menu-mobile .left-menu-mobile-selection", function() { 33 34 35 if ($(this).hasClass("open")) 36 { 37 $(this).removeClass("open"); 38 $(this).next().slideUp(); 39 $("body").find(".left-menu-overlay").remove(); 40 $("body").css("overflow", ""); 41 } 42 else 43 { 44 $(this).addClass("open"); 45 $(this).next().slideDown(); 46 47 48 if (scrollPrev > 330) 49 { 50 $("body").append(overlay); 51 $("body").css("overflow", "hidden"); 52 } 53 } 54 }); 55});
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.