1var lastScrollTop = 0; 2window.addEventListener("scroll", function(){ 3 var height_preheader = 40; 4 var st = window.pageYOffset || document.documentElement.scrollTop; 5 if (st > height_preheader){ 6 $('#header').addClass('sticky'); 7 $('body').addClass('mininav'); 8 } else if (st < height_preheader){ 9 $('#header').removeClass('sticky'); 10 $('body').removeClass('mininav'); 11 } 12 13 if (st > lastScrollTop && st > '120'){ 14 $('#header').removeClass('isfixed'); 15 $('body').addClass('petitnav'); 16 }else { 17 $('body').removeClass('petitnav'); 18 $('#header').addClass('isfixed'); 19 } 20 21 lastScrollTop = st <= 0 ? 0 : st; 22}, false); 23 24 25 26$(window).on('load', function () { 27 $(".page_loader").fadeOut("slow"); 28 29 var height_menu = $('aside .navbar').height(); 30 var height_foot_menu = $('aside .foot').height(); 31 var height_sidebar = $('aside').height(); 32 if((height_menu+height_foot_menu)<height_sidebar){ 33 $('aside .foot').addClass('isfixed'); 34 } 35}); 36 37$('.js-menu-toggle').click(function(e) { 38 var $this = $(this); 39 if ( $('body').hasClass('show-sidebar') ) { 40 $('body').removeClass('show-sidebar'); 41 $this.removeClass('active'); 42 } else { 43 $('body').addClass('show-sidebar'); 44 $this.addClass('active'); 45 } 46 e.preventDefault(); 47 48}); 49 50$('.overlay').click(function(e) { 51 if ( $('body').hasClass('show-sidebar') ) { 52 $('body').removeClass('show-sidebar'); 53 $('body').find('.js-menu-toggle').removeClass('active'); 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.