PageSourceSearch

https://uppark.io/wp-content/themes/appset/js/jquery.scrollto.js?ver=1.0.0

js uppark.io collected 2026-10-02 00:12:13 UTC 1,069 bytes, 32 lines download raw bytes

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 **/
9jQuery.scrollTo = jQuery.fn.scrollTo = function(x, y, options){
10    if (!(this instanceof $)) return jQuery.fn.scrollTo.apply($('html, body'), arguments);
11
12    options = jQuery.extend({}, {
13        gap: {
14            x: 0,
15            y: 0
16        },
17        animation: {
18            easing: 'easeInSine',
19            duration: 'slow',
20            complete: $.noop,
21            step: $.noop
22        }
23    }, options);
24
25    return this.each(function(){
26        var elem = jQuery(this);
27        elem.stop().animate({
28            scrollLeft: !isNaN(Number(x)) ? x : jQuery(y).offset().left + options.gap.x,
29            scrollTop: !isNaN(Number(y)) ? y : jQuery(y).offset().top + options.gap.y - 69 // *edited
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.