1// BEGIN SMARTSCROLL (unless menu or search open) 2var didScroll; 3var lastScrollTop = 0; 4var delta = 50; 5var navbarHeight = jQuery('.taptap-menu-button-wrapper, .taptap-search-button-wrapper, .taptap-logo-wrapper, .taptap-header').outerHeight(); 6 7jQuery(window).scroll(function(event){ 8 didScroll = true; 9}); 10 11setInterval(function() { 12 if (didScroll) { 13 hasScrolled(); 14 didScroll = false; 15 } 16}, 50); 17 18function hasScrolled() { 19 if(jQuery('.taptap-background-color').hasClass('taptap-background-color-active') || jQuery('.taptap-search-wrapper').hasClass('taptap-search-wrapper-active') ) { } else { 20 var st = jQuery(this).scrollTop(); 21 22 // Make sure they scroll more than delta 23 if(Math.abs(lastScrollTop - st) <= delta) 24 return; 25 26 // If they scrolled down and are past the navbar, add class .nav-up. 27 // This is necessary so you never see what is "behind" the navbar. 28 if (st > lastScrollTop && st > navbarHeight){ 29 // Scroll Down 30 jQuery('.taptap-menu-button-wrapper, .taptap-search-button-wrapper, .taptap-logo-wrapper, .taptap-header').addClass('taptap-smart-header-hide'); 31 } else { 32 // Scroll Up 33 if(st + jQuery(window).height() < jQuery(document).height()) { 34 jQuery('.taptap-menu-button-wrapper, .taptap-search-button-wrapper, .taptap-logo-wrapper, .taptap-header').removeClass('taptap-smart-header-hide'); 35 } 36 } 37 38 lastScrollTop = st; 39 } 40} 41// END SMARTSCROLL (unless menu or search open)
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.