PageSourceSearch

https://www.storexppen.es/newxp/static2024/js/index/lazy.js?ver=20260814

js storexppen.es collected 2026-09-26 03:16:28 UTC 2,241 bytes, 67 lines download raw bytes

1/*!
2 * jquery.scrollLoading.js
3 * by zhangxinxu http://www.zhangxinxu.com/wordpress/?p=1259
4 * 2010-11-19 v1.0
5 * 2012-01-13 v1.1 偏移值计算修改 position → offset
6 * 2012-09-25 v1.2 增加滚动容器参数, 回调参数
7 * 2014-08-11 v1.3 修复设置滚动容器参数一些bug, 以及误删posb值的一些低级错误
8 */
9(function(a) {
10    a.fn.scrollLoading = function(b) {
11        var c = {
12            attr: "data-original",
13            container: a(window),
14            callback: a.noop
15        };
16        var d = a.extend({}, c, b || {});
17        d.cache = [];
18        a(this).each(function() {
19            var h = this.nodeName.toLowerCase(),
20                g = a(this).attr(d.attr);
21            var i = {
22                obj: a(this),
23                tag: h,
24                url: g
25            };
26            d.cache.push(i)
27        });
28        var f = function(g) {
29            if (a.isFunction(d.callback)) {
30                d.callback.call(g.get(0))
31            }
32        };
33        var e = function() {
34            var g = d.container.height();
35            if (d.container.get(0) === window) {
36                contop = a(window).scrollTop()
37            } else {
38                contop = d.container.offset().top
39            }
40            a.each(d.cache, function(m, n) {
41                var p = n.obj,
42                    j = n.tag,
43                    k = n.url,
44                    l, h;
45                if (p) {
46                    l = p.offset().top - contop, h = l + p.height();
47                    if ((l >= 0 && l < g) || (h > 0 && h <= g)) {
48                        if (k) {
49                            if (j === "img") {
50                                f(p.attr("src", k))
51                            } else {
52                                p.load(k, {}, function() {
53                                    f(p)
54                                })
55                            }
56                        } else {
57                            f(p)
58                        }
59                        n.obj = null
60                    }
61                }
62            })
63        };
64        e();
65        d.container.bind("scroll", e)
66    }
67})(jQuery);

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.