PageSourceSearch

https://www.gumushane.gov.tr/Areas/WebPart/Contents/CountiesList/js/sticky_kit.min.js

js gumushane.gov.tr collected 2026-10-02 20:00:22 UTC 8,850 bytes, 131 lines download raw bytes

1        var O, A;
2        (O = this.jQuery || window.jQuery),
3            (A = O(window)),
4            (O.fn.stick_in_parent = function (t) {
5                var T, e, S, k, C, E, r, i, P, M, n, o, s;
6                for (
7                    null == t && (t = {}),
8                    M = t.sticky_class,
9                    k = t.inner_scrolling,
10                    P = t.recalc_every,
11                    i = t.parent,
12                    E = t.offset_top,
13                    C = t.spacer,
14                    S = t.bottoming,
15                    null == E && (E = 0),
16                    null == i && (i = void 0),
17                    null == k && (k = !0),
18                    null == M && (M = "is_stuck"),
19                    T = O(document),
20                    null == S && (S = !0),
21                    r = function (t) {
22                        var e, i;
23                        return window.getComputedStyle
24                            ? (t[0],
25                                (e = window.getComputedStyle(t[0])),
26                                (i = parseFloat(e.getPropertyValue("width")) + parseFloat(e.getPropertyValue("margin-left")) + parseFloat(e.getPropertyValue("margin-right"))),
27                                "border-box" !== e.getPropertyValue("box-sizing") &&
28                                (i +=
29                                    parseFloat(e.getPropertyValue("border-left-width")) +
30                                    parseFloat(e.getPropertyValue("border-right-width")) +
31                                    parseFloat(e.getPropertyValue("padding-left")) +
32                                    parseFloat(e.getPropertyValue("padding-right"))),
33                                i)
34                            : t.outerWidth(!0);
35                    },
36                    n = function (s, a, l, u, c, h, d, p) {
37                        var f, t, m, g, v, y, b, _, e, w, x, n;
38                        if (!s.data("sticky_kit")) {
39                            if ((s.data("sticky_kit", !0), (v = T.height()), (b = s.parent()), null != i && (b = b.closest(i)), !b.length)) throw "failed to find stick parent";
40                            if (
41                                ((f = m = !1),
42                                    (x = null != C ? C && s.closest(C) : O("<div />")) && x.css("position", s.css("position")),
43                                    (_ = function () {
44                                        var t, e, i;
45                                        if (!p)
46                                            return (
47                                                (v = T.height()),
48                                                (t = parseInt(b.css("border-top-width"), 10)),
49                                                (e = parseInt(b.css("padding-top"), 10)),
50                                                (a = parseInt(b.css("padding-bottom"), 10)),
51                                                (l = b.offset().top + t + e),
52                                                (u = b.height()),
53                                                m && ((f = m = !1), null == C && (s.insertAfter(x), x.detach()), s.css({ position: "", top: "", width: "", bottom: "" }).removeClass(M), (i = !0)),
54                                                (c = s.offset().top - (parseInt(s.css("margin-top"), 10) || 0) - E),
55                                                (h = s.outerHeight(!0)),
56                                                (d = s.css("float")),
57                                                x && x.css({ width: r(s), height: h, display: s.css("display"), "vertical-align": s.css("vertical-align"), float: d }),
58                                                i ? n() : void 0
59                                            );
60                                    })(),
61                                    h !== u)
62                            )
63                                return (
64                                    (g = void 0),
65                                    (y = E),
66                                    (w = P),
67                                    (n = function () {
68                                        var t, e, i, n, r, o;
69                                        if (!p)
70                                            return (
71                                                (i = !1),
72                                                null != w && (w -= 1) <= 0 && ((w = P), _(), (i = !0)),
73                                                i || T.height() === v || (_(), (i = !0)),
74                                                (n = A.scrollTop()),
75                                                null != g && (e = n - g),
76                                                (g = n),
77                                                m
78                                                    ? (S && ((r = u + l < n + h + y), f && !r && ((f = !1), s.css({ position: "fixed", bottom: "", top: y }).trigger("sticky_kit:unbottom"))),
79                                                        n < c &&
80                                                        ((m = !1),
81                                                            (y = E),
82                                                            null == C && (("left" !== d && "right" !== d) || s.insertAfter(x), x.detach()),
83                                                            (t = { position: "", width: "", top: "" }),
84                                                            s.css(t).removeClass(M).trigger("sticky_kit:unstick")),
85                                                        k && (o = A.height()) < h + E && (f || ((y -= e), (y = Math.max(o - h, y)), (y = Math.min(E, y)), m && s.css({ top: y + "px" }))))
86                                                    : c < n &&
87                                                    ((m = !0),
88                                                        ((t = { position: "fixed", top: y }).width = "border-box" === s.css("box-sizing") ? s.outerWidth() + "px" : s.width() + "px"),
89                                                        s.css(t).addClass(M),
90                                                        null == C && (s.after(x), ("left" !== d && "right" !== d) || x.append(s)),
91                                                        s.trigger("sticky_kit:stick")),
92                                                m && S && (null == r && (r = u + l < n + h + y), !f && r)
93                                                    ? ((f = !0), "static" === b.css("position") && b.css({ position: "relative" }), s.css({ position: "absolute", bottom: a, top: "auto" }).trigger("sticky_kit:bottom"))
94                                                    : void 0
95                                            );
96                                    }),
97                                    (e = function () {
98                                        return _(), n();
99                                    }),
100                                    (t = function () {
101                                        if (
102                                            ((p = !0),
103                                                A.off("touchmove", n),
104                                                A.off("scroll", n),
105                                                A.off("resize", e),
106                                                O(document.body).off("sticky_kit:recalc", e),
107                                                s.off("sticky_kit:detach", t),
108                                                s.removeData("sticky_kit"),
109                                                s.css({ position: "", bottom: "", top: "", width: "" }),
110                                                b.position("position", ""),
111                                                m)
112                                        )
113                                            return null == C && (("left" !== d && "right" !== d) || s.insertAfter(x), x.remove()), s.removeClass(M);
114                                    }),
115                                    A.on("touchmove", n),
116                                    A.on("scroll", n),
117                                    A.on("resize", e),
118                                    O(document.body).on("sticky_kit:recalc", e),
119                                    s.on("sticky_kit:detach", t),
120                                    setTimeout(n, 0)
121                                );
122                        }
123                    },
124                    o = 0,
125                    s = this.length;
126                    o < s;
127                    o++
128                )
129                    (e = this[o]), n(O(e));
130                return this;
131            });

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.