PageSourceSearch

https://www.livingmotif.com/client_info/AXIS_LM/view/userweb/js/as…?timestamp=1787831166197

js livingmotif.com collected 2026-09-25 15:21:56 UTC 9,401 bytes, 256 lines download raw bytes

1$.fn.easeScroll = function(options) {
2    ! function() {
3        function e() {
4            var e = !1;
5            e && c("keydown", r), v.keyboardSupport && !e && u("keydown", r)
6        }
7
8        function t() {
9            if (document.body) {
10                var t = document.body,
11                    o = document.documentElement,
12                    n = window.innerHeight,
13                    r = t.scrollHeight;
14                if (S = document.compatMode.indexOf("CSS") >= 0 ? o : t, w = t, e(), x = !0, top != self) y = !0;
15                else if (r > n && (t.offsetHeight <= n || o.offsetHeight <= n)) {
16                    var a = !1,
17                        i = function() {
18                            a || o.scrollHeight == document.height || (a = !0, setTimeout(function() {
19                                o.style.height = document.height + "px", a = !1
20                            }, 100))
21                        };
22                    if (o.style.height = "auto", setTimeout(i, 10), S.offsetHeight <= n) {
23                        var l = document.createElement("div");
24                        l.style.clear = "both", t.appendChild(l)
25                    }
26                }
27                v.fixedBackground || b || (t.style.backgroundAttachment = "scroll", o.style.backgroundAttachment = "scroll")
28            }
29        }
30
31        function o(e, t, o, n) {
32            if (n || (n = 1e3), d(t, o), 1 != v.accelerationMax) {
33                var r = +new Date,
34                    a = r - C;
35                if (a < v.accelerationDelta) {
36                    var i = (1 + 30 / a) / 2;
37                    i > 1 && (i = Math.min(i, v.accelerationMax), t *= i, o *= i)
38                }
39                C = +new Date
40            }
41            if (M.push({
42                x: t,
43                y: o,
44                lastX: 0 > t ? .99 : -.99,
45                lastY: 0 > o ? .99 : -.99,
46                start: +new Date
47            }), !T) {
48                var l = e === document.body,
49                    u = function() {
50                        for (var r = +new Date, a = 0, i = 0, c = 0; c < M.length; c++) {
51                            var s = M[c],
52                                d = r - s.start,
53                                f = d >= v.animationTime,
54                                h = f ? 1 : d / v.animationTime;
55                            v.pulseAlgorithm && (h = p(h));
56                            var m = s.x * h - s.lastX >> 0,
57                                w = s.y * h - s.lastY >> 0;
58                            a += m, i += w, s.lastX += m, s.lastY += w, f && (M.splice(c, 1), c--)
59                        }
60                        l ? window.scrollBy(a, i) : (a && (e.scrollLeft += a), i && (e.scrollTop += i)), t || o || (M = []), M.length ? E(u, e, n / v.frameRate + 1) : T = !1
61                    };
62                E(u, e, 0), T = !0
63            }
64        }
65
66        function n(e) {
67            x || t();
68            var n = e.target,
69                r = l(n);
70            if (!r || e.defaultPrevented || s(w, "embed") || s(n, "embed") && /\.pdf/i.test(n.src)) return !0;
71            var a = e.wheelDeltaX || 0,
72                i = e.wheelDeltaY || 0;
73            return a || i || (i = e.wheelDelta || 0), !v.touchpadSupport && f(i) ? !0 : (Math.abs(a) > 1.2 && (a *= v.stepSize / 120), Math.abs(i) > 1.2 && (i *= v.stepSize / 120), o(r, -a, -i), void e.preventDefault())
74        }
75
76        function r(e) {
77            var t = e.target,
78                n = e.ctrlKey || e.altKey || e.metaKey || e.shiftKey && e.keyCode !== H.spacebar;
79            if (/input|textarea|select|embed/i.test(t.nodeName) || t.isContentEditable || e.defaultPrevented || n) return !0;
80            if (s(t, "button") && e.keyCode === H.spacebar) return !0;
81            var r, a = 0,
82                i = 0,
83                u = l(w),
84                c = u.clientHeight;
85            switch (u == document.body && (c = window.innerHeight), e.keyCode) {
86                case H.up:
87                    i = -v.arrowScroll;
88                    break;
89                case H.down:
90                    i = v.arrowScroll;
91                    break;
92                case H.spacebar:
93                    r = e.shiftKey ? 1 : -1, i = -r * c * .9;
94                    break;
95                case H.pageup:
96                    i = .9 * -c;
97                    break;
98                case H.pagedown:
99                    i = .9 * c;
100                    break;
101                case H.home:
102                    i = -u.scrollTop;
103                    break;
104                case H.end:
105                    var d = u.scrollHeight - u.scrollTop - c;
106                    i = d > 0 ? d + 10 : 0;
107                    break;
108                case H.left:
109                    a = -v.arrowScroll;
110                    break;
111                case H.right:
112                    a = v.arrowScroll;
113                    break;
114                default:
115                    return !0
116            }
117            o(u, a, i), e.preventDefault()
118        }
119
120        function a(e) {
121            w = e.target
122        }
123
124        function i(e, t) {
125            for (var o = e.length; o--;) z[N(e[o])] = t;
126            return t
127        }
128
129        function l(e) {
130            var t = [],
131                o = S.scrollHeight;
132            do {
133                var n = z[N(e)];
134                if (n) return i(t, n);
135                if (t.push(e), o === e.scrollHeight) {
136                    if (!y || S.clientHeight + 10 < o) return i(t, document.body)
137                } else if (e.clientHeight + 10 < e.scrollHeight && (overflow = getComputedStyle(e, "").getPropertyValue("overflow-y"), "scroll" === overflow || "auto" === overflow)) return i(t, e)
138            } while (e = e.parentNode)
139        }
140
141        function u(e, t, o) {
142            window.addEventListener(e, t, o || !1)
143        }
144
145        function c(e, t, o) {
146            window.removeEventListener(e, t, o || !1)
147        }
148
149        function s(e, t) {
150            return (e.nodeName || "").toLowerCase() === t.toLowerCase()
151        }
152
153        function d(e, t) {
154            e = e > 0 ? 1 : -1, t = t > 0 ? 1 : -1, (k.x !== e || k.y !== t) && (k.x = e, k.y = t, M = [], C = 0)
155        }
156
157        function f(e) {
158            if (e) {
159                e = Math.abs(e), D.push(e), D.shift(), clearTimeout(A);
160                var t = D[0] == D[1] && D[1] == D[2],
161                    o = h(D[0], 120) && h(D[1], 120) && h(D[2], 120);
162                return !(t || o)
163            }
164        }
165
166        function h(e, t) {
167            return Math.floor(e / t) == e / t
168        }
169
170        function m(e) {
171            var t, o, n;
172            return e *= v.pulseScale, 1 > e ? t = e - (1 - Math.exp(-e)) : (o = Math.exp(-1), e -= 1, n = 1 - Math.exp(-e), t = o + n * (1 - o)), t * v.pulseNormalize
173        }
174
175        function p(e) {
176            return e >= 1 ? 1 : 0 >= e ? 0 : (1 == v.pulseNormalize && (v.pulseNormalize /= m(1)), m(e))
177        }
178
179        var settings = $.extend({
180            // These are the defaults.
181            frameRate: 60,
182            animationTime: 1000,
183            stepSize: 120,
184            pulseAlgorithm: !0,
185            pulseScale: 8,
186            pulseNormalize: 1,
187            accelerationDelta: 20,
188            accelerationMax: 1,
189            keyboardSupport: !0,
190            arrowScroll: 50,
191            touchpadSupport: !0,
192            fixedBackground: !0
193        }, options );
194
195        var w, g = {
196            frameRate: settings.frameRate,
197            animationTime: settings.animationTime,
198            stepSize: settings.stepSize,
199            pulseAlgorithm: settings.pulseAlgorithm,
200            pulseScale: settings.pulseScale,
201            pulseNormalize: settings.pulseNormalize,
202            accelerationDelta: settings.accelerationDelta,
203            accelerationMax: settings.accelerationMax,
204            keyboardSupport: settings.keyboardSupport,
205            arrowScroll: settings.arrowScroll,
206            touchpadSupport: settings.touchpadSupport,
207            fixedBackground: settings.fixedBackground,
208            excluded: ""
209        },
210            v = g,
211            b = !1,
212            y = !1,
213            k = {
214                x: 0,
215                y: 0
216            },
217            x = !1,
218            S = document.documentElement,
219            D = [120, 120, 120],
220            H = {
221                left: 37,
222                up: 38,
223                right: 39,
224                down: 40,
225                spacebar: 32,
226                pageup: 33,
227                pagedown: 34,
228                end: 35,
229                home: 36
230            },
231            v = g,
232            M = [],
233            T = !1,
234            C = +new Date,
235            z = {};
236        setInterval(function() {
237            z = {}
238        }, 1e4);
239        var A, N = function() {
240                var e = 0;
241                return function(t) {
242                    return t.uniqueID || (t.uniqueID = e++)
243                }
244            }(),
245            E = function() {
246                return window.requestAnimationFrame || window.webkitRequestAnimationFrame || function(e, t, o) {
247                    window.setTimeout(e, o || 1e3 / 60)
248                }
249            }(),
250            K = /chrome|iPad/i.test(window.navigator.userAgent),
251            L = "onmousewheel" in document;
252        L && K && (u("mousedown", a), u("mousewheel", n), u("load", t))
253    }();
254}
255
256

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.