1/* 2 * Application 3 */ 4 5$(document).tooltip({ 6 selector: "[data-toggle=tooltip]" 7}) 8 9/* 10 * Auto hide navbar 11 */ 12jQuery(document).ready(function($){ 13 var $header = $('.navbar-autohide'), 14 scrolling = false, 15 previousTop = 0, 16 currentTop = 0, 17 scrollDelta = 10, 18 scrollOffset = 150 19 20 $(window).on('scroll', function(){ 21 if (!scrolling) { 22 scrolling = true 23 24 if (!window.requestAnimationFrame) { 25 setTimeout(autoHideHeader, 250) 26 } 27 else { 28 requestAnimationFrame(autoHideHeader) 29 } 30 } 31 }) 32 33 function autoHideHeader() { 34 var currentTop = $(window).scrollTop() 35 36 // Scrolling up 37 if (previousTop - currentTop > scrollDelta) { 38 $header.removeClass('is-hidden') 39 } 40 else if (currentTop - previousTop > scrollDelta && currentTop > scrollOffset) { 41 // Scrolling down 42 $header.addClass('is-hidden') 43 } 44 45 previousTop = currentTop 46 scrolling = false 47 } 48});
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.