1/* ----------------------------------------- 2 3 jquery.smoothscroll.js 4 5------------------------------------------*/ 6 7(function(jQuery) { 8 jQuery.fn.smoothScroll = function() { 9 return this.each(function() { 10 jQuery(this).click(function() { 11 if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && 12 location.hostname == this.hostname) { 13 var $target = jQuery(this.hash); 14 $target = $target.length && $target || $('[name="' + this.hash.slice(1) +'"]'); 15 if ($target.length) { 16 var targetOffset = $target.offset().top; 17 jQuery('html,body').animate({ scrollTop: targetOffset }, 500, 'swing'); 18 return false; 19 } 20 } 21 }); 22 }); 23 }; 24})(jQuery); 25 26jQuery(function(){ 27 jQuery('a[href^="#"]').smoothScroll(); 28});
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.