1(function( window, undefined ) { 2 3 var utility = { 4 5 smoothScroll: function() { 6 7 var options = { 8 selector: 'a[href*="#"]', 9 duration: 400, 10 easing: 'linear' 11 }; 12 13 var $selector = $(options.selector).not('a[href="#"]').not('a[data-smooth="false"]'), 14 $target = $('html, body'); 15 16 $selector.on('click', function() { 17 18 var data = $(this).data('smooth') || 0; 19 20 $target.animate({ 21 scrollTop: $(this.hash).offset().top + data 22 }, { 23 duration: options.duration, 24 easing: options.easing 25 }); 26 27 return false; 28 29 }); 30 31 } 32 33 }; 34 35for (var i in utility) utility[i](); 36 37}( window ));
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.