1jQuery(document).ready(function($) { 2 $('#scroll-top').hide(); 3 4 $('#scroll-top').on('click', function(e) { 5 e.preventDefault(); 6 7 $('html, body').animate({ 8 scrollTop: 0 9 }, 1000); 10 }); 11 12 $(window).scroll(function() { 13 var scrollTop = $(this).scrollTop(); 14 15 var scrollThreshold = 375; 16 17 if (scrollTop > scrollThreshold) { 18 $('#scroll-top').fadeIn(); 19 } else { 20 $('#scroll-top').fadeOut(); 21 } 22 }); 23 24 $('a[href*="#"]').on('click', function(e) { 25 if (this.hash !== "") { 26 e.preventDefault(); 27 28 var target = this.hash; 29 30 var offset = $(target).offset().top; 31 32 $('html, body').animate({ 33 scrollTop: offset 34 }, 1000); 35 } 36 }); 37 }); 38
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.