PageSourceSearch

https://www.ludwigsburg.de/site/Ludwigsburg-Internet-2020/resourceCached/24.2.2/js/slidebars/slidebars.min.js

js ludwigsburg.de collected 2026-10-02 05:39:56 UTC 6,206 bytes, 119 lines download raw bytes

1// Slidebars 0.10.2 (http://plugins.adchsm.me/slidebars/) written by Adam Smith (http://www.adchsm.me/) released under MIT License (http://plugins.adchsm.me/slidebars/license.txt)
2! function(t) {
3    t.slidebars = function(s) {
4        function e() {
5            !c.disableOver || "number" == typeof c.disableOver && c.disableOver >= T ? (y = !0, t("html").addClass("sb-init"), c.hideControlClasses && k.removeClass("sb-hide"), i()) : "number" == typeof c.disableOver && c.disableOver < T && (y = !1, t("html").removeClass("sb-init"), c.hideControlClasses && k.addClass("sb-hide"), g.css("minHeight", ""), (C || w) && a())
6        }
7
8        function i() {
9            g.css("minHeight", ""), g.css("minHeight", t("html").height() + "px"), m && m.hasClass("sb-width-custom") && m.css("width", m.attr("data-sb-width")), p && p.hasClass("sb-width-custom") && p.css("width", p.attr("data-sb-width")), m && (m.hasClass("sb-style-push") || m.hasClass("sb-style-overlay")) && m.css("marginLeft", "-" + m.css("width")), p && (p.hasClass("sb-style-push") || p.hasClass("sb-style-overlay")) && p.css("marginRight", "-" + p.css("width")), c.scrollLock && t("html").addClass("sb-scroll-lock")
10        }
11
12        function n(t, s, e) {
13            var n;
14            if (n = t.hasClass("sb-style-push") ? g.add(t).add(O) : t.hasClass("sb-style-overlay") ? t : g.add(O), "translate" === x) n.css("transform", "translate(" + s + ")");
15            else if ("side" === x) "-" === s[0] && (s = s.substr(1)), "0px" !== s && n.css(e, "0px"), setTimeout(function() {
16                n.css(e, s)
17            }, 1);
18            else if ("jQuery" === x) {
19                "-" === s[0] && (s = s.substr(1));
20                var o = {};
21                o[e] = s, n.stop().animate(o, 400)
22            }
23            setTimeout(function() {
24                "0px" === s && (n.removeAttr("style"), i())
25            }, 400)
26        }
27
28        function o(s) {
29            function e() {
30                y && "left" === s && m ? (t("html").addClass("sb-active sb-active-left"), m.addClass("sb-active"), n(m, m.css("width"), "left"), setTimeout(function() {
31                    C = !0
32                }, 400)) : y && "right" === s && p && (t("html").addClass("sb-active sb-active-right"), p.addClass("sb-active"), n(p, "-" + p.css("width"), "right"), setTimeout(function() {
33                    w = !0
34                }, 400))
35            }
36            "left" === s && m && w || "right" === s && p && C ? (a(), setTimeout(e, 400)) : e()
37
38            jQuery('#nav-right li a:first').focus();
39        }
40
41        function a(s) {
42            (C || w) && (C && (n(m, "0px", "left"), C = !1), w && (n(p, "0px", "right"), w = !1), setTimeout(function() {
43                t("html").removeClass("sb-active sb-active-left sb-active-right"), m && m.removeClass("sb-active"), p && p.removeClass("sb-active"), "undefined" != typeof s && (window.location = s)
44            }, 400))
45        }
46
47        function l(t) {
48            "left" === t && m && (C ? a() : o("left")), "right" === t && p && (w ? a() : o("right"))
49        }
50
51        function r(t, s) {
52            t.stopPropagation(), t.preventDefault(), "touchend" === t.type && s.off("click")
53        }
54        var c = t.extend({
55                siteClose: !0,
56                scrollLock: !1,
57                disableOver: !1,
58                hideControlClasses: !1
59            }, s),
60            h = document.createElement("div").style,
61            d = !1,
62            f = !1;
63        ("" === h.MozTransition || "" === h.WebkitTransition || "" === h.OTransition || "" === h.transition) && (d = !0), ("" === h.MozTransform || "" === h.WebkitTransform || "" === h.OTransform || "" === h.transform) && (f = !0);
64        var u = navigator.userAgent,
65            b = !1,
66            v = !1;
67        /Android/.test(u) ? b = u.substr(u.indexOf("Android") + 8, 3) : /(iPhone|iPod|iPad)/.test(u) && (v = u.substr(u.indexOf("OS ") + 3, 3).replace("_", ".")), (b && 3 > b || v && 5 > v) && t("html").addClass("sb-static");
68        var g = t("#sb-site, .sb-site-container");
69        if (t(".sb-left").length) var m = t(".sb-left"),
70            C = !1;
71        if (t(".sb-right").length) var p = t(".sb-right"),
72            w = !1;
73        var y = !1,
74            T = t(window).width(),
75            k = t(".sb-toggle-left, .sb-toggle-right, .sb-open-left, .sb-open-right, .sb-close"),
76            O = t(".sb-slide");
77        e(), t(window).resize(function() {
78            var s = t(window).width();
79            T !== s && (T = s, e(), C && o("left"), w && o("right"))
80        });
81        var x;
82        d && f ? (x = "translate", b && 4.4 >
82 b && (x = "side")) : x = "jQuery", this.slidebars = {
83            open: o,
84            close: a,
85            toggle: l,
86            init: function() {
87                return y
88            },
89            active: function(t) {
90                return "left" === t && m ? C : "right" === t && p ? w : void 0
91            },
92            destroy: function(t) {
93                "left" === t && m && (C && a(), setTimeout(function() {
94                    m.remove(), m = !1
95                }, 400)), "right" === t && p && (w && a(), setTimeout(function() {
96                    p.remove(), p = !1
97                }, 400))
98            }
99        }, t(".sb-toggle-left").on("touchend click", function(s) {
100            r(s, t(this)), l("left")
101        }), t(".sb-toggle-right").on("touchend click", function(s) {
102            r(s, t(this)), l("right")
103        }), t(".sb-open-left").on("touchend click", function(s) {
104            r(s, t(this)), o("left")
105        }), t(".sb-open-right").on("touchend click", function(s) {
106            r(s, t(this)), o("right")
107        }), t(".sb-close").on("touchend click", function(s) {
108            if (t(this).is("a") || t(this).children().is("a")) {
109                if ("click" === s.type) {
110                    s.preventDefault();
111                    var e = t(this).is("a") ? t(this).attr("href") : t(this).find("a").attr("href");
112                    a(e)
113                }
114            } else r(s, t(this)), a()
115        }), g.on("touchend click", function(s) {
116            c.siteClose && (C || w) && (r(s, t(this)), a())
117        })
118    }
119}(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.