PageSourceSearch

https://myhdtvchoice.com/wp-content/themes/minimal-lite/assets/lib/sidr/js/jquery.sidr.min.js?ver=6.6.9

js myhdtvchoice.com collected 2026-10-02 14:27:13 UTC 11,441 bytes, 257 lines download raw bytes

vendor: 11,441 bytes, lines 1-257
1/*! sidr - v2.2.1 - 2016-02-17
2 * http://www.berriart.com/sidr/
3 * Copyright (c) 2013-2016 Alberto Varela; Licensed MIT */
4!function () {
5    "use strict";
6    function a(a, b, c) {
7        var d = new o(b);
8        switch (a) {
9            case"open":
10                d.open(c);
11                break;
12            case"close":
13                d.close(c);
14                break;
15            case"toggle":
16                d.toggle(c);
17                break;
18            default:
19                p.error("Method " + a + " does not exist on jQuery.sidr")
20        }
21    }
22
23    function b(a) {
24        return "status" === a ? h : s[a] ? s[a].apply(this, Array.prototype.slice.call(arguments, 1)) : "function" != typeof a && "string" != typeof a && a ? void q.error("Method " + a + " does not exist on jQuery.sidr") : s.toggle.apply(this, arguments)
25    }
26
27    function c(a, b) {
28        if ("function" == typeof b.source) {
29            var c = b.source(name);
30            a.html(c)
31        } else if ("string" == typeof b.source && i.isUrl(b.source))u.get(b.source, function (b) {
32            a.html(b)
33        }); else if ("string" == typeof b.source) {
34            var d = "", e = b.source.split(",");
35            if (u.each(e, function (a, b) {
36                    d += '<div class="sidr-inner">' + u(b).html() + "</div>"
37                }), b.renaming) {
38                var f = u("<div />").html(d);
39                f.find("*").each(function (a, b) {
40                    var c = u(b);
41                    i.addPrefixes(c)
42                }), d = f.html()
43            }
44            a.html(d)
45        } else null !== b.source && u.error("Invalid Sidr Source");
46        return a
47    }
48
49    function d(a) {
50        var d = i.transitions, e = u.extend({
51            name: "sidr",
52            speed: 200,
53            side: "left",
54            source: null,
55            renaming: !0,
56            body: "body",
57            displace: !0,
58            timing: "ease",
59            method: "toggle",
60            bind: "touchstart click",
61            onOpen: function () {
62            },
63            onClose: function () {
64            },
65            onOpenEnd: function () {
66            },
67            onCloseEnd: function () {
68            }
69        }, a), f = e.name, g = u("#" + f);
70        return 0 === g.length && (g = u("<div />").attr("id", f).appendTo(u("body"))), d.supported && g.css(d.property, e.side + " " + e.speed / 1e3 + "s " + e.timing), g.addClass("sidr").addClass(e.side).data({
71            speed: e.speed,
72            side: e.side,
73            body: e.body,
74            displace: e.displace,
75            timing: e.timing,
76            method: e.method,
77            onOpen: e.onOpen,
78            onClose: e.onClose,
79            onOpenEnd: e.onOpenEnd,
80            onCloseEnd: e.onCloseEnd
81        }), g = c(g, e), this.each(function () {
82            var a = u(this), c = a.data("sidr"), d = !1;
83            c || (h.moving = !1, h.opened = !1, a.data("sidr", f), a.bind(e.bind, function (a) {
84                a.preventDefault(), d || (d = !0, b(e.method, f), setTimeout(function () {
85                    d = !1
86                }, 100))
87            }))
88        })
89    }
90
91    var e = {};
92    e.classCallCheck = function (a, b) {
93        if (!(a instanceof b))throw new TypeError("Cannot call a class as a function")
94    }, e.createClass = function () {
95        function a(a, b) {
96            for (var c = 0; c < b.length; c++) {
97                var d = b[c];
98                d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(a, d.key, d)
99            }
100        }
101
102        return function (b, c, d) {
103            return c && a(b.prototype, c), d && a(b, d), b
104        }
105    }();
106    var f, g, h = {moving: !1, opened: !1}, i = {
107        isUrl: function (a) {
108            var b = new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$", "i");
109            return b.test(a) ? !0 : !1
110        }, addPrefixes: function (a) {
111            this.addPrefix(a, "id"), this.addPrefix(a, "class"), a.removeAttr("style")
112        }, addPrefix: function (a, b) {
113            var c = a.attr(b);
114            "string" == typeof c && "" !== c && "sidr-inner" !== c && a.attr(b, c.replace(/([A-Za-z0-9_.\-]+)/g, "sidr-" + b + "-$1"))
115        }, transitions: function () {
116            var a = document.body || document.documentElement, b = a.style, c = !1, d = "transition";
117            return d in b ? c = !0 : !function () {
118                var a = ["moz", "webkit", "o", "ms"], e = void 0, f = void 0;
119                d = d.charAt(0).toUpperCase() + d.substr(1), c = function () {
120                    for (f = 0; f < a.length; f++)if (e = a[f], e + d in b)return !0;
121                    return !1
122                }(), d = c ? "-" + e.toLowerCase() + "-" + d.toLowerCase() : null
123            }(), {supported: c, property: d}
124        }()
125    }, j = jQuery, k = "sidr-animating", l = "open", m = "close", n = "webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend", o = function () {
126        function a(b) {
127            e.classCallCheck(this, a), this.name = b, this.item = j("#" + b), this.openClass = "sidr" === b ? "sidr-open" : "sidr-open " + b + "-open", this.menuWidth = this.item.outerWidth(!0), this.speed = this.item.data("speed"), this.side = this.item.data("side"), this.displace = this.item.data("displace"), this.timing = this.item.data("timing"), this.method = this.item.data("method"), this.onOpenCallback = this.item.data("onOpen"), this.onCloseCallback = this.item.data("onClose"), this.onOpenEndCallback = this.item.data("onOpenEnd"), this.onCloseEndCallback = this.item.data("onCloseEnd"), this.body = j(this.item.data("body"))
128        }
129
130        return e.createClass(a, [{
131            key: "getAnimation", value: function (a, b) {
132                var c = {}, d = this.side;
133                return "open" === a && "body" === b ? c[d] = this.menuWidth + "px" : "close" === a && "menu" === b ? c[d] = "-" + this.menuWidth + "px" : c[d] = 0, c
134            }
135        }, {
136            key: "prepareBody", value: function (a) {
137                var b = "open" === a ? "hidden" : "";
138                if (this.body.is("body")) {
139                    var c = j("html"), d = c.scrollTop();
140                    c.css("overflow-x", b).scrollTop(d)
141                }
142            }
143        }, {
144            key: "openBody", value: function () {
145                if (this.displace) {
146                    var a = i.transitions, b = this.body;
147                    if (a.supported)b.css(a.property, this.side + " " + this.speed / 1e3 + "s " + this.timing).css(this.side, 0).css({
148                        width: b.width(),
149                        position: "absolute"
150                    }), b.css(this.side, this.menuWidth + "px"); else {
151                        var c = this.getAnimation(l, "body");
152                        b.css({width: b.width(), position: "absolute"}).animate(c, {queue: !1, duration: this.speed})
153                    }
154                }
155            }
156        }, {
157            key: "onCloseBody", value: function () {
158                var a = i.transitions, b = {width: "", position: "", right: "", left: ""};
159                a.supported && (b[a.property] = ""), this.body.css(b).unbind(n)
160            }
161        }, {
162            key: "closeBody", value: function () {
163                var a = this;
164                if (this.displace)if (i.transitions.supported)this.body.css(this.side, 0).one(n, function () {
165                    a.onCloseBody()
166                }); else {
167                    var b = this.getAnimation(m, "body");
168                    this.body.animate(b, {
169                        queue: !1, duration: this.speed, complete: function () {
170                            a.onCloseBody()
171                        }
172                    })
173                }
174            }
175        }, {
176            key: "moveBody", value: function (a) {
177                a === l ? this.openBody() : this.closeBody()
178            }
179        }, {
180            key: "onOpenMenu", value: function (a) {
181                var b = this.name;
182                h.moving = !1, h.opened = b, this.item.unbind(n), this.body.removeClass(k).addClass(this.openClass), this.onOpenEndCallback(), "function" == typeof a && a(b)
183            }
184        }, {
185            key: "openMenu", value: function (a) {
186                var b = this, c = this.item;
187                if (i.transitions.supported)c.css(this.side, 0).one(n, function () {
188                    b.onOpenMenu(a)
189                }); else {
190                    var d = this.getAnimation(l, "menu");
191                    c.css("display", "block").animate(d, {
192                        queue: !1, duration: this.speed, complete: function () {
193                            b.onOpenMenu(a)
194                        }
195                    })
196                }
197            }
198        }, {
199            key: "onCloseMenu", value: function (a) {
200                this.item.css({
201                    left: "",
202                    right: ""
203                }).unbind(n), j("html").css("overflow-x", ""), h.moving = !1, h.opened = !1, this.body.removeClass(k).removeClass(this.openClass), this.onCloseEndCallback(), "function" == typeof a && a(name)
204            }
205        }, {
206            key: "closeMenu", value: function (a) {
207                var b = this, c = this.item;
208                if (i.transitions.supported)c.css(this.side, "").one(n, function () {
209                    b.onCloseMenu(a)
210                }); else {
211                    var d = this.getAnimation(m, "menu");
212                    c.animate(d, {
213                        queue: !1, duration: this.speed, complete: function () {
214                            b.onCloseMenu()
215                        }
216                    })
217                }
218            }
219        }, {
220            key: "moveMenu", value: function (a, b) {
221                this.body.addClass(k), a === l ? this.openMenu(b) : this.closeMenu(b)
222            }
223        }, {
224            key: "move", value: function (a, b) {
225                h.moving = !0, this.prepareBody(a), this.moveBody(a), this.moveMenu(a, b)
226            }
227        }, {
228            key: "open", value: function (b) {
229                var c = this;
230                if (h.opened !== this.name && !h.moving) {
231                    if (h.opened !== !1) {
232                        var d = new a(h.opened);
233                        return void d.close(function () {
234                            c.open(b)
235                        })
236                    }
237                    this.move("open", b), this.onOpenCallback()
238                }
239            }
240        }, {
241            key: "close", value: function (a) {
242                h.opened !== this.name || h.moving || (this.move("close", a), this.onCloseCallback())
243            }
244        }, {
245            key: "toggle", value: function (a) {
246                h.opened === this.name ? this.close(a) : this.open(a)
247            }
248        }]), a
249    }(), p = jQuery, q = jQuery, r = ["open", "close", "toggle"], s = {}, t = function (b) {
250        return function (c, d) {
251            "function" == typeof c ? (d = c, c = "sidr") : c || (c = "sidr"), a(b, c, d)
252        }
253    };
254    for (f = 0; f < r.length; f++)g = r[f], s[g] = t(g);
255    var u = jQuery;
256    jQuery.sidr = b, jQuery.fn.sidr = d
257}();

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.