1/*! 2 * jquery.scrollto.js 0.0.1 - https://github.com/yckart/jquery.scrollto.js 3 * Scroll smooth to any element in your DOM. 4 * 5 * Copyright (c) 2012 Yannick Albert (http://yckart.com) 6 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php). 7 * 2013/02/17 8 **/ 9$.scrollTo = $.fn.scrollTo = function(x, y, options){ 10 if (!(this instanceof $)) return $.fn.scrollTo.apply($('html, body'), arguments); 11 12 options = $.extend({}, { 13 gap: { 14 x: 0, 15 y: 0 16 }, 17 animation: { 18 easing: 'swing', 19 duration: 800, 20 complete: $.noop, 21 step: $.noop 22 } 23 }, options); 24 25 return this.each(function(){ 26 var elem = $(this); 27 elem.stop().animate({ 28 scrollLeft: !isNaN(Number(x)) ? x : $(y).offset().left + options.gap.x, 29 scrollTop: !isNaN(Number(y)) ? y : $(y).offset().top + options.gap.y 30 }, options.animation); 31 }); 32};
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.