jellyfin-web/dashboard-ui/thirdparty/jquerymobile-1.4.5/jquery.mobile.custom.min.js

3 lines
167 KiB
JavaScript
Raw Normal View History

2015-06-29 11:08:07 -07:00
/*! jQuery Mobile v1.4.5 | Copyright 2010, 2014 jQuery Foundation, Inc. | jquery.org/license */
2015-07-11 22:38:44 -07:00
(function (e, t, n) { n(e.jQuery, e, t) })(this, document, function (e, t, n, r) { (function (e, t, r) { "$:nomunge"; function l(e) { return e = e || location.href, "#" + e.replace(/^[^#]*#?(.*)$/, "$1") } var i = "hashchange", s = n, o, u = e.event.special, a = s.documentMode, f = "on" + i in t && (a === r || a > 7); e.fn[i] = function (e) { return e ? this.bind(i, e) : this.trigger(i) }, e.fn[i].delay = 50, u[i] = e.extend(u[i], { setup: function () { if (f) return !1; e(o.start) }, teardown: function () { if (f) return !1; e(o.stop) } }), o = function () { function p() { var n = l(), r = h(u); n !== u ? (c(u = n, r), e(t).trigger(i)) : r !== u && (location.href = location.href.replace(/#.*/, "") + r), o = setTimeout(p, e.fn[i].delay) } var n = {}, o, u = l(), a = function (e) { return e }, c = a, h = a; return n.start = function () { o || p() }, n.stop = function () { o && clearTimeout(o), o = r }, t.attachEvent && !t.addEventListener && !f && function () { var t, r; n.start = function () { t || (r = e.fn[i].src, r = r && r + l(), t = e('<iframe tabindex="-1" title="empty"/>').hide().one("load", function () { r || c(l()), p() }).attr("src", r || "javascript:0").insertAfter("body")[0].contentWindow, s.onpropertychange = function () { try { event.propertyName === "title" && (t.document.title = s.title) } catch (e) { } }) }, n.stop = a, h = function () { return l(t.location.href) }, c = function (n, r) { var o = t.document, u = e.fn[i].domain; n !== r && (o.title = s.title, o.open(), u && o.write('<script>document.domain="' + u + '"</script>'), o.close(), t.location.hash = n) } }(), n }() })(e, this), function (e) { e.mobile = {} }(e), function (e, t, n) { e.extend(e.mobile, { version: "1.4.5", subPageUrlKey: "ui-page", hideUrlBar: !0, keepNative: ":jqmData(role='none'), :jqmData(role='nojs')", activePageClass: "ui-page-active", activeBtnClass: "ui-btn-active", focusClass: "ui-focus", ajaxEnabled: !0, hashListeningEnabled: !0, linkBindingEnabled: !0, defaultPageTransition: "fade", maxTransitionWidth: !1, minScrollBack: 0, defaultDialogTransition: "pop", pageLoadErrorMessage: "Error Loading Page", pageLoadErrorMessageTheme: "a", phonegapNavigationEnabled: !1, autoInitializePage: !0, pushStateEnabled: !0, ignoreContentEnabled: !1, buttonMarkup: { hoverDelay: 200 }, dynamicBaseEnabled: !0, pageContainer: e(), allowCrossDomainPages: !1, dialogHashKey: "&ui-state=dialog" }) }(e, this), function (e, t, n) { var r = {}, i = e.find, s = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/, o = /:jqmData\(([^)]*)\)/g; e.extend(e.mobile, { ns: "", getAttribute: function (t, n) { var r; t = t.jquery ? t[0] : t, t && t.getAttribute && (r = t.getAttribute("data-" + e.mobile.ns + n)); try { r = r === "true" ? !0 : r === "false" ? !1 : r === "null" ? null : +r + "" === r ? +r : s.test(r) ? JSON.parse(r) : r } catch (i) { } return r }, nsNormalizeDict: r, nsNormalize: function (t) { return r[t] || (r[t] = e.camelCase(e.mobile.ns + t)) }, closestPageData: function (e) { return e.closest(":jqmData(role='page'), :jqmData(role='dialog')").data("mobile-page") } }), e.fn.jqmData = function (t, r) { var i; return typeof t != "undefined" && (t && (t = e.mobile.nsNormalize(t)), arguments.length < 2 || r === n ? i = this.data(t) : i = this.data(t, r)), i }, e.jqmData = function (t, n, r) { var i; return typeof n != "undefined" && (i = e.data(t, n ? e.mobile.nsNormalize(n) : n, r)), i }, e.fn.jqmRemoveData = function (t) { return this.removeData(e.mobile.nsNormalize(t)) }, e.jqmRemoveData = function (t, n) { return e.removeData(t, e.mobile.nsNormalize(n)) }, e.find = function (t, n, r, s) { return t.indexOf(":jqmData") > -1 && (t = t.replace(o, "[data-" + (e.mobile.ns || "") + "$1]")), i.call(this, t, n, r, s) }, e.extend(e.find, i) }(e, this), function (e, t) { function s(t, n) { var r, i, s, u = t.nodeName.toLowerCase(); return "area" === u ? (r = t.parentNode, i = r.name, !t.href || !i || r.nodeName.toLowerCase() !== "map" ? !1 : (s = e("img[usemap=#" + i + "]")[0], !!s && o(s))) : (/input|select|textarea|button|object/.test(u) ? !t.disabled : "a" === u ? t.href ||