1 line
263 KiB
JavaScript
1 line
263 KiB
JavaScript
|
|
(function (e, t) { function i(t, n) { var r, i, o, u; if (typeof t.nodeName == "undefined") return false; if ("area" === u) { r = t.parentNode; i = r.name; if (!t.href || !i || r.nodeName.toLowerCase() !== "map") { return false } o = e("img[usemap=#" + i + "]")[0]; return !!o && s(o) } return (/input|select|textarea|button|object/.test(u) ? !t.disabled : "a" === u ? t.href || n : n) && s(t) } function s(t) { return e.expr.filters.visible(t) && !e(t).parents().addBack().filter(function () { return e.css(this, "visibility") === "hidden" }).length } var n = 0, r = /^ui-id-\d+$/; e.ui = e.ui || {}; e.extend(e.ui, { version: "1.10.4", keyCode: { BACKSPACE: 8, COMMA: 188, DELETE: 46, DOWN: 40, END: 35, ENTER: 13, ESCAPE: 27, HOME: 36, LEFT: 37, NUMPAD_ADD: 107, NUMPAD_DECIMAL: 110, NUMPAD_DIVIDE: 111, NUMPAD_ENTER: 108, NUMPAD_MULTIPLY: 106, NUMPAD_SUBTRACT: 109, PAGE_DOWN: 34, PAGE_UP: 33, PERIOD: 190, RIGHT: 39, SPACE: 32, TAB: 9, UP: 38} }); e.fn.extend({ focus: function (t) { return function (n, r) { return typeof n === "number" ? this.each(function () { var t = this; setTimeout(function () { e(t).focus(); if (r) { r.call(t) } }, n) }) : t.apply(this, arguments) } } (e.fn.focus), scrollParent: function () { var t; if (e.ui.ie && /(static|relative)/.test(this.css("position")) || /absolute/.test(this.css("position"))) { t = this.parents().filter(function () { return /(relative|absolute|fixed)/.test(e.css(this, "position")) && /(auto|scroll)/.test(e.css(this, "overflow") + e.css(this, "overflow-y") + e.css(this, "overflow-x")) }).eq(0) } else { t = this.parents().filter(function () { return /(auto|scroll)/.test(e.css(this, "overflow") + e.css(this, "overflow-y") + e.css(this, "overflow-x")) }).eq(0) } return /fixed/.test(this.css("position")) || !t.length ? e(document) : t }, zIndex: function (n) { if (n !== t) { return this.css("zIndex", n) } if (this.length) { var r = e(this[0]), i, s; while (r.length && r[0] !== document) { i = r.css("position"); if (i === "absolute" || i === "relative" || i === "fixed") { s = parseInt(r.css("zIndex"), 10); if (!isNaN(s) && s !== 0) { return s } } r = r.parent() } } return 0 }, uniqueId: function () { return this.each(function () { if (!this.id) { this.id = "ui-id-" + ++n } }) }, removeUniqueId: function () { return this.each(function () { if (r.test(this.id)) { e(this).removeAttr("id") } }) } }); e.extend(e.expr[":"], { data: e.expr.createPseudo ? e.expr.createPseudo(function (t) { return function (n) { return !!e.data(n, t) } }) : function (t, n, r) { return !!e.data(t, r[3]) }, focusable: function (t) { return i(t, !isNaN(e.attr(t, "tabindex"))) }, tabbable: function (t) { var n = e.attr(t, "tabindex"), r = isNaN(n); return (r || n >= 0) && i(t, !r) } }); if (!e("<a>").outerWidth(1).jquery) { e.each(["Width", "Height"], function (n, r) { function u(t, n, r, s) { e.each(i, function () { n -= parseFloat(e.css(t, "padding" + this)) || 0; if (r) { n -= parseFloat(e.css(t, "border" + this + "Width")) || 0 } if (s) { n -= parseFloat(e.css(t, "margin" + this)) || 0 } }); return n } var i = r === "Width" ? ["Left", "Right"] : ["Top", "Bottom"], s = r.toLowerCase(), o = { innerWidth: e.fn.innerWidth, innerHeight: e.fn.innerHeight, outerWidth: e.fn.outerWidth, outerHeight: e.fn.outerHeight }; e.fn["inner" + r] = function (n) { if (n === t) { return o["inner" + r].call(this) } return this.each(function () { e(this).css(s, u(this, n) + "px") }) }; e.fn["outer" + r] = function (t, n) { if (typeof t !== "number") { return o["outer" + r].call(this, t) } return this.each(function () { e(this).css(s, u(this, t, true, n) + "px") }) } }) } if (!e.fn.addBack) { e.fn.addBack = function (e) { return this.add(e == null ? this.prevObject : this.prevObject.filter(e)) } } if (e("<a>").data("a-b", "a").removeData("a-b").data("a-b")) { e.fn.removeData = function (t) { return function (n) { if (arguments.length) { return t.call(this, e.camelCase(n)) } else { return t.call(this) } } } (e.fn.removeData) } e.ui.ie = !!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()); e.support.selectstart = "onselectstart" in do
|