MyOAExx/Scripts/js/libs/jqueryui/1.8.13/jquery-ui.min.js

(开头部分) 242KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/*!
 * jQuery UI 1.8.13
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI
 */
(function (a, d) {
    function c(g, e) { var i = g.nodeName.toLowerCase(); if ("area" === i) { e = g.parentNode; i = e.name; if (!g.href || !i || e.nodeName.toLowerCase() !== "map") return false; g = a("img[usemap=#" + i + "]")[0]; return !!g && f(g) } return (/input|select|textarea|button|object/.test(i) ? !g.disabled : "a" == i ? g.href || e : e) && f(g) } function f(g) { return !a(g).parents().andSelf().filter(function () { return a.curCSS(this, "visibility") === "hidden" || a.expr.filters.hidden(this) }).length } a.ui = a.ui || {}; if (!a.ui.version) {
        a.extend(a.ui, {
            version: "1.8.13",
            keyCode: { ALT: 18, BACKSPACE: 8, CAPS_LOCK: 20, COMMA: 188, COMMAND: 91, COMMAND_LEFT: 91, COMMAND_RIGHT: 93, CONTROL: 17, DELETE: 46, DOWN: 40, END: 35, ENTER: 13, ESCAPE: 27, HOME: 36, INSERT: 45, LEFT: 37, MENU: 93, 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, SHIFT: 16, SPACE: 32, TAB: 9, UP: 38, WINDOWS: 91 }
        }); a.fn.extend({
            _focus: a.fn.focus, focus: function (g, e) {
                return typeof g === "number" ? this.each(function () {
                    var i = this; setTimeout(function () {
                        a(i).focus();
                        e && e.call(i)
                    }, g)
                }) : this._focus.apply(this, arguments)
            }, scrollParent: function () {
                var g; g = a.browser.msie && /(static|relative)/.test(this.css("position")) || /absolute/.test(this.css("position")) ? this.parents().filter(function () { return /(relative|absolute|fixed)/.test(a.curCSS(this, "position", 1)) && /(auto|scroll)/.test(a.curCSS(this, "overflow", 1) + a.curCSS(this, "overflow-y", 1) + a.curCSS(this, "overflow-x", 1)) }).eq(0) : this.parents().filter(function () {
                    return /(auto|scroll)/.test(a.curCSS(this, "overflow", 1) + a.curCSS(this,
                    "overflow-y", 1) + a.curCSS(this, "overflow-x", 1))
                }).eq(0); return /fixed/.test(this.css("position")) || !g.length ? a(document) : g
            }, zIndex: function (g) { if (g !== d) return this.css("zIndex", g); if (this.length) { g = a(this[0]); for (var e; g.length && g[0] !== document;) { e = g.css("position"); if (e === "absolute" || e === "relative" || e === "fixed") { e = parseInt(g.css("zIndex"), 10); if (!isNaN(e) && e !== 0) return e } g = g.parent() } } return 0 }, disableSelection: function () {
                return this.bind((a.support.selectstart ? "selectstart" : "mousedown") + ".ui-disableSelection",
                function (g) { g.preventDefault() })
            }, enableSelection: function () { return this.unbind(".ui-disableSelection") }
        }); a.each(["Width", "Height"], function (g, e) {
            function i(l, o, n, k) { a.each(b, function () { o -= parseFloat(a.curCSS(l, "padding" + this, true)) || 0; if (n) o -= parseFloat(a.curCSS(l, "border" + this + "Width", true)) || 0; if (k) o -= parseFloat(a.curCSS(l, "margin" + this, true)) || 0 }); return o } var b = e === "Width" ? ["Left", "Right"] : ["Top", "Bottom"], h = e.toLowerCase(), j = {
                innerWidth: a.fn.innerWidth, innerHeight: a.fn.innerHeight, outerWidth: a.fn.outerWidth,
                outerHeight: a.fn.outerHeight
            }; a.fn["inner" + e] = function (l) { if (l === d) return j["inner" + e].call(this); return this.each(function () { a(this).css(h, i(this, l) + "px") }) }; a.fn["outer" + e] = function (l, o) { if (typeof l !== "number") return j["outer" + e].call(this, l); return this.each(function () { a(this).css(h, i(this, l, true, o) + "px") }) }
        }); a.extend(a.expr[":"], {
            data: function (g, e, i) { return !!a.data(g, i[3]) }, focusable: function (g) { return c(g, !isNaN(a.attr(g, "tabindex"))) }, tabbable: function (g) {
                var e = a.attr(g, "tabindex"), i = isNaN(e);
                return (i || e >= 0) && c(g, !i)
            }
        }); a(function () { var g = document.body, e = g.appendChild(e = document.createElement("div")); a.extend(e.style, { minHeight: "100px", height: "auto", padding: 0, borderWidth: 0 }); a.support.minHeight = e.offsetHeight === 100; a.support.selectstart = "onselectstart" in e; g.removeChild(e).style.display = "none" }); a.extend(a.ui, {
            plugin: {
                add: function (g, e, i) { g = a.ui[g].prototype; for (var b in i) { g.plugins[b] = g.plugins[b] || []; g.plugins[b].push([e, i[b]]) } }, call: function (g, e, i) {
                    if ((e = g.plugins[e]) && g.element[0].parentNode) for (var b =
                    0; b < e.length; b++) g.options[e[b][0]] && e[b][1].apply(g.element, i)
                }
            }, contains: function (g, e) { return document.compareDocumentPosition ? g.compareDocumentPosition(e) & 16 : g !== e && g.contains(e) }, hasScroll: function (g, e) { if (a(g).css("overflow") === "hidden") return false; e = e && e === "left" ? "scrollLeft" : "scrollTop"; var i = false; if (g[e] > 0) return true; g[e] = 1; i = g[e] > 0; g[e] = 0; return i }, isOverAxis: function (g, e, i) { return g > e && g < e + i }, isOver: function (g, e, i, b, h, j) { return a.ui.isOverAxis(g, i, h) && a.ui.isOverAxis(e, b, j) }
        })
    }
})(jQuery);
(function (a, d) {
    if (a.cleanData) { var c = a.cleanData; a.cleanData = function (g) { for (var e = 0, i; (i = g[e]) != null; e++) a(i).triggerHandler("remove"); c(g) } } else { var f = a.fn.remove; a.fn.remove = function (g, e) { return this.each(function () { if (!e) if (!g || a.filter(g, [this]).length) a("*", this).add([this]).each(function () { a(this).triggerHandler("remove") }); return f.call(a(this), g, e) }) } } a.widget = function (g, e, i) {
        var b = g.split(".")[0], h; g = g.split(".")[1]; h = b + "-" + g; if (!i) { i = e; e = a.Widget } a.expr[":"][h] = function (j) {
            return !!a.data(j,
            g)
        }; a[b] = a[b] || {}; a[b][g] = function (j, l) { arguments.length && this._createWidget(j, l) }; e = new e; e.options = a.extend(true, {}, e.options); a[b][g].prototype = a.extend(true, e, { namespace: b, widgetName: g, widgetEventPrefix: a[b][g].prototype.widgetEventPrefix || g, widgetBaseClass: h }, i); a.widget.bridge(g, a[b][g])
    }; a.widget.bridge = function (g, e) {
        a.fn[g] = function (i) {
            var b = typeof i === "string", h = Array.prototype.slice.call(arguments, 1), j = this; i = !b && h.length ? a.extend.apply(null, [true, i].concat(h)) : i; if (b && i.charAt(0) === "_") return j;
后面还有 1477 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。