1/* Smooth Scrolling */ 2$(document).ready(function(){ 3 // Add smooth scrolling to all links 4 $("a").on('click', function(event) { 5 6 // Make sure this.hash has a value before overriding default behavior 7 if (this.hash !== "") { 8 // Prevent default anchor click behavior 9 event.preventDefault(); 10 11 // Store hash 12 var hash = this.hash; 13 14 // Using jQuery's animate() method to add smooth page scroll 15 // The optional number (800) specifies the number of milliseconds it takes to scroll to the specified area 16 $('html, body').animate({ 17 scrollTop: $(hash).offset().top 18 }, 800, function(){ 19 20 // Add hash (#) to URL when done scrolling (default click behavior) 21 window.location.hash = hash; 22 }); 23 } // End if 24 }); 25});
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.