PageSourceSearch

https://outandabout.africa/wp-content/plugins/newzin_plugin/assets/js/newzin-parallax.js?ver=1.0.0

js outandabout.africa collected 2026-10-08 13:16:14 UTC 2,286 bytes, 61 lines download raw bytes

1/*
2custom parallax
3*/
4!(function (n) {
5    var t = n(window),
6        o = t.height();
7    t.resize(function () {
8        o = t.height();
9    }),
10        (n.fn.parallax = function (i, e, l) {
11            var r,
12                u = n(this);
13            function c() {
14                var l = t.scrollTop();
15                u.each(function () {
16                    var t = n(this),
17                        c = t.offset().top;
18                    c + r(t) < l || c > l + o || (n(window).width() > 1050 ? u.css("backgroundPosition", i + " " + (c - l) * e + "px") : u.css("backgroundPosition", ""));
19                });
20            }
21            u.each(function (n) {
22                u.offset().top;
23            }),
24                (arguments.length < 1 || null === i) && (i = "50%"),
25                (arguments.length < 2 || null === e) && (e = 0.5),
26                (arguments.length < 3 || null === l) && (l = !0),
27                (arguments.length < 4 || null === pos) && (pos = 0),
28                (r = l
29                    ? function (n) {
30                          return n.outerHeight(!0);
31                      }
32                    : function (n) {
33                          return n.height();
34                      }),
35                t.bind("scroll", c).resize(c),
36                c();
37        }),
38        (n.fn.parallaxImg = function (i, e) {
39            var l,
40                r = n(this);
41            function u() {
42                var e = t.scrollTop();
43                r.each(function () {
44                    var t = n(this),
45                        u = t.offset().top;
46                    u + l(t) < e || u > e + o || (n(window).width() > 1050 ? r.css("bottom", (i / 10) * -(u - e) + "px") : r.css("bottom", ""));
47                });
48            }
49            (arguments.length < 1 || null === i) && (i = 1),
50                (arguments.length < 2 || null === e) && (e = !0),
51                (l = e
52                    ? function (n) {
53                          return n.outerHeight(!0);
54                      }
55                    : function (n) {
56                          return n.height();
57                      }),
58                t.bind("scroll", u).resize(u),
59                u();
60        });
61})(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.