1jQuery(document).ready(function($) { 2 3 /* ======= Scrollspy ======= */ 4 $('body').scrollspy({ target: '#header', offset: 400}); 5 6 /* ======= Fixed header when scrolled ======= */ 7 8 $(window).bind('scroll', function() { 9 if ($(window).scrollTop() > 50) { 10 $('#header').addClass('navbar-fixed-top'); 11 } 12 else { 13 $('#header').removeClass('navbar-fixed-top'); 14 } 15 }); 16 17 /* ======= ScrollTo ======= */ 18 $('a.scrollto').on('click', function(e){ 19 20 //store hash 21 var target = this.hash; 22 23 e.preventDefault(); 24 25 $('body').scrollTo(target, 800, {offset: -70, 'axis':'y', easing:'easeOutQuad'}); 26 //Collapse mobile menu after clicking 27 if ($('.navbar-collapse').hasClass('show')){ 28 $('.navbar-collapse').removeClass('show'); 29 } 30 31 }); 32 33});
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.