Template:Team:Tsinghua-A/LogoCode
From 2014.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
<html> | <html> | ||
<body> | <body> | ||
- | |||
<script type = "text/javascript" > | <script type = "text/javascript" > | ||
/*! jQuery v1.8.3 jquery.com | jquery.org/license */ | /*! jQuery v1.8.3 jquery.com | jquery.org/license */ | ||
Line 13: | Line 12: | ||
function H(e, n, r) { | function H(e, n, r) { | ||
- | if (r === t & | + | if (r === t && e.nodeType === 1) { |
var i = "data-" + n.replace(P, "-$1").toLowerCase(); | var i = "data-" + n.replace(P, "-$1").toLowerCase(); | ||
r = e.getAttribute(i); | r = e.getAttribute(i); | ||
Line 29: | Line 28: | ||
var t; | var t; | ||
for (t in e) { | for (t in e) { | ||
- | if (t === "data" & | + | if (t === "data" && v.isEmptyObject(e[t])) continue; |
if (t !== "toJSON") return !1 | if (t !== "toJSON") return !1 | ||
} | } | ||
Line 48: | Line 47: | ||
function at(e, t) { | function at(e, t) { | ||
- | do e = e[t]; while (e & | + | do e = e[t]; while (e && e.nodeType !== 1); |
return e | return e | ||
} | } | ||
Line 95: | Line 94: | ||
for (r = 0, i = u[n].length; r < i; r++) v.event.add(t, n, u[n][r]) | for (r = 0, i = u[n].length; r < i; r++) v.event.add(t, n, u[n][r]) | ||
} | } | ||
- | o.data & | + | o.data && (o.data = v.extend({}, o.data)) |
} | } | ||
Line 101: | Line 100: | ||
var n; | var n; | ||
if (t.nodeType !== 1) return; | if (t.nodeType !== 1) return; | ||
- | t.clearAttributes & | + | t.clearAttributes && t.clearAttributes(), t.mergeAttributes && t.mergeAttributes(e), n = t.nodeName.toLowerCase(), n === "object" ? (t.parentNode && (t.outerHTML = e.outerHTML), v.support.html5Clone && e.innerHTML && !v.trim(t.innerHTML) && (t.innerHTML = e.innerHTML)) : n === "input" && Et.test(e.type) ? (t.defaultChecked = t.checked = e.checked, t.value !== e.value && (t.value = e.value)) : n === "option" ? t.selected = e.defaultSelected : n === "input" || n === "textarea" ? t.defaultValue = e.defaultValue : n === "script" && t.text !== e.text && (t.text = e.text), t.removeAttribute(v.expando) |
} | } | ||
Line 109: | Line 108: | ||
function _t(e) { | function _t(e) { | ||
- | Et.test(e.type) & | + | Et.test(e.type) && (e.defaultChecked = e.checked) |
} | } | ||
Line 135: | Line 134: | ||
n = e[s]; | n = e[s]; | ||
if (!n.style) continue; | if (!n.style) continue; | ||
- | i[s] = v._data(n, "olddisplay"), t ? (!i[s] & | + | i[s] = v._data(n, "olddisplay"), t ? (!i[s] && n.style.display === "none" && (n.style.display = ""), n.style.display === "" && Gt(n) && (i[s] = v._data(n, "olddisplay", nn(n.nodeName)))) : (r = Dt(n, "display"), !i[s] && r !== "none" && v._data(n, "olddisplay", r)) |
} | } | ||
for (s = 0; s < o; s++) { | for (s = 0; s < o; s++) { | ||
Line 153: | Line 152: | ||
var i = n === (r ? "border" : "content") ? 4 : t === "width" ? 1 : 0, | var i = n === (r ? "border" : "content") ? 4 : t === "width" ? 1 : 0, | ||
s = 0; | s = 0; | ||
- | for (; i < 4; i += 2) n === "margin" & | + | for (; i < 4; i += 2) n === "margin" && (s += v.css(e, n + $t[i], !0)), r ? (n === "content" && (s -= parseFloat(Dt(e, "padding" + $t[i])) || 0), n !== "margin" && (s -= parseFloat(Dt(e, "border" + $t[i] + "Width")) || 0)) : (s += parseFloat(Dt(e, "padding" + $t[i])) || 0, n !== "padding" && (s += parseFloat(Dt(e, "border" + $t[i] + "Width")) || 0)); |
return s | return s | ||
} | } | ||
Line 160: | Line 159: | ||
var r = t === "width" ? e.offsetWidth : e.offsetHeight, | var r = t === "width" ? e.offsetWidth : e.offsetHeight, | ||
i = !0, | i = !0, | ||
- | s = v.support.boxSizing & | + | s = v.support.boxSizing && v.css(e, "boxSizing") === "border-box"; |
if (r <= 0 || r == null) { | if (r <= 0 || r == null) { | ||
r = Dt(e, t); | r = Dt(e, t); | ||
if (r < 0 || r == null) r = e.style[t]; | if (r < 0 || r == null) r = e.style[t]; | ||
if (Ut.test(r)) return r; | if (Ut.test(r)) return r; | ||
- | i = s & | + | i = s && (v.support.boxSizingReliable || r === e.style[t]), r = parseFloat(r) || 0 |
} | } | ||
return r + en(e, t, n || (s ? "border" : "content"), i) + "px" | return r + en(e, t, n || (s ? "border" : "content"), i) + "px" | ||
Line 192: | Line 191: | ||
n || sn.test(e) ? r(e, i) : fn(e + "[" + (typeof i == "object" ? t : "") + "]", i, n, r) | n || sn.test(e) ? r(e, i) : fn(e + "[" + (typeof i == "object" ? t : "") + "]", i, n, r) | ||
}); | }); | ||
- | else if (!n & | + | else if (!n && v.type(t) === "object") |
for (i in t) fn(e + "[" + i + "]", t[i], n, r); | for (i in t) fn(e + "[" + i + "]", t[i], n, r); | ||
else r(e, t) | else r(e, t) | ||
Line 199: | Line 198: | ||
function Cn(e) { | function Cn(e) { | ||
return function(t, n) { | return function(t, n) { | ||
- | typeof t != "string" & | + | typeof t != "string" && (n = t, t = "*"); |
var r, i, s, o = t.toLowerCase().split(y), | var r, i, s, o = t.toLowerCase().split(y), | ||
u = 0, | u = 0, | ||
a = o.length; | a = o.length; | ||
if (v.isFunction(n)) | if (v.isFunction(n)) | ||
- | for (; u < a; u++) r = o[u], s = /^\+/.test(r), s & | + | for (; u < a; u++) r = o[u], s = /^\+/.test(r), s && (r = r.substr(1) || "*"), i = e[r] = e[r] || [], i[s ? "unshift" : "push"](n) |
} | } | ||
} | } | ||
Line 214: | Line 213: | ||
l = a ? a.length : 0, | l = a ? a.length : 0, | ||
c = e === Sn; | c = e === Sn; | ||
- | for (; f < l & | + | for (; f < l && (c || !u); f++) u = a[f](n, r, i), typeof u == "string" && (!c || o[u] ? u = t : (n.dataTypes.unshift(u), u = kn(e, n, r, i, u, o))); |
- | return (c || !u) & | + | return (c || !u) && !o["*"] && (u = kn(e, n, r, i, "*", o)), u |
} | } | ||
function Ln(e, n) { | function Ln(e, n) { | ||
var r, i, s = v.ajaxSettings.flatOptions || {}; | var r, i, s = v.ajaxSettings.flatOptions || {}; | ||
- | for (r in n) n[r] !== t & | + | for (r in n) n[r] !== t && ((s[r] ? e : i || (i = {}))[r] = n[r]); |
- | i & | + | i && v.extend(!0, e, i) |
} | } | ||
Line 228: | Line 227: | ||
f = e.dataTypes, | f = e.dataTypes, | ||
l = e.responseFields; | l = e.responseFields; | ||
- | for (s in l) s in r & | + | for (s in l) s in r && (n[l[s]] = r[s]); |
- | while (f[0] === "*") f.shift(), i === t & | + | while (f[0] === "*") f.shift(), i === t && (i = e.mimeType || n.getResponseHeader("content-type")); |
if (i) | if (i) | ||
for (s in a) | for (s in a) | ||
- | if (a[s] & | + | if (a[s] && a[s].test(i)) { |
f.unshift(s); | f.unshift(s); | ||
break | break | ||
Line 246: | Line 245: | ||
} | } | ||
o = o || u | o = o || u | ||
- | } if (o) return o !== f[0] & | + | } if (o) return o !== f[0] && f.unshift(o), r[o] |
} | } | ||
Line 253: | Line 252: | ||
u = o[0], | u = o[0], | ||
a = {}, f = 0; | a = {}, f = 0; | ||
- | e.dataFilter & | + | e.dataFilter && (t = e.dataFilter(t, e.dataType)); |
if (o[1]) | if (o[1]) | ||
for (n in e.converters) a[n.toLowerCase()] = e.converters[n]; | for (n in e.converters) a[n.toLowerCase()] = e.converters[n]; | ||
for (; i = o[++f];) | for (; i = o[++f];) | ||
if (i !== "*") { | if (i !== "*") { | ||
- | if (u !== "*" & | + | if (u !== "*" && u !== i) { |
n = a[u + " " + i] || a["* " + i]; | n = a[u + " " + i] || a["* " + i]; | ||
if (!n) | if (!n) | ||
Line 266: | Line 265: | ||
n = a[u + " " + s[0]] || a["* " + s[0]]; | n = a[u + " " + s[0]] || a["* " + s[0]]; | ||
if (n) { | if (n) { | ||
- | n === !0 ? n = a[r] : a[r] !== !0 & | + | n === !0 ? n = a[r] : a[r] !== !0 && (i = s[0], o.splice(f--, 0, i)); |
break | break | ||
} | } | ||
Line 272: | Line 271: | ||
} | } | ||
if (n !== !0) | if (n !== !0) | ||
- | if (n & | + | if (n && e["throws"]) t = n(t); |
else try { | else try { | ||
t = n(t) | t = n(t) | ||
Line 333: | Line 332: | ||
o = f.tweens.length; | o = f.tweens.length; | ||
for (; s < o; s++) f.tweens[s].run(i); | for (; s < o; s++) f.tweens[s].run(i); | ||
- | return u.notifyWith(e, [f, i, n]), i < 1 & | + | return u.notifyWith(e, [f, i, n]), i < 1 && o ? n : (u.resolveWith(e, [f]), !1) |
}, f = u.promise({ | }, f = u.promise({ | ||
elem: e, | elem: e, | ||
Line 362: | Line 361: | ||
if (r) return r | if (r) return r | ||
} | } | ||
- | return Jn(f, l), v.isFunction(f.opts.start) & | + | return Jn(f, l), v.isFunction(f.opts.start) && f.opts.start.call(e, f), v.fx.timer(v.extend(a, { |
anim: f, | anim: f, | ||
queue: f.opts.queue, | queue: f.opts.queue, | ||
Line 372: | Line 371: | ||
var n, r, i, s, o; | var n, r, i, s, o; | ||
for (n in e) { | for (n in e) { | ||
- | r = v.camelCase(n), i = t[r], s = e[n], v.isArray(s) & | + | r = v.camelCase(n), i = t[r], s = e[n], v.isArray(s) && (i = s[1], s = e[n] = s[0]), n !== r && (e[r] = s, delete e[n]), o = v.cssHooks[r]; |
- | if (o & | + | if (o && "expand" in o) { |
s = o.expand(s), delete e[r]; | s = o.expand(s), delete e[r]; | ||
for (n in s) n in e || (e[n] = s[n], t[n] = i) | for (n in s) n in e || (e[n] = s[n], t[n] = i) | ||
Line 384: | Line 383: | ||
p = e.style, | p = e.style, | ||
d = {}, m = [], | d = {}, m = [], | ||
- | g = e.nodeType & | + | g = e.nodeType && Gt(e); |
- | n.queue || (l = v._queueHooks(e, "fx"), l.unqueued == null & | + | n.queue || (l = v._queueHooks(e, "fx"), l.unqueued == null && (l.unqueued = 0, c = l.empty.fire, l.empty.fire = function() { |
l.unqueued || c() | l.unqueued || c() | ||
}), l.unqueued++, h.always(function() { | }), l.unqueued++, h.always(function() { | ||
Line 391: | Line 390: | ||
l.unqueued--, v.queue(e, "fx").length || l.empty.fire() | l.unqueued--, v.queue(e, "fx").length || l.empty.fire() | ||
}) | }) | ||
- | })), e.nodeType === 1 & | + | })), e.nodeType === 1 && ("height" in t || "width" in t) && (n.overflow = [p.overflow, p.overflowX, p.overflowY], v.css(e, "display") === "inline" && v.css(e, "float") === "none" && (!v.support.inlineBlockNeedsLayout || nn(e.nodeName) === "inline" ? p.display = "inline-block" : p.zoom = 1)), n.overflow && (p.overflow = "hidden", v.support.shrinkWrapBlocks || h.done(function() { |
p.overflow = n.overflow[0], p.overflowX = n.overflow[1], p.overflowY = n.overflow[2] | p.overflow = n.overflow[0], p.overflowX = n.overflow[1], p.overflowY = n.overflow[2] | ||
})); | })); | ||
Line 404: | Line 403: | ||
o = m.length; | o = m.length; | ||
if (o) { | if (o) { | ||
- | u = v._data(e, "fxshow") || v._data(e, "fxshow", {}), "hidden" in u & | + | u = v._data(e, "fxshow") || v._data(e, "fxshow", {}), "hidden" in u && (g = u.hidden), a && (u.hidden = !g), g ? v(e).show() : h.done(function() { |
v(e).hide() | v(e).hide() | ||
}), h.done(function() { | }), h.done(function() { | ||
Line 411: | Line 410: | ||
for (t in d) v.style(e, t, d[t]) | for (t in d) v.style(e, t, d[t]) | ||
}); | }); | ||
- | for (r = 0; r < o; r++) i = m[r], f = h.createTween(i, g ? u[i] : 0), d[i] = u[i] || v.style(e, i), i in u || (u[i] = f.start, g & | + | for (r = 0; r < o; r++) i = m[r], f = h.createTween(i, g ? u[i] : 0), d[i] = u[i] || v.style(e, i), i in u || (u[i] = f.start, g && (f.end = f.start, f.start = i === "width" || i === "height" ? 1 : 0)) |
} | } | ||
} | } | ||
Line 425: | Line 424: | ||
t = t ? 1 : 0; | t = t ? 1 : 0; | ||
for (; i < 4; i += 2 - t) n = $t[i], r["margin" + n] = r["padding" + n] = e; | for (; i < 4; i += 2 - t) n = $t[i], r["margin" + n] = r["padding" + n] = e; | ||
- | return t & | + | return t && (r.opacity = r.width = e), r |
} | } | ||
Line 459: | Line 458: | ||
return (t + "").toUpperCase() | return (t + "").toUpperCase() | ||
}, A = function() { | }, A = function() { | ||
- | i.addEventListener ? (i.removeEventListener("DOMContentLoaded", A, !1), v.ready()) : i.readyState === "complete" & | + | i.addEventListener ? (i.removeEventListener("DOMContentLoaded", A, !1), v.ready()) : i.readyState === "complete" && (i.detachEvent("onreadystatechange", A), v.ready()) |
}, O = {}; | }, O = {}; | ||
v.fn = v.prototype = { | v.fn = v.prototype = { | ||
Line 468: | Line 467: | ||
if (e.nodeType) return this.context = this[0] = e, this.length = 1, this; | if (e.nodeType) return this.context = this[0] = e, this.length = 1, this; | ||
if (typeof e == "string") { | if (typeof e == "string") { | ||
- | e.charAt(0) === "<" & | + | e.charAt(0) === "<" && e.charAt(e.length - 1) === ">" && e.length >= 3 ? s = [null, e, null] : s = w.exec(e); |
- | if (s & | + | if (s && (s[1] || !n)) { |
- | if (s[1]) return n = n instanceof v ? n[0] : n, a = n & | + | if (s[1]) return n = n instanceof v ? n[0] : n, a = n && n.nodeType ? n.ownerDocument || n : i, e = v.parseHTML(s[1], a, !0), E.test(s[1]) && v.isPlainObject(n) && this.attr.call(e, n, !0), v.merge(this, e); |
o = i.getElementById(s[2]); | o = i.getElementById(s[2]); | ||
- | if (o & | + | if (o && o.parentNode) { |
if (o.id !== s[2]) return r.find(e); | if (o.id !== s[2]) return r.find(e); | ||
this.length = 1, this[0] = o | this.length = 1, this[0] = o | ||
Line 480: | Line 479: | ||
return !n || n.jquery ? (n || r).find(e) : this.constructor(n).find(e) | return !n || n.jquery ? (n || r).find(e) : this.constructor(n).find(e) | ||
} | } | ||
- | return v.isFunction(e) ? r.ready(e) : (e.selector !== t & | + | return v.isFunction(e) ? r.ready(e) : (e.selector !== t && (this.selector = e.selector, this.context = e.context), v.makeArray(e, this)) |
}, | }, | ||
selector: "", | selector: "", | ||
Line 496: | Line 495: | ||
pushStack: function(e, t, n) { | pushStack: function(e, t, n) { | ||
var r = v.merge(this.constructor(), e); | var r = v.merge(this.constructor(), e); | ||
- | return r.prevObject = this, r.context = this.context, t === "find" ? r.selector = this.selector + (this.selector ? " " : "") + n : t & | + | return r.prevObject = this, r.context = this.context, t === "find" ? r.selector = this.selector + (this.selector ? " " : "") + n : t && (r.selector = this.selector + "." + t + "(" + n + ")"), r |
}, | }, | ||
each: function(e, t) { | each: function(e, t) { | ||
Line 531: | Line 530: | ||
f = arguments.length, | f = arguments.length, | ||
l = !1; | l = !1; | ||
- | typeof u == "boolean" & | + | typeof u == "boolean" && (l = u, u = arguments[1] || {}, a = 2), typeof u != "object" && !v.isFunction(u) && (u = {}), f === a && (u = this, --a); |
for (; a < f; a++) | for (; a < f; a++) | ||
if ((e = arguments[a]) != null) | if ((e = arguments[a]) != null) | ||
Line 537: | Line 536: | ||
r = u[n], i = e[n]; | r = u[n], i = e[n]; | ||
if (u === i) continue; | if (u === i) continue; | ||
- | l & | + | l && i && (v.isPlainObject(i) || (s = v.isArray(i))) ? (s ? (s = !1, o = r && v.isArray(r) ? r : []) : o = r && v.isPlainObject(r) ? r : {}, u[n] = v.extend(l, o, i)) : i !== t && (u[n] = i) |
} | } | ||
return u | return u | ||
}, v.extend({ | }, v.extend({ | ||
noConflict: function(t) { | noConflict: function(t) { | ||
- | return e.$ === v & | + | return e.$ === v && (e.$ = a), t && e.jQuery === v && (e.jQuery = u), v |
}, | }, | ||
isReady: !1, | isReady: !1, | ||
Line 553: | Line 552: | ||
if (!i.body) return setTimeout(v.ready, 1); | if (!i.body) return setTimeout(v.ready, 1); | ||
v.isReady = !0; | v.isReady = !0; | ||
- | if (e !== !0 & | + | if (e !== !0 && --v.readyWait > 0) return; |
- | r.resolveWith(i, [v]), v.fn.trigger & | + | r.resolveWith(i, [v]), v.fn.trigger && v(i).trigger("ready").off("ready") |
}, | }, | ||
isFunction: function(e) { | isFunction: function(e) { | ||
Line 563: | Line 562: | ||
}, | }, | ||
isWindow: function(e) { | isWindow: function(e) { | ||
- | return e != null & | + | return e != null && e == e.window |
}, | }, | ||
isNumeric: function(e) { | isNumeric: function(e) { | ||
- | return !isNaN(parseFloat(e)) & | + | return !isNaN(parseFloat(e)) && isFinite(e) |
}, | }, | ||
type: function(e) { | type: function(e) { | ||
Line 574: | Line 573: | ||
if (!e || v.type(e) !== "object" || e.nodeType || v.isWindow(e)) return !1; | if (!e || v.type(e) !== "object" || e.nodeType || v.isWindow(e)) return !1; | ||
try { | try { | ||
- | if (e.constructor & | + | if (e.constructor && !p.call(e, "constructor") && !p.call(e.constructor.prototype, "isPrototypeOf")) return !1 |
} catch (n) { | } catch (n) { | ||
return !1 | return !1 | ||
Line 592: | Line 591: | ||
parseHTML: function(e, t, n) { | parseHTML: function(e, t, n) { | ||
var r; | var r; | ||
- | return !e || typeof e != "string" ? null : (typeof t == "boolean" & | + | return !e || typeof e != "string" ? null : (typeof t == "boolean" && (n = t, t = 0), t = t || i, (r = E.exec(e)) ? [t.createElement(r[1])] : (r = v.buildFragment([e], t, n ? null : []), v.merge([], (r.cacheable ? v.clone(r.fragment) : r.fragment).childNodes))) |
}, | }, | ||
parseJSON: function(t) { | parseJSON: function(t) { | ||
if (!t || typeof t != "string") return null; | if (!t || typeof t != "string") return null; | ||
t = v.trim(t); | t = v.trim(t); | ||
- | if (e.JSON & | + | if (e.JSON && e.JSON.parse) return e.JSON.parse(t); |
if (S.test(t.replace(T, "@").replace(N, "]").replace(x, ""))) return (new Function("return " + t))(); | if (S.test(t.replace(T, "@").replace(N, "]").replace(x, ""))) return (new Function("return " + t))(); | ||
v.error("Invalid JSON: " + t) | v.error("Invalid JSON: " + t) | ||
Line 609: | Line 608: | ||
r = t | r = t | ||
} | } | ||
- | return (!r || !r.documentElement || r.getElementsByTagName("parsererror").length) & | + | return (!r || !r.documentElement || r.getElementsByTagName("parsererror").length) && v.error("Invalid XML: " + n), r |
}, | }, | ||
noop: function() {}, | noop: function() {}, | ||
globalEval: function(t) { | globalEval: function(t) { | ||
- | t & | + | t && g.test(t) && (e.execScript || function(t) { |
e.eval.call(e, t) | e.eval.call(e, t) | ||
})(t) | })(t) | ||
Line 621: | Line 620: | ||
}, | }, | ||
nodeName: function(e, t) { | nodeName: function(e, t) { | ||
- | return e.nodeName & | + | return e.nodeName && e.nodeName.toLowerCase() === t.toLowerCase() |
}, | }, | ||
each: function(e, n, r) { | each: function(e, n, r) { | ||
Line 641: | Line 640: | ||
if (n.call(e[s], s, e[s++]) === !1) break; return e | if (n.call(e[s], s, e[s++]) === !1) break; return e | ||
}, | }, | ||
- | trim: d & | + | trim: d && !d.call("\ufeff\u00a0") ? function(e) { |
return e == null ? "" : d.call(e) | return e == null ? "" : d.call(e) | ||
} : function(e) { | } : function(e) { | ||
Line 648: | Line 647: | ||
makeArray: function(e, t) { | makeArray: function(e, t) { | ||
var n, r = t || []; | var n, r = t || []; | ||
- | return e != null & | + | return e != null && (n = v.type(e), e.length == null || n === "string" || n === "function" || n === "regexp" || v.isWindow(e) ? f.call(r, e) : v.merge(r, e)), r |
}, | }, | ||
inArray: function(e, t, n) { | inArray: function(e, t, n) { | ||
Line 656: | Line 655: | ||
r = t.length, n = n ? n < 0 ? Math.max(0, r + n) : n : 0; | r = t.length, n = n ? n < 0 ? Math.max(0, r + n) : n : 0; | ||
for (; n < r; n++) | for (; n < r; n++) | ||
- | if (n in t & | + | if (n in t && t[n] === e) return n |
} | } | ||
return -1 | return -1 | ||
Line 675: | Line 674: | ||
o = e.length; | o = e.length; | ||
n = !! n; | n = !! n; | ||
- | for (; s < o; s++) r = !! t(e[s], s), n !== r & | + | for (; s < o; s++) r = !! t(e[s], s), n !== r && i.push(e[s]); |
return i | return i | ||
}, | }, | ||
Line 682: | Line 681: | ||
u = 0, | u = 0, | ||
a = e.length, | a = e.length, | ||
- | f = e instanceof v || a !== t & | + | f = e instanceof v || a !== t && typeof a == "number" && (a > 0 && e[0] && e[a - 1] || a === 0 || v.isArray(e)); |
if (f) | if (f) | ||
- | for (; u < a; u++) i = n(e[u], u, r), i != null & | + | for (; u < a; u++) i = n(e[u], u, r), i != null && (o[o.length] = i); |
else | else | ||
- | for (s in e) i = n(e[s], s, r), i != null & | + | for (s in e) i = n(e[s], s, r), i != null && (o[o.length] = i); |
return o.concat.apply([], o) | return o.concat.apply([], o) | ||
}, | }, | ||
Line 692: | Line 691: | ||
proxy: function(e, n) { | proxy: function(e, n) { | ||
var r, i, s; | var r, i, s; | ||
- | return typeof n == "string" & | + | return typeof n == "string" && (r = e[n], n = e, e = r), v.isFunction(e) ? (i = l.call(arguments, 2), s = function() { |
return e.apply(n, i.concat(l.call(arguments))) | return e.apply(n, i.concat(l.call(arguments))) | ||
}, s.guid = e.guid = e.guid || v.guid++, s) : t | }, s.guid = e.guid = e.guid || v.guid++, s) : t | ||
Line 700: | Line 699: | ||
l = 0, | l = 0, | ||
c = e.length; | c = e.length; | ||
- | if (r & | + | if (r && typeof r == "object") { |
for (l in r) v.access(e, n, l, r[l], 1, o, i); | for (l in r) v.access(e, n, l, r[l], 1, o, i); | ||
s = 1 | s = 1 | ||
} else if (i !== t) { | } else if (i !== t) { | ||
- | a = u === t & | + | a = u === t && v.isFunction(i), f && (a ? (a = n, n = function(e, t, n) { |
return a.call(v(e), n) | return a.call(v(e), n) | ||
}) : (n.call(e, i), n = null)); | }) : (n.call(e, i), n = null)); | ||
Line 725: | Line 724: | ||
var n = !1; | var n = !1; | ||
try { | try { | ||
- | n = e.frameElement == null & | + | n = e.frameElement == null && i.documentElement |
} catch (s) {} | } catch (s) {} | ||
- | n & | + | n && n.doScroll && function o() { |
if (!v.isReady) { | if (!v.isReady) { | ||
try { | try { | ||
Line 747: | Line 746: | ||
e = typeof e == "string" ? M[e] || _(e) : v.extend({}, e); | e = typeof e == "string" ? M[e] || _(e) : v.extend({}, e); | ||
var n, r, i, s, o, u, a = [], | var n, r, i, s, o, u, a = [], | ||
- | f = !e.once & | + | f = !e.once && [], |
l = function(t) { | l = function(t) { | ||
- | n = e.memory & | + | n = e.memory && t, r = !0, u = s || 0, s = 0, o = a.length, i = !0; |
- | for (; a & | + | for (; a && u < o; u++) |
- | if (a[u].apply(t[0], t[1]) === !1 & | + | if (a[u].apply(t[0], t[1]) === !1 && e.stopOnFalse) { |
n = !1; | n = !1; | ||
break | break | ||
} | } | ||
- | i = !1, a & | + | i = !1, a && (f ? f.length && l(f.shift()) : n ? a = [] : c.disable()) |
}, c = { | }, c = { | ||
add: function() { | add: function() { | ||
Line 763: | Line 762: | ||
v.each(t, function(t, n) { | v.each(t, function(t, n) { | ||
var i = v.type(n); | var i = v.type(n); | ||
- | i === "function" ? (!e.unique || !c.has(n)) & | + | i === "function" ? (!e.unique || !c.has(n)) && a.push(n) : n && n.length && i !== "string" && r(n) |
}) | }) | ||
- | })(arguments), i ? o = a.length : n & | + | })(arguments), i ? o = a.length : n && (s = t, l(n)) |
} | } | ||
return this | return this | ||
}, | }, | ||
remove: function() { | remove: function() { | ||
- | return a & | + | return a && v.each(arguments, function(e, t) { |
var n; | var n; | ||
- | while ((n = v.inArray(t, a, n)) > -1) a.splice(n, 1), i & | + | while ((n = v.inArray(t, a, n)) > -1) a.splice(n, 1), i && (n <= o && o--, n <= u && u--) |
}), this | }), this | ||
}, | }, | ||
Line 794: | Line 793: | ||
}, | }, | ||
fireWith: function(e, t) { | fireWith: function(e, t) { | ||
- | return t = t || [], t = [e, t.slice ? t.slice() : t], a & | + | return t = t || [], t = [e, t.slice ? t.slice() : t], a && (!r || f) && (i ? f.push(t) : l(t)), this |
}, | }, | ||
fire: function() { | fire: function() { | ||
Line 827: | Line 826: | ||
i[r[1]](v.isFunction(o) ? function() { | i[r[1]](v.isFunction(o) ? function() { | ||
var e = o.apply(this, arguments); | var e = o.apply(this, arguments); | ||
- | e & | + | e && v.isFunction(e.promise) ? e.promise().done(n.resolve).fail(n.reject).progress(n.notify) : n[s + "With"](this === i ? n : this, [e]) |
} : n[s]) | } : n[s]) | ||
}), e = null | }), e = null | ||
Line 839: | Line 838: | ||
var o = s[2], | var o = s[2], | ||
u = s[3]; | u = s[3]; | ||
- | r[s[1]] = o.add, u & | + | r[s[1]] = o.add, u && o.add(function() { |
n = u | n = u | ||
}, t[e ^ 1][2].disable, t[2][2].lock), i[s[0]] = o.fire, i[s[0] + "With"] = o.fireWith | }, t[e ^ 1][2].disable, t[2][2].lock), i[s[0]] = o.fire, i[s[0] + "With"] = o.fireWith | ||
- | }), r.promise(i), e & | + | }), r.promise(i), e && e.call(i, i), i |
}, | }, | ||
when: function(e) { | when: function(e) { | ||
Line 848: | Line 847: | ||
n = l.call(arguments), | n = l.call(arguments), | ||
r = n.length, | r = n.length, | ||
- | i = r !== 1 || e & | + | i = r !== 1 || e && v.isFunction(e.promise) ? r : 0, |
s = i === 1 ? e : v.Deferred(), | s = i === 1 ? e : v.Deferred(), | ||
o = function(e, t, n) { | o = function(e, t, n) { | ||
Line 857: | Line 856: | ||
if (r > 1) { | if (r > 1) { | ||
u = new Array(r), a = new Array(r), f = new Array(r); | u = new Array(r), a = new Array(r), f = new Array(r); | ||
- | for (; t < r; t++) n[t] & | + | for (; t < r; t++) n[t] && v.isFunction(n[t].promise) ? n[t].promise().done(o(t, f, n)).fail(s.reject).progress(o(t, a, u)) : --i |
} | } | ||
return i || s.resolveWith(f, n), s.promise() | return i || s.resolveWith(f, n), s.promise() | ||
Line 894: | Line 893: | ||
} catch (d) { | } catch (d) { | ||
t.deleteExpando = !1 | t.deleteExpando = !1 | ||
- | }!p.addEventListener & | + | }!p.addEventListener && p.attachEvent && p.fireEvent && (p.attachEvent("onclick", h = function() { |
t.noCloneEvent = !1 | t.noCloneEvent = !1 | ||
}), p.cloneNode(!0).fireEvent("onclick"), p.detachEvent("onclick", h)), u = i.createElement("input"), u.value = "t", u.setAttribute("type", "radio"), t.radioValue = u.value === "t", u.setAttribute("checked", "checked"), u.setAttribute("name", "t"), p.appendChild(u), a = i.createDocumentFragment(), a.appendChild(p.lastChild), t.checkClone = a.cloneNode(!0).cloneNode(!0).lastChild.checked, t.appendChecked = u.checked, a.removeChild(u), a.appendChild(p); | }), p.cloneNode(!0).fireEvent("onclick"), p.detachEvent("onclick", h)), u = i.createElement("input"), u.value = "t", u.setAttribute("type", "radio"), t.radioValue = u.value === "t", u.setAttribute("checked", "checked"), u.setAttribute("name", "t"), p.appendChild(u), a = i.createDocumentFragment(), a.appendChild(p.lastChild), t.checkClone = a.cloneNode(!0).cloneNode(!0).lastChild.checked, t.appendChecked = u.checked, a.removeChild(u), a.appendChild(p); | ||
Line 907: | Line 906: | ||
a = i.getElementsByTagName("body")[0]; | a = i.getElementsByTagName("body")[0]; | ||
if (!a) return; | if (!a) return; | ||
- | n = i.createElement("div"), n.style.cssText = "visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px", a.insertBefore(n, a.firstChild), r = i.createElement("div"), n.appendChild(r), r.innerHTML = "<table><tr><td></td><td>t</td></tr></table>", s = r.getElementsByTagName("td"), s[0].style.cssText = "padding:0;margin:0;border:0;display:none", c = s[0].offsetHeight === 0, s[0].style.display = "", s[1].style.display = "none", t.reliableHiddenOffsets = c & | + | n = i.createElement("div"), n.style.cssText = "visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px", a.insertBefore(n, a.firstChild), r = i.createElement("div"), n.appendChild(r), r.innerHTML = "<table><tr><td></td><td>t</td></tr></table>", s = r.getElementsByTagName("td"), s[0].style.cssText = "padding:0;margin:0;border:0;display:none", c = s[0].offsetHeight === 0, s[0].style.display = "", s[1].style.display = "none", t.reliableHiddenOffsets = c && s[0].offsetHeight === 0, r.innerHTML = "", r.style.cssText = "box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;", t.boxSizing = r.offsetWidth === 4, t.doesNotIncludeMarginInBodyOffset = a.offsetTop !== 1, e.getComputedStyle && (t.pixelPosition = (e.getComputedStyle(r, null) || {}).top !== "1%", t.boxSizingReliable = (e.getComputedStyle(r, null) || { |
width: "4px" | width: "4px" | ||
- | }).width === "4px", o = i.createElement("div"), o.style.cssText = r.style.cssText = u, o.style.marginRight = o.style.width = "0", r.style.width = "1px", r.appendChild(o), t.reliableMarginRight = !parseFloat((e.getComputedStyle(o, null) || {}).marginRight)), typeof r.style.zoom != "undefined" & | + | }).width === "4px", o = i.createElement("div"), o.style.cssText = r.style.cssText = u, o.style.marginRight = o.style.width = "0", r.style.width = "1px", r.appendChild(o), t.reliableMarginRight = !parseFloat((e.getComputedStyle(o, null) || {}).marginRight)), typeof r.style.zoom != "undefined" && (r.innerHTML = "", r.style.cssText = u + "width:1px;padding:1px;display:inline;zoom:1", t.inlineBlockNeedsLayout = r.offsetWidth === 3, r.style.display = "block", r.style.overflow = "visible", r.innerHTML = "<div></div>", r.firstChild.style.width = "5px", t.shrinkWrapBlocks = r.offsetWidth !== 3, n.style.zoom = 1), a.removeChild(n), n = r = s = o = null |
}), a.removeChild(p), n = r = s = o = u = a = p = null, t | }), a.removeChild(p), n = r = s = o = u = a = p = null, t | ||
}(); | }(); | ||
Line 925: | Line 924: | ||
}, | }, | ||
hasData: function(e) { | hasData: function(e) { | ||
- | return e = e.nodeType ? v.cache[e[v.expando]] : e[v.expando], !! e & | + | return e = e.nodeType ? v.cache[e[v.expando]] : e[v.expando], !! e && !B(e) |
}, | }, | ||
data: function(e, n, r, i) { | data: function(e, n, r, i) { | ||
Line 933: | Line 932: | ||
f = e.nodeType, | f = e.nodeType, | ||
l = f ? v.cache : e, | l = f ? v.cache : e, | ||
- | c = f ? e[u] : e[u] & | + | c = f ? e[u] : e[u] && u; |
- | if ((!c || !l[c] || !i & | + | if ((!c || !l[c] || !i && !l[c].data) && a && r === t) return; |
c || (f ? e[u] = c = v.deletedIds.pop() || v.guid++ : c = u), l[c] || (l[c] = {}, f || (l[c].toJSON = v.noop)); | c || (f ? e[u] = c = v.deletedIds.pop() || v.guid++ : c = u), l[c] || (l[c] = {}, f || (l[c].toJSON = v.noop)); | ||
if (typeof n == "object" || typeof n == "function") i ? l[c] = v.extend(l[c], n) : l[c].data = v.extend(l[c].data, n); | if (typeof n == "object" || typeof n == "function") i ? l[c] = v.extend(l[c], n) : l[c].data = v.extend(l[c].data, n); | ||
- | return s = l[c], i || (s.data || (s.data = {}), s = s.data), r !== t & | + | return s = l[c], i || (s.data || (s.data = {}), s = s.data), r !== t && (s[v.camelCase(n)] = r), a ? (o = s[n], o == null && (o = s[v.camelCase(n)])) : o = s, o |
}, | }, | ||
removeData: function(e, t, n) { | removeData: function(e, t, n) { | ||
Line 963: | Line 962: | ||
}, | }, | ||
acceptData: function(e) { | acceptData: function(e) { | ||
- | var t = e.nodeName & | + | var t = e.nodeName && v.noData[e.nodeName.toLowerCase()]; |
- | return !t || t !== !0 & | + | return !t || t !== !0 && e.getAttribute("classid") === t |
} | } | ||
}), v.fn.extend({ | }), v.fn.extend({ | ||
Line 974: | Line 973: | ||
if (this.length) { | if (this.length) { | ||
l = v.data(a); | l = v.data(a); | ||
- | if (a.nodeType === 1 & | + | if (a.nodeType === 1 && !v._data(a, "parsedAttrs")) { |
s = a.attributes; | s = a.attributes; | ||
for (u = s.length; f < u; f++) o = s[f].name, o.indexOf("data-") || (o = v.camelCase(o.substring(5)), H(a, o, l[o])); | for (u = s.length; f < u; f++) o = s[f].name, o.indexOf("data-") || (o = v.camelCase(o.substring(5)), H(a, o, l[o])); | ||
Line 985: | Line 984: | ||
v.data(this, e) | v.data(this, e) | ||
}) : (r = e.split(".", 2), r[1] = r[1] ? "." + r[1] : "", i = r[1] + "!", v.access(this, function(n) { | }) : (r = e.split(".", 2), r[1] = r[1] ? "." + r[1] : "", i = r[1] + "!", v.access(this, function(n) { | ||
- | if (n === t) return l = this.triggerHandler("getData" + i, [r[0]]), l === t & | + | if (n === t) return l = this.triggerHandler("getData" + i, [r[0]]), l === t && a && (l = v.data(a, e), l = H(a, e, l)), l === t && r[1] ? this.data(r[0]) : l; |
r[1] = n, this.each(function() { | r[1] = n, this.each(function() { | ||
var t = v(this); | var t = v(this); | ||
Line 1,000: | Line 999: | ||
queue: function(e, t, n) { | queue: function(e, t, n) { | ||
var r; | var r; | ||
- | if (e) return t = (t || "fx") + "queue", r = v._data(e, t), n & | + | if (e) return t = (t || "fx") + "queue", r = v._data(e, t), n && (!r || v.isArray(n) ? r = v._data(e, t, v.makeArray(n)) : r.push(n)), r || [] |
}, | }, | ||
dequeue: function(e, t) { | dequeue: function(e, t) { | ||
Line 1,011: | Line 1,010: | ||
v.dequeue(e, t) | v.dequeue(e, t) | ||
}; | }; | ||
- | i === "inprogress" & | + | i === "inprogress" && (i = n.shift(), r--), i && (t === "fx" && n.unshift("inprogress"), delete s.stop, i.call(e, o, s)), !r && s && s.empty.fire() |
}, | }, | ||
_queueHooks: function(e, t) { | _queueHooks: function(e, t) { | ||
Line 1,024: | Line 1,023: | ||
queue: function(e, n) { | queue: function(e, n) { | ||
var r = 2; | var r = 2; | ||
- | return typeof e != "string" & | + | return typeof e != "string" && (n = e, e = "fx", r--), arguments.length < r ? v.queue(this[0], e) : n === t ? this : this.each(function() { |
var t = v.queue(this, e, n); | var t = v.queue(this, e, n); | ||
- | v._queueHooks(this, e), e === "fx" & | + | v._queueHooks(this, e), e === "fx" && t[0] !== "inprogress" && v.dequeue(this, e) |
}) | }) | ||
}, | }, | ||
Line 1,053: | Line 1,052: | ||
--i || s.resolveWith(o, [o]) | --i || s.resolveWith(o, [o]) | ||
}; | }; | ||
- | typeof e != "string" & | + | typeof e != "string" && (n = e, e = t), e = e || "fx"; |
- | while (u--) r = v._data(o[u], e + "queueHooks"), r & | + | while (u--) r = v._data(o[u], e + "queueHooks"), r && r.empty && (i++, r.empty.add(a)); |
return a(), s.promise(n) | return a(), s.promise(n) | ||
} | } | ||
Line 1,089: | Line 1,088: | ||
v(this).addClass(e.call(this, t, this.className)) | v(this).addClass(e.call(this, t, this.className)) | ||
}); | }); | ||
- | if (e & | + | if (e && typeof e == "string") { |
t = e.split(y); | t = e.split(y); | ||
for (n = 0, r = this.length; n < r; n++) { | for (n = 0, r = this.length; n < r; n++) { | ||
i = this[n]; | i = this[n]; | ||
if (i.nodeType === 1) | if (i.nodeType === 1) | ||
- | if (!i.className & | + | if (!i.className && t.length === 1) i.className = e; |
else { | else { | ||
s = " " + i.className + " "; | s = " " + i.className + " "; | ||
- | for (o = 0, u = t.length; o < u; o++) s.indexOf(" " + t[o] + " ") < 0 & | + | for (o = 0, u = t.length; o < u; o++) s.indexOf(" " + t[o] + " ") < 0 && (s += t[o] + " "); |
i.className = v.trim(s) | i.className = v.trim(s) | ||
} | } | ||
Line 1,109: | Line 1,108: | ||
v(this).removeClass(e.call(this, t, this.className)) | v(this).removeClass(e.call(this, t, this.className)) | ||
}); | }); | ||
- | if (e & | + | if (e && typeof e == "string" || e === t) { |
n = (e || "").split(y); | n = (e || "").split(y); | ||
for (u = 0, a = this.length; u < a; u++) { | for (u = 0, a = this.length; u < a; u++) { | ||
i = this[u]; | i = this[u]; | ||
- | if (i.nodeType === 1 & | + | if (i.nodeType === 1 && i.className) { |
r = (" " + i.className + " ").replace(q, " "); | r = (" " + i.className + " ").replace(q, " "); | ||
for (s = 0, o = n.length; s < o; s++) | for (s = 0, o = n.length; s < o; s++) | ||
Line 1,135: | Line 1,134: | ||
a = e.split(y); | a = e.split(y); | ||
while (i = a[s++]) u = r ? u : !o.hasClass(i), o[u ? "addClass" : "removeClass"](i) | while (i = a[s++]) u = r ? u : !o.hasClass(i), o[u ? "addClass" : "removeClass"](i) | ||
- | } else if (n === "undefined" || n === "boolean") this.className & | + | } else if (n === "undefined" || n === "boolean") this.className && v._data(this, "__className__", this.className), this.className = this.className || e === !1 ? "" : v._data(this, "__className__") || "" |
}) | }) | ||
}, | }, | ||
Line 1,143: | Line 1,142: | ||
r = this.length; | r = this.length; | ||
for (; n < r; n++) | for (; n < r; n++) | ||
- | if (this[n].nodeType === 1 & | + | if (this[n].nodeType === 1 && (" " + this[n].className + " ").replace(q, " ").indexOf(t) >= 0) return !0; |
return !1 | return !1 | ||
}, | }, | ||
Line 1,149: | Line 1,148: | ||
var n, r, i, s = this[0]; | var n, r, i, s = this[0]; | ||
if (!arguments.length) { | if (!arguments.length) { | ||
- | if (s) return n = v.valHooks[s.type] || v.valHooks[s.nodeName.toLowerCase()], n & | + | if (s) return n = v.valHooks[s.type] || v.valHooks[s.nodeName.toLowerCase()], n && "get" in n && (r = n.get(s, "value")) !== t ? r : (r = s.value, typeof r == "string" ? r.replace(R, "") : r == null ? "" : r); |
return | return | ||
} | } | ||
Line 1,155: | Line 1,154: | ||
var s, o = v(this); | var s, o = v(this); | ||
if (this.nodeType !== 1) return; | if (this.nodeType !== 1) return; | ||
- | i ? s = e.call(this, r, o.val()) : s = e, s == null ? s = "" : typeof s == "number" ? s += "" : v.isArray(s) & | + | i ? s = e.call(this, r, o.val()) : s = e, s == null ? s = "" : typeof s == "number" ? s += "" : v.isArray(s) && (s = v.map(s, function(e) { |
return e == null ? "" : e + "" | return e == null ? "" : e + "" | ||
})), n = v.valHooks[this.type] || v.valHooks[this.nodeName.toLowerCase()]; | })), n = v.valHooks[this.type] || v.valHooks[this.nodeName.toLowerCase()]; | ||
Line 1,179: | Line 1,178: | ||
for (; a < u; a++) { | for (; a < u; a++) { | ||
n = r[a]; | n = r[a]; | ||
- | if ((n.selected || a === i) & | + | if ((n.selected || a === i) && (v.support.optDisabled ? !n.disabled : n.getAttribute("disabled") === null) && (!n.parentNode.disabled || !v.nodeName(n.parentNode, "optgroup"))) { |
t = v(n).val(); | t = v(n).val(); | ||
if (s) return t; | if (s) return t; | ||
Line 1,199: | Line 1,198: | ||
var s, o, u, a = e.nodeType; | var s, o, u, a = e.nodeType; | ||
if (!e || a === 3 || a === 8 || a === 2) return; | if (!e || a === 3 || a === 8 || a === 2) return; | ||
- | if (i & | + | if (i && v.isFunction(v.fn[n])) return v(e)[n](r); |
if (typeof e.getAttribute == "undefined") return v.prop(e, n, r); | if (typeof e.getAttribute == "undefined") return v.prop(e, n, r); | ||
- | u = a !== 1 || !v.isXMLDoc(e), u & | + | u = a !== 1 || !v.isXMLDoc(e), u && (n = n.toLowerCase(), o = v.attrHooks[n] || (X.test(n) ? F : j)); |
if (r !== t) { | if (r !== t) { | ||
if (r === null) { | if (r === null) { | ||
Line 1,207: | Line 1,206: | ||
return | return | ||
} | } | ||
- | return o & | + | return o && "set" in o && u && (s = o.set(e, r, n)) !== t ? s : (e.setAttribute(n, r + ""), r) |
} | } | ||
- | return o & | + | return o && "get" in o && u && (s = o.get(e, n)) !== null ? s : (s = e.getAttribute(n), s === null ? t : s) |
}, | }, | ||
removeAttr: function(e, t) { | removeAttr: function(e, t) { | ||
var n, r, i, s, o = 0; | var n, r, i, s, o = 0; | ||
- | if (t & | + | if (t && e.nodeType === 1) { |
r = t.split(y); | r = t.split(y); | ||
- | for (; o < r.length; o++) i = r[o], i & | + | for (; o < r.length; o++) i = r[o], i && (n = v.propFix[i] || i, s = X.test(i), s || v.attr(e, i, ""), e.removeAttribute(V ? i : n), s && n in e && (e[n] = !1)) |
} | } | ||
}, | }, | ||
Line 1,221: | Line 1,220: | ||
type: { | type: { | ||
set: function(e, t) { | set: function(e, t) { | ||
- | if (U.test(e.nodeName) & | + | if (U.test(e.nodeName) && e.parentNode) v.error("type property can't be changed"); |
- | else if (!v.support.radioValue & | + | else if (!v.support.radioValue && t === "radio" && v.nodeName(e, "input")) { |
var n = e.value; | var n = e.value; | ||
- | return e.setAttribute("type", t), n & | + | return e.setAttribute("type", t), n && (e.value = n), t |
} | } | ||
} | } | ||
Line 1,230: | Line 1,229: | ||
value: { | value: { | ||
get: function(e, t) { | get: function(e, t) { | ||
- | return j & | + | return j && v.nodeName(e, "button") ? j.get(e, t) : t in e ? e.value : null |
}, | }, | ||
set: function(e, t, n) { | set: function(e, t, n) { | ||
- | if (j & | + | if (j && v.nodeName(e, "button")) return j.set(e, t, n); |
e.value = t | e.value = t | ||
} | } | ||
Line 1,255: | Line 1,254: | ||
var i, s, o, u = e.nodeType; | var i, s, o, u = e.nodeType; | ||
if (!e || u === 3 || u === 8 || u === 2) return; | if (!e || u === 3 || u === 8 || u === 2) return; | ||
- | return o = u !== 1 || !v.isXMLDoc(e), o & | + | return o = u !== 1 || !v.isXMLDoc(e), o && (n = v.propFix[n] || n, s = v.propHooks[n]), r !== t ? s && "set" in s && (i = s.set(e, r, n)) !== t ? i : e[n] = r : s && "get" in s && (i = s.get(e, n)) !== null ? i : e[n] |
}, | }, | ||
propHooks: { | propHooks: { | ||
Line 1,261: | Line 1,260: | ||
get: function(e) { | get: function(e) { | ||
var n = e.getAttributeNode("tabindex"); | var n = e.getAttributeNode("tabindex"); | ||
- | return n & | + | return n && n.specified ? parseInt(n.value, 10) : z.test(e.nodeName) || W.test(e.nodeName) && e.href ? 0 : t |
} | } | ||
} | } | ||
Line 1,268: | Line 1,267: | ||
get: function(e, n) { | get: function(e, n) { | ||
var r, i = v.prop(e, n); | var r, i = v.prop(e, n); | ||
- | return i === !0 || typeof i != "boolean" & | + | return i === !0 || typeof i != "boolean" && (r = e.getAttributeNode(n)) && r.nodeValue !== !1 ? n.toLowerCase() : t |
}, | }, | ||
set: function(e, t, n) { | set: function(e, t, n) { | ||
var r; | var r; | ||
- | return t === !1 ? v.removeAttr(e, n) : (r = v.propFix[n] || n, r in e & | + | return t === !1 ? v.removeAttr(e, n) : (r = v.propFix[n] || n, r in e && (e[r] = !0), e.setAttribute(n, n.toLowerCase())), n |
} | } | ||
}, V || (I = { | }, V || (I = { | ||
Line 1,281: | Line 1,280: | ||
get: function(e, n) { | get: function(e, n) { | ||
var r; | var r; | ||
- | return r = e.getAttributeNode(n), r & | + | return r = e.getAttributeNode(n), r && (I[n] ? r.value !== "" : r.specified) ? r.value : t |
}, | }, | ||
set: function(e, t, n) { | set: function(e, t, n) { | ||
Line 1,296: | Line 1,295: | ||
get: j.get, | get: j.get, | ||
set: function(e, t, n) { | set: function(e, t, n) { | ||
- | t === "" & | + | t === "" && (t = "false"), j.set(e, t, n) |
} | } | ||
}), v.support.hrefNormalized || v.each(["href", "src", "width", "height"], function(e, n) { | }), v.support.hrefNormalized || v.each(["href", "src", "width", "height"], function(e, n) { | ||
Line 1,315: | Line 1,314: | ||
get: function(e) { | get: function(e) { | ||
var t = e.parentNode; | var t = e.parentNode; | ||
- | return t & | + | return t && (t.selectedIndex, t.parentNode && t.parentNode.selectedIndex), null |
} | } | ||
})), v.support.enctype || (v.propFix.enctype = "encoding"), v.support.checkOn || v.each(["radio", "checkbox"], function() { | })), v.support.enctype || (v.propFix.enctype = "encoding"), v.support.checkOn || v.each(["radio", "checkbox"], function() { | ||
Line 1,343: | Line 1,342: | ||
var o, u, a, f, l, c, h, p, d, m, g; | var o, u, a, f, l, c, h, p, d, m, g; | ||
if (e.nodeType === 3 || e.nodeType === 8 || !n || !r || !(o = v._data(e))) return; | if (e.nodeType === 3 || e.nodeType === 8 || !n || !r || !(o = v._data(e))) return; | ||
- | r.handler & | + | r.handler && (d = r, r = d.handler, s = d.selector), r.guid || (r.guid = v.guid++), a = o.events, a || (o.events = a = {}), u = o.handle, u || (o.handle = u = function(e) { |
- | return typeof v == "undefined" || !! e & | + | return typeof v == "undefined" || !! e && v.event.triggered === e.type ? t : v.event.dispatch.apply(u.elem, arguments) |
}, u.elem = e), n = v.trim(Z(n)).split(" "); | }, u.elem = e), n = v.trim(Z(n)).split(" "); | ||
for (f = 0; f < n.length; f++) { | for (f = 0; f < n.length; f++) { | ||
Line 1,354: | Line 1,353: | ||
guid: r.guid, | guid: r.guid, | ||
selector: s, | selector: s, | ||
- | needsContext: s & | + | needsContext: s && v.expr.match.needsContext.test(s), |
namespace: h.join(".") | namespace: h.join(".") | ||
}, d), m = a[c]; | }, d), m = a[c]; | ||
if (!m) { | if (!m) { | ||
m = a[c] = [], m.delegateCount = 0; | m = a[c] = [], m.delegateCount = 0; | ||
- | if (!g.setup || g.setup.call(e, i, h, u) === !1) e.addEventListener ? e.addEventListener(c, u, !1) : e.attachEvent & | + | if (!g.setup || g.setup.call(e, i, h, u) === !1) e.addEventListener ? e.addEventListener(c, u, !1) : e.attachEvent && e.attachEvent("on" + c, u) |
} | } | ||
- | g.add & | + | g.add && (g.add.call(e, p), p.handler.guid || (p.handler.guid = r.guid)), s ? m.splice(m.delegateCount++, 0, p) : m.push(p), v.event.global[c] = !0 |
} | } | ||
e = null | e = null | ||
Line 1,367: | Line 1,366: | ||
global: {}, | global: {}, | ||
remove: function(e, t, n, r, i) { | remove: function(e, t, n, r, i) { | ||
- | var s, o, u, a, f, l, c, h, p, d, m, g = v.hasData(e) & | + | var s, o, u, a, f, l, c, h, p, d, m, g = v.hasData(e) && v._data(e); |
if (!g || !(h = g.events)) return; | if (!g || !(h = g.events)) return; | ||
t = v.trim(Z(t || "")).split(" "); | t = v.trim(Z(t || "")).split(" "); | ||
Line 1,377: | Line 1,376: | ||
} | } | ||
p = v.event.special[u] || {}, u = (r ? p.delegateType : p.bindType) || u, d = h[u] || [], l = d.length, f = f ? new RegExp("(^|\\.)" + f.split(".").sort().join("\\.(?:.*\\.|)") + "(\\.|$)") : null; | p = v.event.special[u] || {}, u = (r ? p.delegateType : p.bindType) || u, d = h[u] || [], l = d.length, f = f ? new RegExp("(^|\\.)" + f.split(".").sort().join("\\.(?:.*\\.|)") + "(\\.|$)") : null; | ||
- | for (c = 0; c < d.length; c++) m = d[c], (i || a === m.origType) & | + | for (c = 0; c < d.length; c++) m = d[c], (i || a === m.origType) && (!n || n.guid === m.guid) && (!f || f.test(m.namespace)) && (!r || r === m.selector || r === "**" && m.selector) && (d.splice(c--, 1), m.selector && d.delegateCount--, p.remove && p.remove.call(e, m)); |
- | d.length === 0 & | + | d.length === 0 && l !== d.length && ((!p.teardown || p.teardown.call(e, f, g.handle) === !1) && v.removeEvent(e, u, g.handle), delete h[u]) |
} | } | ||
- | v.isEmptyObject(h) & | + | v.isEmptyObject(h) && (delete g.handle, v.removeData(e, "events", !0)) |
}, | }, | ||
customEvent: { | customEvent: { | ||
Line 1,388: | Line 1,387: | ||
}, | }, | ||
trigger: function(n, r, s, o) { | trigger: function(n, r, s, o) { | ||
- | if (!s || s.nodeType !== 3 & | + | if (!s || s.nodeType !== 3 && s.nodeType !== 8) { |
var u, a, f, l, c, h, p, d, m, g, y = n.type || n, | var u, a, f, l, c, h, p, d, m, g, y = n.type || n, | ||
b = []; | b = []; | ||
if (Y.test(y + v.event.triggered)) return; | if (Y.test(y + v.event.triggered)) return; | ||
- | y.indexOf("!") >= 0 & | + | y.indexOf("!") >= 0 && (y = y.slice(0, -1), a = !0), y.indexOf(".") >= 0 && (b = y.split("."), y = b.shift(), b.sort()); |
- | if ((!s || v.event.customEvent[y]) & | + | if ((!s || v.event.customEvent[y]) && !v.event.global[y]) return; |
n = typeof n == "object" ? n[v.expando] ? n : new v.Event(y, n) : new v.Event(y), n.type = y, n.isTrigger = !0, n.exclusive = a, n.namespace = b.join("."), n.namespace_re = n.namespace ? new RegExp("(^|\\.)" + b.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, h = y.indexOf(":") < 0 ? "on" + y : ""; | n = typeof n == "object" ? n[v.expando] ? n : new v.Event(y, n) : new v.Event(y), n.type = y, n.isTrigger = !0, n.exclusive = a, n.namespace = b.join("."), n.namespace_re = n.namespace ? new RegExp("(^|\\.)" + b.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, h = y.indexOf(":") < 0 ? "on" + y : ""; | ||
if (!s) { | if (!s) { | ||
u = v.cache; | u = v.cache; | ||
- | for (f in u) u[f].events & | + | for (f in u) u[f].events && u[f].events[y] && v.event.trigger(n, r, u[f].handle.elem, !0); |
return | return | ||
} | } | ||
n.result = t, n.target || (n.target = s), r = r != null ? v.makeArray(r) : [], r.unshift(n), p = v.event.special[y] || {}; | n.result = t, n.target || (n.target = s), r = r != null ? v.makeArray(r) : [], r.unshift(n), p = v.event.special[y] || {}; | ||
- | if (p.trigger & | + | if (p.trigger && p.trigger.apply(s, r) === !1) return; |
m = [ | m = [ | ||
[s, p.bindType || y] | [s, p.bindType || y] | ||
]; | ]; | ||
- | if (!o & | + | if (!o && !p.noBubble && !v.isWindow(s)) { |
g = p.delegateType || y, l = Y.test(g + y) ? s : s.parentNode; | g = p.delegateType || y, l = Y.test(g + y) ? s : s.parentNode; | ||
for (c = s; l; l = l.parentNode) m.push([l, g]), c = l; | for (c = s; l; l = l.parentNode) m.push([l, g]), c = l; | ||
- | c === (s.ownerDocument || i) & | + | c === (s.ownerDocument || i) && m.push([c.defaultView || c.parentWindow || e, g]) |
} | } | ||
- | for (f = 0; f < m.length & | + | for (f = 0; f < m.length && !n.isPropagationStopped(); f++) l = m[f][0], n.type = m[f][1], d = (v._data(l, "events") || {})[n.type] && v._data(l, "handle"), d && d.apply(l, r), d = h && l[h], d && v.acceptData(l) && d.apply && d.apply(l, r) === !1 && n.preventDefault(); |
- | return n.type = y, !o & | + | return n.type = y, !o && !n.isDefaultPrevented() && (!p._default || p._default.apply(s.ownerDocument, r) === !1) && (y !== "click" || !v.nodeName(s, "a")) && v.acceptData(s) && h && s[y] && (y !== "focus" && y !== "blur" || n.target.offsetWidth !== 0) && !v.isWindow(s) && (c = s[h], c && (s[h] = null), v.event.triggered = y, s[y](), v.event.triggered = t, c && (s[h] = c)), n.result |
} | } | ||
return | return | ||
Line 1,420: | Line 1,419: | ||
m = d.delegateCount, | m = d.delegateCount, | ||
g = l.call(arguments), | g = l.call(arguments), | ||
- | y = !n.exclusive & | + | y = !n.exclusive && !n.namespace, |
b = v.event.special[n.type] || {}, w = []; | b = v.event.special[n.type] || {}, w = []; | ||
g[0] = n, n.delegateTarget = this; | g[0] = n, n.delegateTarget = this; | ||
- | if (b.preDispatch & | + | if (b.preDispatch && b.preDispatch.call(this, n) === !1) return; |
- | if (m & | + | if (m && (!n.button || n.type !== "click")) |
for (s = n.target; s != this; s = s.parentNode || this) | for (s = n.target; s != this; s = s.parentNode || this) | ||
if (s.disabled !== !0 || n.type !== "click") { | if (s.disabled !== !0 || n.type !== "click") { | ||
u = {}, f = []; | u = {}, f = []; | ||
- | for (r = 0; r < m; r++) c = d[r], h = c.selector, u[h] === t & | + | for (r = 0; r < m; r++) c = d[r], h = c.selector, u[h] === t && (u[h] = c.needsContext ? v(h, this).index(s) >= 0 : v.find(h, this, null, [s]).length), u[h] && f.push(c); |
- | f.length & | + | f.length && w.push({ |
elem: s, | elem: s, | ||
matches: f | matches: f | ||
}) | }) | ||
} | } | ||
- | d.length > m & | + | d.length > m && w.push({ |
elem: this, | elem: this, | ||
matches: d.slice(m) | matches: d.slice(m) | ||
}); | }); | ||
- | for (r = 0; r < w.length & | + | for (r = 0; r < w.length && !n.isPropagationStopped(); r++) { |
a = w[r], n.currentTarget = a.elem; | a = w[r], n.currentTarget = a.elem; | ||
- | for (i = 0; i < a.matches.length & | + | for (i = 0; i < a.matches.length && !n.isImmediatePropagationStopped(); i++) { |
c = a.matches[i]; | c = a.matches[i]; | ||
- | if (y || !n.namespace & | + | if (y || !n.namespace && !c.namespace || n.namespace_re && n.namespace_re.test(c.namespace)) n.data = c.data, n.handleObj = c, o = ((v.event.special[c.origType] || {}).handle || c.handler).apply(a.elem, g), o !== t && (n.result = o, o === !1 && (n.preventDefault(), n.stopPropagation())) |
} | } | ||
} | } | ||
- | return b.postDispatch & | + | return b.postDispatch && b.postDispatch.call(this, n), n.result |
}, | }, | ||
props: "attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "), | props: "attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "), | ||
Line 1,452: | Line 1,451: | ||
props: "char charCode key keyCode".split(" "), | props: "char charCode key keyCode".split(" "), | ||
filter: function(e, t) { | filter: function(e, t) { | ||
- | return e.which == null & | + | return e.which == null && (e.which = t.charCode != null ? t.charCode : t.keyCode), e |
} | } | ||
}, | }, | ||
Line 1,460: | Line 1,459: | ||
var r, s, o, u = n.button, | var r, s, o, u = n.button, | ||
a = n.fromElement; | a = n.fromElement; | ||
- | return e.pageX == null & | + | return e.pageX == null && n.clientX != null && (r = e.target.ownerDocument || i, s = r.documentElement, o = r.body, e.pageX = n.clientX + (s && s.scrollLeft || o && o.scrollLeft || 0) - (s && s.clientLeft || o && o.clientLeft || 0), e.pageY = n.clientY + (s && s.scrollTop || o && o.scrollTop || 0) - (s && s.clientTop || o && o.clientTop || 0)), !e.relatedTarget && a && (e.relatedTarget = a === e.target ? n.toElement : a), !e.which && u !== t && (e.which = u & 1 ? 1 : u & 2 ? 3 : u & 4 ? 2 : 0), e |
} | } | ||
}, | }, | ||
Line 1,469: | Line 1,468: | ||
e = v.Event(r); | e = v.Event(r); | ||
for (t = o.length; t;) n = o[--t], e[n] = r[n]; | for (t = o.length; t;) n = o[--t], e[n] = r[n]; | ||
- | return e.target || (e.target = r.srcElement || i), e.target.nodeType === 3 & | + | return e.target || (e.target = r.srcElement || i), e.target.nodeType === 3 && (e.target = e.target.parentNode), e.metaKey = !! e.metaKey, s.filter ? s.filter(e, r) : e |
}, | }, | ||
special: { | special: { | ||
Line 1,483: | Line 1,482: | ||
beforeunload: { | beforeunload: { | ||
setup: function(e, t, n) { | setup: function(e, t, n) { | ||
- | v.isWindow(this) & | + | v.isWindow(this) && (this.onbeforeunload = n) |
}, | }, | ||
teardown: function(e, t) { | teardown: function(e, t) { | ||
- | this.onbeforeunload === t & | + | this.onbeforeunload === t && (this.onbeforeunload = null) |
} | } | ||
} | } | ||
Line 1,496: | Line 1,495: | ||
originalEvent: {} | originalEvent: {} | ||
}); | }); | ||
- | r ? v.event.trigger(i, null, t) : v.event.dispatch.call(t, i), i.isDefaultPrevented() & | + | r ? v.event.trigger(i, null, t) : v.event.dispatch.call(t, i), i.isDefaultPrevented() && n.preventDefault() |
} | } | ||
}, v.event.handle = v.event.dispatch, v.removeEvent = i.removeEventListener ? function(e, t, n) { | }, v.event.handle = v.event.dispatch, v.removeEvent = i.removeEventListener ? function(e, t, n) { | ||
- | e.removeEventListener & | + | e.removeEventListener && e.removeEventListener(t, n, !1) |
} : function(e, t, n) { | } : function(e, t, n) { | ||
var r = "on" + t; | var r = "on" + t; | ||
- | e.detachEvent & | + | e.detachEvent && (typeof e[r] == "undefined" && (e[r] = null), e.detachEvent(r, n)) |
}, v.Event = function(e, t) { | }, v.Event = function(e, t) { | ||
if (!(this instanceof v.Event)) return new v.Event(e, t); | if (!(this instanceof v.Event)) return new v.Event(e, t); | ||
- | e & | + | e && e.type ? (this.originalEvent = e, this.type = e.type, this.isDefaultPrevented = e.defaultPrevented || e.returnValue === !1 || e.getPreventDefault && e.getPreventDefault() ? tt : et) : this.type = e, t && v.extend(this, t), this.timeStamp = e && e.timeStamp || v.now(), this[v.expando] = !0 |
}, v.Event.prototype = { | }, v.Event.prototype = { | ||
preventDefault: function() { | preventDefault: function() { | ||
Line 1,517: | Line 1,516: | ||
var e = this.originalEvent; | var e = this.originalEvent; | ||
if (!e) return; | if (!e) return; | ||
- | e.stopPropagation & | + | e.stopPropagation && e.stopPropagation(), e.cancelBubble = !0 |
}, | }, | ||
stopImmediatePropagation: function() { | stopImmediatePropagation: function() { | ||
Line 1,537: | Line 1,536: | ||
s = e.handleObj, | s = e.handleObj, | ||
o = s.selector; | o = s.selector; | ||
- | if (!i || i !== r & | + | if (!i || i !== r && !v.contains(r, i)) e.type = s.origType, n = s.handler.apply(this, arguments), e.type = t; |
return n | return n | ||
} | } | ||
Line 1,547: | Line 1,546: | ||
var n = e.target, | var n = e.target, | ||
r = v.nodeName(n, "input") || v.nodeName(n, "button") ? n.form : t; | r = v.nodeName(n, "input") || v.nodeName(n, "button") ? n.form : t; | ||
- | r & | + | r && !v._data(r, "_submit_attached") && (v.event.add(r, "submit._submit", function(e) { |
e._submit_bubble = !0 | e._submit_bubble = !0 | ||
}), v._data(r, "_submit_attached", !0)) | }), v._data(r, "_submit_attached", !0)) | ||
Line 1,553: | Line 1,552: | ||
}, | }, | ||
postDispatch: function(e) { | postDispatch: function(e) { | ||
- | e._submit_bubble & | + | e._submit_bubble && (delete e._submit_bubble, this.parentNode && !e.isTrigger && v.event.simulate("submit", this.parentNode, e, !0)) |
}, | }, | ||
teardown: function() { | teardown: function() { | ||
Line 1,563: | Line 1,562: | ||
if ($.test(this.nodeName)) { | if ($.test(this.nodeName)) { | ||
if (this.type === "checkbox" || this.type === "radio") v.event.add(this, "propertychange._change", function(e) { | if (this.type === "checkbox" || this.type === "radio") v.event.add(this, "propertychange._change", function(e) { | ||
- | e.originalEvent.propertyName === "checked" & | + | e.originalEvent.propertyName === "checked" && (this._just_changed = !0) |
}), v.event.add(this, "click._change", function(e) { | }), v.event.add(this, "click._change", function(e) { | ||
- | this._just_changed & | + | this._just_changed && !e.isTrigger && (this._just_changed = !1), v.event.simulate("change", this, e, !0) |
}); | }); | ||
return !1 | return !1 | ||
Line 1,571: | Line 1,570: | ||
v.event.add(this, "beforeactivate._change", function(e) { | v.event.add(this, "beforeactivate._change", function(e) { | ||
var t = e.target; | var t = e.target; | ||
- | $.test(t.nodeName) & | + | $.test(t.nodeName) && !v._data(t, "_change_attached") && (v.event.add(t, "change._change", function(e) { |
- | this.parentNode & | + | this.parentNode && !e.isSimulated && !e.isTrigger && v.event.simulate("change", this.parentNode, e, !0) |
}), v._data(t, "_change_attached", !0)) | }), v._data(t, "_change_attached", !0)) | ||
}) | }) | ||
Line 1,578: | Line 1,577: | ||
handle: function(e) { | handle: function(e) { | ||
var t = e.target; | var t = e.target; | ||
- | if (this !== t || e.isSimulated || e.isTrigger || t.type !== "radio" & | + | if (this !== t || e.isSimulated || e.isTrigger || t.type !== "radio" && t.type !== "checkbox") return e.handleObj.handler.apply(this, arguments) |
}, | }, | ||
teardown: function() { | teardown: function() { | ||
Line 1,593: | Line 1,592: | ||
v.event.special[t] = { | v.event.special[t] = { | ||
setup: function() { | setup: function() { | ||
- | n++ === 0 & | + | n++ === 0 && i.addEventListener(e, r, !0) |
}, | }, | ||
teardown: function() { | teardown: function() { | ||
- | --n === 0 & | + | --n === 0 && i.removeEventListener(e, r, !0) |
} | } | ||
} | } | ||
Line 1,603: | Line 1,602: | ||
var o, u; | var o, u; | ||
if (typeof e == "object") { | if (typeof e == "object") { | ||
- | typeof n != "string" & | + | typeof n != "string" && (r = r || n, n = t); |
for (u in e) this.on(u, n, r, e[u], s); | for (u in e) this.on(u, n, r, e[u], s); | ||
return this | return this | ||
} | } | ||
- | r == null & | + | r == null && i == null ? (i = n, r = n = t) : i == null && (typeof n == "string" ? (i = r, r = t) : (i = r, r = n, n = t)); |
if (i === !1) i = et; | if (i === !1) i = et; | ||
else if (!i) return this; | else if (!i) return this; | ||
- | return s === 1 & | + | return s === 1 && (o = i, i = function(e) { |
return v().off(e), o.apply(this, arguments) | return v().off(e), o.apply(this, arguments) | ||
}, i.guid = o.guid || (o.guid = v.guid++)), this.each(function() { | }, i.guid = o.guid || (o.guid = v.guid++)), this.each(function() { | ||
Line 1,621: | Line 1,620: | ||
off: function(e, n, r) { | off: function(e, n, r) { | ||
var i, s; | var i, s; | ||
- | if (e & | + | if (e && e.preventDefault && e.handleObj) return i = e.handleObj, v(e.delegateTarget).off(i.namespace ? i.origType + "." + i.namespace : i.origType, i.selector, i.handler), this; |
if (typeof e == "object") { | if (typeof e == "object") { | ||
for (s in e) this.off(s, n, e[s]); | for (s in e) this.off(s, n, e[s]); | ||
Line 1,627: | Line 1,626: | ||
} | } | ||
if (n === !1 || typeof n == "function") r = n, n = t; | if (n === !1 || typeof n == "function") r = n, n = t; | ||
- | return r === !1 & | + | return r === !1 && (r = et), this.each(function() { |
v.event.remove(this, e, r, n) | v.event.remove(this, e, r, n) | ||
}) | }) | ||
Line 1,674: | Line 1,673: | ||
}), v.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "), function(e, t) { | }), v.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "), function(e, t) { | ||
v.fn[t] = function(e, n) { | v.fn[t] = function(e, n) { | ||
- | return n == null & | + | return n == null && (n = e, e = null), arguments.length > 0 ? this.on(t, null, e, n) : this.trigger(t) |
- | }, Q.test(t) & | + | }, Q.test(t) && (v.event.fixHooks[t] = v.event.keyHooks), G.test(t) && (v.event.fixHooks[t] = v.event.mouseHooks) |
}), | }), | ||
function(e, t) { | function(e, t) { | ||
Line 1,682: | Line 1,681: | ||
var i, s, a, f, l = t.nodeType; | var i, s, a, f, l = t.nodeType; | ||
if (!e || typeof e != "string") return n; | if (!e || typeof e != "string") return n; | ||
- | if (l !== 1 & | + | if (l !== 1 && l !== 9) return []; |
a = o(t); | a = o(t); | ||
- | if (!a & | + | if (!a && !r) |
if (i = R.exec(e)) | if (i = R.exec(e)) | ||
if (f = i[1]) { | if (f = i[1]) { | ||
Line 1,691: | Line 1,690: | ||
if (!s || !s.parentNode) return n; | if (!s || !s.parentNode) return n; | ||
if (s.id === f) return n.push(s), n | if (s.id === f) return n.push(s), n | ||
- | } else if (t.ownerDocument & | + | } else if (t.ownerDocument && (s = t.ownerDocument.getElementById(f)) && u(t, s) && s.id === f) return n.push(s), n |
} else { | } else { | ||
if (i[2]) return S.apply(n, x.call(t.getElementsByTagName(e), 0)), n; | if (i[2]) return S.apply(n, x.call(t.getElementsByTagName(e), 0)), n; | ||
- | if ((f = i[3]) & | + | if ((f = i[3]) && Z && t.getElementsByClassName) return S.apply(n, x.call(t.getElementsByClassName(f), 0)), n |
} | } | ||
return vt(e.replace(j, "$1"), t, n, r, a) | return vt(e.replace(j, "$1"), t, n, r, a) | ||
Line 1,702: | Line 1,701: | ||
return function(t) { | return function(t) { | ||
var n = t.nodeName.toLowerCase(); | var n = t.nodeName.toLowerCase(); | ||
- | return n === "input" & | + | return n === "input" && t.type === e |
} | } | ||
} | } | ||
Line 1,709: | Line 1,708: | ||
return function(t) { | return function(t) { | ||
var n = t.nodeName.toLowerCase(); | var n = t.nodeName.toLowerCase(); | ||
- | return (n === "input" || n === "button") & | + | return (n === "input" || n === "button") && t.type === e |
} | } | ||
} | } | ||
Line 1,718: | Line 1,717: | ||
var i, s = e([], n.length, t), | var i, s = e([], n.length, t), | ||
o = s.length; | o = s.length; | ||
- | while (o--) n[i = s[o]] & | + | while (o--) n[i = s[o]] && (n[i] = !(r[i] = n[i])) |
}) | }) | ||
}) | }) | ||
Line 1,738: | Line 1,737: | ||
u = e, a = [], f = i.preFilter; | u = e, a = [], f = i.preFilter; | ||
while (u) { | while (u) { | ||
- | if (!n || (r = F.exec(u))) r & | + | if (!n || (r = F.exec(u))) r && (u = u.slice(r[0].length) || u), a.push(s = []); |
n = !1; | n = !1; | ||
if (r = I.exec(u)) s.push(n = new m(r.shift())), u = u.slice(n.length), n.type = r[0].replace(j, " "); | if (r = I.exec(u)) s.push(n = new m(r.shift())), u = u.slice(n.length), n.type = r[0].replace(j, " "); | ||
- | for (o in i.filter)(r = J[o].exec(u)) & | + | for (o in i.filter)(r = J[o].exec(u)) && (!f[o] || (r = f[o](r))) && (s.push(n = new m(r.shift())), u = u.slice(n.length), n.type = o, n.matches = r); |
if (!n) break | if (!n) break | ||
} | } | ||
Line 1,749: | Line 1,748: | ||
function at(e, t, r) { | function at(e, t, r) { | ||
var i = t.dir, | var i = t.dir, | ||
- | s = r & | + | s = r && t.dir === "parentNode", |
o = w++; | o = w++; | ||
return t.first ? function(t, n, r) { | return t.first ? function(t, n, r) { | ||
Line 1,761: | Line 1,760: | ||
if (s || t.nodeType === 1) { | if (s || t.nodeType === 1) { | ||
if ((a = t[d]) === l) return t.sizset; | if ((a = t[d]) === l) return t.sizset; | ||
- | if (typeof a == "string" & | + | if (typeof a == "string" && a.indexOf(f) === 0) { |
if (t.sizset) return t | if (t.sizset) return t | ||
} else { | } else { | ||
Line 1,792: | Line 1,791: | ||
for (; u < a; u++) | for (; u < a; u++) | ||
if (s = e[u]) | if (s = e[u]) | ||
- | if (!n || n(s, r, i)) o.push(s), f & | + | if (!n || n(s, r, i)) o.push(s), f && t.push(u); |
return o | return o | ||
} | } | ||
function ct(e, t, n, r, i, s) { | function ct(e, t, n, r, i, s) { | ||
- | return r & | + | return r && !r[d] && (r = ct(r)), i && !i[d] && (i = ct(i, s)), N(function(s, o, u, a) { |
var f, l, c, h = [], | var f, l, c, h = [], | ||
p = [], | p = [], | ||
d = o.length, | d = o.length, | ||
v = s || dt(t || "*", u.nodeType ? [u] : u, []), | v = s || dt(t || "*", u.nodeType ? [u] : u, []), | ||
- | m = e & | + | m = e && (s || !t) ? lt(v, h, e, u, a) : v, |
g = n ? i || (s ? e : d || r) ? [] : o : m; | g = n ? i || (s ? e : d || r) ? [] : o : m; | ||
- | n & | + | n && n(m, g, u, a); |
if (r) { | if (r) { | ||
f = lt(g, p), r(f, [], u, a), l = f.length; | f = lt(g, p), r(f, [], u, a), l = f.length; | ||
Line 1,814: | Line 1,813: | ||
if (i) { | if (i) { | ||
f = [], l = g.length; | f = [], l = g.length; | ||
- | while (l--)(c = g[l]) & | + | while (l--)(c = g[l]) && f.push(m[l] = c); |
i(null, g = [], f, a) | i(null, g = [], f, a) | ||
} | } | ||
l = g.length; | l = g.length; | ||
- | while (l--)(c = g[l]) & | + | while (l--)(c = g[l]) && (f = i ? T.call(s, c) : h[l]) > -1 && (s[f] = !(o[f] = c)) |
} | } | ||
} else g = lt(g === o ? g.splice(d, g.length) : g), i ? i(null, o, g, a) : S.apply(o, g) | } else g = lt(g === o ? g.splice(d, g.length) : g), i ? i(null, o, g, a) : S.apply(o, g) | ||
Line 1,837: | Line 1,836: | ||
h = [ | h = [ | ||
function(e, n, r) { | function(e, n, r) { | ||
- | return !o & | + | return !o && (r || n !== c) || ((t = n).nodeType ? f(e, n, r) : l(e, n, r)) |
} | } | ||
]; | ]; | ||
Line 1,848: | Line 1,847: | ||
for (; r < s; r++) | for (; r < s; r++) | ||
if (i.relative[e[r].type]) break; | if (i.relative[e[r].type]) break; | ||
- | return ct(a > 1 & | + | return ct(a > 1 && ft(h), a > 1 && e.slice(0, a - 1).join("").replace(j, "$1"), n, a < r && ht(e.slice(a, r)), r < s && ht(e = e.slice(r)), r < s && e.join("")) |
} | } | ||
h.push(n) | h.push(n) | ||
Line 1,862: | Line 1,861: | ||
y = 0, | y = 0, | ||
w = "0", | w = "0", | ||
- | x = u & | + | x = u && [], |
T = h != null, | T = h != null, | ||
N = c, | N = c, | ||
- | C = u || s & | + | C = u || s && i.find.TAG("*", h && a.parentNode || a), |
k = b += N == null ? 1 : Math.E; | k = b += N == null ? 1 : Math.E; | ||
- | T & | + | T && (c = a !== g && a, n = o.el); |
for (; | for (; | ||
(p = C[w]) != null; w++) { | (p = C[w]) != null; w++) { | ||
- | if (s & | + | if (s && p) { |
for (d = 0; v = e[d]; d++) | for (d = 0; v = e[d]; d++) | ||
if (v(p, a, f)) { | if (v(p, a, f)) { | ||
Line 1,876: | Line 1,875: | ||
break | break | ||
} | } | ||
- | T & | + | T && (b = k, n = ++o.el) |
} | } | ||
- | r & | + | r && ((p = !v && p) && y--, u && x.push(p)) |
} | } | ||
y += w; | y += w; | ||
- | if (r & | + | if (r && w !== y) { |
for (d = 0; v = t[d]; d++) v(x, m, a, f); | for (d = 0; v = t[d]; d++) v(x, m, a, f); | ||
if (u) { | if (u) { | ||
if (y > 0) | if (y > 0) | ||
- | while (w--)!x[w] & | + | while (w--)!x[w] && !m[w] && (m[w] = E.call(l)); |
m = lt(m) | m = lt(m) | ||
} | } | ||
- | S.apply(l, m), T & | + | S.apply(l, m), T && !u && m.length > 0 && y + t.length > 1 && nt.uniqueSort(l) |
} | } | ||
- | return T & | + | return T && (b = k, c = N), x |
}; | }; | ||
return o.el = 0, r ? N(o) : o | return o.el = 0, r ? N(o) : o | ||
Line 1,905: | Line 1,904: | ||
var o, u, f, l, c, h = ut(e), | var o, u, f, l, c, h = ut(e), | ||
p = h.length; | p = h.length; | ||
- | if (!r & | + | if (!r && h.length === 1) { |
u = h[0] = h[0].slice(0); | u = h[0] = h[0].slice(0); | ||
- | if (u.length > 2 & | + | if (u.length > 2 && (f = u[0]).type === "ID" && t.nodeType === 9 && !s && i.relative[u[1].type]) { |
t = i.find.ID(f.matches[0].replace($, ""), t, s)[0]; | t = i.find.ID(f.matches[0].replace($, ""), t, s)[0]; | ||
if (!t) return n; | if (!t) return n; | ||
Line 1,916: | Line 1,915: | ||
if (i.relative[l = f.type]) break; | if (i.relative[l = f.type]) break; | ||
if (c = i.find[l]) | if (c = i.find[l]) | ||
- | if (r = c(f.matches[0].replace($, ""), z.test(u[0].type) & | + | if (r = c(f.matches[0].replace($, ""), z.test(u[0].type) && t.parentNode || t, s)) { |
- | u.splice(o, 1), e = r.length & | + | u.splice(o, 1), e = r.length && u.join(""); |
if (!e) return S.apply(n, x.call(r, 0)), n; | if (!e) return S.apply(n, x.call(r, 0)), n; | ||
break | break | ||
Line 1,949: | Line 1,948: | ||
var e = {}, t = []; | var e = {}, t = []; | ||
return N(function(n, r) { | return N(function(n, r) { | ||
- | return t.push(n) > i.cacheLength & | + | return t.push(n) > i.cacheLength && delete e[t.shift()], e[n + " "] = r |
}, e) | }, e) | ||
}, k = C(), | }, k = C(), | ||
Line 1,995: | Line 1,994: | ||
}), | }), | ||
G = K(function(e) { | G = K(function(e) { | ||
- | return e.innerHTML = "<a href='#'></a>", e.firstChild & | + | return e.innerHTML = "<a href='#'></a>", e.firstChild && typeof e.firstChild.getAttribute !== p && e.firstChild.getAttribute("href") === "#" |
}), | }), | ||
Y = K(function(e) { | Y = K(function(e) { | ||
e.innerHTML = "<select></select>"; | e.innerHTML = "<select></select>"; | ||
var t = typeof e.lastChild.getAttribute("multiple"); | var t = typeof e.lastChild.getAttribute("multiple"); | ||
- | return t !== "boolean" & | + | return t !== "boolean" && t !== "string" |
}), | }), | ||
Z = K(function(e) { | Z = K(function(e) { | ||
Line 2,007: | Line 2,006: | ||
et = K(function(e) { | et = K(function(e) { | ||
e.id = d + 0, e.innerHTML = "<a name='" + d + "'></a><div name='" + d + "'></div>", y.insertBefore(e, y.firstChild); | e.id = d + 0, e.innerHTML = "<a name='" + d + "'></a><div name='" + d + "'></div>", y.insertBefore(e, y.firstChild); | ||
- | var t = g.getElementsByName & | + | var t = g.getElementsByName && g.getElementsByName(d).length === 2 + g.getElementsByName(d + 0).length; |
return r = !g.getElementById(d), y.removeChild(e), t | return r = !g.getElementById(d), y.removeChild(e), t | ||
}); | }); | ||
Line 2,036: | Line 2,035: | ||
return n | return n | ||
}, o = nt.isXML = function(e) { | }, o = nt.isXML = function(e) { | ||
- | var t = e & | + | var t = e && (e.ownerDocument || e).documentElement; |
return t ? t.nodeName !== "HTML" : !1 | return t ? t.nodeName !== "HTML" : !1 | ||
}, u = nt.contains = y.contains ? function(e, t) { | }, u = nt.contains = y.contains ? function(e, t) { | ||
var n = e.nodeType === 9 ? e.documentElement : e, | var n = e.nodeType === 9 ? e.documentElement : e, | ||
- | r = t & | + | r = t && t.parentNode; |
- | return e === r || !! (r & | + | return e === r || !! (r && r.nodeType === 1 && n.contains && n.contains(r)) |
} : y.compareDocumentPosition ? function(e, t) { | } : y.compareDocumentPosition ? function(e, t) { | ||
- | return t & | + | return t && !! (e.compareDocumentPosition(t) & 16) |
} : function(e, t) { | } : function(e, t) { | ||
while (t = t.parentNode) | while (t = t.parentNode) | ||
Line 2,065: | Line 2,064: | ||
find: { | find: { | ||
ID: r ? function(e, t, n) { | ID: r ? function(e, t, n) { | ||
- | if (typeof t.getElementById !== p & | + | if (typeof t.getElementById !== p && !n) { |
var r = t.getElementById(e); | var r = t.getElementById(e); | ||
- | return r & | + | return r && r.parentNode ? [r] : [] |
} | } | ||
} : function(e, n, r) { | } : function(e, n, r) { | ||
- | if (typeof n.getElementById !== p & | + | if (typeof n.getElementById !== p && !r) { |
var i = n.getElementById(e); | var i = n.getElementById(e); | ||
- | return i ? i.id === e || typeof i.getAttributeNode !== p & | + | return i ? i.id === e || typeof i.getAttributeNode !== p && i.getAttributeNode("id").value === e ? [i] : t : [] |
} | } | ||
}, | }, | ||
Line 2,082: | Line 2,081: | ||
var r, i = [], | var r, i = [], | ||
s = 0; | s = 0; | ||
- | for (; r = n[s]; s++) r.nodeType === 1 & | + | for (; r = n[s]; s++) r.nodeType === 1 && i.push(r); |
return i | return i | ||
} | } | ||
return n | return n | ||
}, | }, | ||
- | NAME: et & | + | NAME: et && function(e, t) { |
if (typeof t.getElementsByName !== p) return t.getElementsByName(name) | if (typeof t.getElementsByName !== p) return t.getElementsByName(name) | ||
}, | }, | ||
- | CLASS: Z & | + | CLASS: Z && function(e, t, n) { |
- | if (typeof t.getElementsByClassName !== p & | + | if (typeof t.getElementsByClassName !== p && !n) return t.getElementsByClassName(e) |
} | } | ||
}, | }, | ||
Line 2,112: | Line 2,111: | ||
preFilter: { | preFilter: { | ||
ATTR: function(e) { | ATTR: function(e) { | ||
- | return e[1] = e[1].replace($, ""), e[3] = (e[4] || e[5] || "").replace($, ""), e[2] === "~=" & | + | return e[1] = e[1].replace($, ""), e[3] = (e[4] || e[5] || "").replace($, ""), e[2] === "~=" && (e[3] = " " + e[3] + " "), e.slice(0, 4) |
}, | }, | ||
CHILD: function(e) { | CHILD: function(e) { | ||
- | return e[1] = e[1].toLowerCase(), e[1] === "nth" ? (e[2] || nt.error(e[0]), e[3] = +(e[3] ? e[4] + (e[5] || 1) : 2 * (e[2] === "even" || e[2] === "odd")), e[4] = +(e[6] + e[7] || e[2] === "odd")) : e[2] & | + | return e[1] = e[1].toLowerCase(), e[1] === "nth" ? (e[2] || nt.error(e[0]), e[3] = +(e[3] ? e[4] + (e[5] || 1) : 2 * (e[2] === "even" || e[2] === "odd")), e[4] = +(e[6] + e[7] || e[2] === "odd")) : e[2] && nt.error(e[0]), e |
}, | }, | ||
PSEUDO: function(e) { | PSEUDO: function(e) { | ||
Line 2,121: | Line 2,120: | ||
if (J.CHILD.test(e[0])) return null; | if (J.CHILD.test(e[0])) return null; | ||
if (e[3]) e[2] = e[3]; | if (e[3]) e[2] = e[3]; | ||
- | else if (t = e[4]) q.test(t) & | + | else if (t = e[4]) q.test(t) && (n = ut(t, !0)) && (n = t.indexOf(")", t.length - n) - t.length) && (t = t.slice(0, n), e[0] = e[0].slice(0, n)), e[2] = t; |
return e.slice(0, 3) | return e.slice(0, 3) | ||
} | } | ||
Line 2,134: | Line 2,133: | ||
return e = e.replace($, ""), | return e = e.replace($, ""), | ||
function(t) { | function(t) { | ||
- | var n = typeof t.getAttributeNode !== p & | + | var n = typeof t.getAttributeNode !== p && t.getAttributeNode("id"); |
- | return n & | + | return n && n.value === e |
} | } | ||
}, | }, | ||
Line 2,142: | Line 2,141: | ||
return !0 | return !0 | ||
} : (e = e.replace($, "").toLowerCase(), function(t) { | } : (e = e.replace($, "").toLowerCase(), function(t) { | ||
- | return t.nodeName & | + | return t.nodeName && t.nodeName.toLowerCase() === e |
}) | }) | ||
}, | }, | ||
CLASS: function(e) { | CLASS: function(e) { | ||
var t = k[d][e + " "]; | var t = k[d][e + " "]; | ||
- | return t || (t = new RegExp("(^|" + O + ")" + e + "(" + O + "|$)")) & | + | return t || (t = new RegExp("(^|" + O + ")" + e + "(" + O + "|$)")) && k(e, function(e) { |
- | return t.test(e.className || typeof e.getAttribute !== p & | + | return t.test(e.className || typeof e.getAttribute !== p && e.getAttribute("class") || "") |
}) | }) | ||
}, | }, | ||
Line 2,154: | Line 2,153: | ||
return function(r, i) { | return function(r, i) { | ||
var s = nt.attr(r, e); | var s = nt.attr(r, e); | ||
- | return s == null ? t === "!=" : t ? (s += "", t === "=" ? s === n : t === "!=" ? s !== n : t === "^=" ? n & | + | return s == null ? t === "!=" : t ? (s += "", t === "=" ? s === n : t === "!=" ? s !== n : t === "^=" ? n && s.indexOf(n) === 0 : t === "*=" ? n && s.indexOf(n) > -1 : t === "$=" ? n && s.substr(s.length - n.length) === n : t === "~=" ? (" " + s + " ").indexOf(n) > -1 : t === "|=" ? s === n || s.substr(0, n.length + 1) === n + "-" : !1) : !0 |
} | } | ||
}, | }, | ||
Line 2,160: | Line 2,159: | ||
return e === "nth" ? function(e) { | return e === "nth" ? function(e) { | ||
var t, i, s = e.parentNode; | var t, i, s = e.parentNode; | ||
- | if (n === 1 & | + | if (n === 1 && r === 0) return !0; |
if (s) { | if (s) { | ||
i = 0; | i = 0; | ||
Line 2,169: | Line 2,168: | ||
} | } | ||
} | } | ||
- | return i -= r, i === n || i % n === 0 & | + | return i -= r, i === n || i % n === 0 && i / n >= 0 |
} : function(t) { | } : function(t) { | ||
var n = t; | var n = t; | ||
Line 2,229: | Line 2,228: | ||
checked: function(e) { | checked: function(e) { | ||
var t = e.nodeName.toLowerCase(); | var t = e.nodeName.toLowerCase(); | ||
- | return t === "input" & | + | return t === "input" && !! e.checked || t === "option" && !! e.selected |
}, | }, | ||
selected: function(e) { | selected: function(e) { | ||
- | return e.parentNode & | + | return e.parentNode && e.parentNode.selectedIndex, e.selected === !0 |
}, | }, | ||
parent: function(e) { | parent: function(e) { | ||
Line 2,251: | Line 2,250: | ||
text: function(e) { | text: function(e) { | ||
var t, n; | var t, n; | ||
- | return e.nodeName.toLowerCase() === "input" & | + | return e.nodeName.toLowerCase() === "input" && (t = e.type) === "text" && ((n = e.getAttribute("type")) == null || n.toLowerCase() === t) |
}, | }, | ||
radio: rt("radio"), | radio: rt("radio"), | ||
Line 2,262: | Line 2,261: | ||
button: function(e) { | button: function(e) { | ||
var t = e.nodeName.toLowerCase(); | var t = e.nodeName.toLowerCase(); | ||
- | return t === "input" & | + | return t === "input" && e.type === "button" || t === "button" |
}, | }, | ||
input: function(e) { | input: function(e) { | ||
Line 2,269: | Line 2,268: | ||
focus: function(e) { | focus: function(e) { | ||
var t = e.ownerDocument; | var t = e.ownerDocument; | ||
- | return e === t.activeElement & | + | return e === t.activeElement && (!t.hasFocus || t.hasFocus()) && !! (e.type || e.href || ~e.tabIndex) |
}, | }, | ||
active: function(e) { | active: function(e) { | ||
Line 2,301: | Line 2,300: | ||
} | } | ||
}, f = y.compareDocumentPosition ? function(e, t) { | }, f = y.compareDocumentPosition ? function(e, t) { | ||
- | return e === t ? (l = !0, 0) : (!e.compareDocumentPosition || !t.compareDocumentPosition ? e.compareDocumentPosition : e.compareDocumentPosition(t) & | + | return e === t ? (l = !0, 0) : (!e.compareDocumentPosition || !t.compareDocumentPosition ? e.compareDocumentPosition : e.compareDocumentPosition(t) & 4) ? -1 : 1 |
} : function(e, t) { | } : function(e, t) { | ||
if (e === t) return l = !0, 0; | if (e === t) return l = !0, 0; | ||
- | if (e.sourceIndex & | + | if (e.sourceIndex && t.sourceIndex) return e.sourceIndex - t.sourceIndex; |
var n, r, i = [], | var n, r, i = [], | ||
s = [], | s = [], | ||
Line 2,317: | Line 2,316: | ||
while (a) s.unshift(a), a = a.parentNode; | while (a) s.unshift(a), a = a.parentNode; | ||
n = i.length, r = s.length; | n = i.length, r = s.length; | ||
- | for (var f = 0; f < n & | + | for (var f = 0; f < n && f < r; f++) |
if (i[f] !== s[f]) return ot(i[f], s[f]); | if (i[f] !== s[f]) return ot(i[f], s[f]); | ||
return f === n ? ot(e, s[f], -1) : ot(i[f], t, 1) | return f === n ? ot(e, s[f], -1) : ot(i[f], t, 1) | ||
Line 2,326: | Line 2,325: | ||
l = h, e.sort(f); | l = h, e.sort(f); | ||
if (l) { | if (l) { | ||
- | for (; t = e[r]; r++) t === e[r - 1] & | + | for (; t = e[r]; r++) t === e[r - 1] && (i = n.push(r)); |
while (i--) e.splice(n[i], 1) | while (i--) e.splice(n[i], 1) | ||
} | } | ||
Line 2,342: | Line 2,341: | ||
} | } | ||
return s | return s | ||
- | }, g.querySelectorAll & | + | }, g.querySelectorAll && function() { |
var e, t = vt, | var e, t = vt, | ||
n = /'|\\/g, | n = /'|\\/g, | ||
Line 2,352: | Line 2,351: | ||
e.innerHTML = "<select><option selected=''></option></select>", e.querySelectorAll("[selected]").length || i.push("\\[" + O + "*(?:checked|disabled|ismap|multiple|readonly|selected|value)"), e.querySelectorAll(":checked").length || i.push(":checked") | e.innerHTML = "<select><option selected=''></option></select>", e.querySelectorAll("[selected]").length || i.push("\\[" + O + "*(?:checked|disabled|ismap|multiple|readonly|selected|value)"), e.querySelectorAll(":checked").length || i.push(":checked") | ||
}), K(function(e) { | }), K(function(e) { | ||
- | e.innerHTML = "<p test=''></p>", e.querySelectorAll("[test^='']").length & | + | e.innerHTML = "<p test=''></p>", e.querySelectorAll("[test^='']").length && i.push("[*^$]=" + O + "*(?:\"\"|'')"), e.innerHTML = "<input type='hidden'>", e.querySelectorAll(":enabled").length || i.push(":enabled", ":disabled") |
}), i = new RegExp(i.join("|")), vt = function(e, r, s, o, u) { | }), i = new RegExp(i.join("|")), vt = function(e, r, s, o, u) { | ||
- | if (!o & | + | if (!o && !u && !i.test(e)) { |
var a, f, l = !0, | var a, f, l = !0, | ||
c = d, | c = d, | ||
h = r, | h = r, | ||
- | p = r.nodeType === 9 & | + | p = r.nodeType === 9 && e; |
- | if (r.nodeType === 1 & | + | if (r.nodeType === 1 && r.nodeName.toLowerCase() !== "object") { |
- | a = ut(e), (l = r.getAttribute("id")) ? c = l.replace(n, "\\$& | + | a = ut(e), (l = r.getAttribute("id")) ? c = l.replace(n, "\\$&") : r.setAttribute("id", c), c = "[id='" + c + "'] ", f = a.length; |
while (f--) a[f] = c + a[f].join(""); | while (f--) a[f] = c + a[f].join(""); | ||
- | h = z.test(e) & | + | h = z.test(e) && r.parentNode || r, p = a.join(",") |
} | } | ||
if (p) try { | if (p) try { | ||
Line 2,371: | Line 2,370: | ||
} | } | ||
return t(e, r, s, o, u) | return t(e, r, s, o, u) | ||
- | }, u & | + | }, u && (K(function(t) { |
e = u.call(t, "div"); | e = u.call(t, "div"); | ||
try { | try { | ||
Line 2,378: | Line 2,377: | ||
}), s = new RegExp(s.join("|")), nt.matchesSelector = function(t, n) { | }), s = new RegExp(s.join("|")), nt.matchesSelector = function(t, n) { | ||
n = n.replace(r, "='$1']"); | n = n.replace(r, "='$1']"); | ||
- | if (!o(t) & | + | if (!o(t) && !s.test(n) && !i.test(n)) try { |
var a = u.call(t, n); | var a = u.call(t, n); | ||
- | if (a || e || t.document & | + | if (a || e || t.document && t.document.nodeType !== 11) return a |
} catch (f) {} | } catch (f) {} | ||
return nt(n, null, null, [t]).length > 0 | return nt(n, null, null, [t]).length > 0 | ||
Line 2,431: | Line 2,430: | ||
}, | }, | ||
is: function(e) { | is: function(e) { | ||
- | return !!e & | + | return !!e && (typeof e == "string" ? st.test(e) ? v(e, this.context).index(this[0]) >= 0 : v.filter(e, this).length > 0 : this.filter(e).length > 0) |
}, | }, | ||
closest: function(e, t) { | closest: function(e, t) { | ||
Line 2,440: | Line 2,439: | ||
for (; r < i; r++) { | for (; r < i; r++) { | ||
n = this[r]; | n = this[r]; | ||
- | while (n & | + | while (n && n.ownerDocument && n !== t && n.nodeType !== 11) { |
if (o ? o.index(n) > -1 : v.find.matchesSelector(n, e)) { | if (o ? o.index(n) > -1 : v.find.matchesSelector(n, e)) { | ||
s.push(n); | s.push(n); | ||
Line 2,451: | Line 2,450: | ||
}, | }, | ||
index: function(e) { | index: function(e) { | ||
- | return e ? typeof e == "string" ? v.inArray(this[0], v(e)) : v.inArray(e.jquery ? e[0] : e, this) : this[0] & | + | return e ? typeof e == "string" ? v.inArray(this[0], v(e)) : v.inArray(e.jquery ? e[0] : e, this) : this[0] && this[0].parentNode ? this.prevAll().length : -1 |
}, | }, | ||
add: function(e, t) { | add: function(e, t) { | ||
- | var n = typeof e == "string" ? v(e, t) : v.makeArray(e & | + | var n = typeof e == "string" ? v(e, t) : v.makeArray(e && e.nodeType ? [e] : e), |
r = v.merge(this.get(), n); | r = v.merge(this.get(), n); | ||
return this.pushStack(ut(n[0]) || ut(r[0]) ? r : v.unique(r)) | return this.pushStack(ut(n[0]) || ut(r[0]) ? r : v.unique(r)) | ||
Line 2,464: | Line 2,463: | ||
parent: function(e) { | parent: function(e) { | ||
var t = e.parentNode; | var t = e.parentNode; | ||
- | return t & | + | return t && t.nodeType !== 11 ? t : null |
}, | }, | ||
parents: function(e) { | parents: function(e) { | ||
Line 2,502: | Line 2,501: | ||
v.fn[e] = function(n, r) { | v.fn[e] = function(n, r) { | ||
var i = v.map(this, t, n); | var i = v.map(this, t, n); | ||
- | return nt.test(e) || (r = n), r & | + | return nt.test(e) || (r = n), r && typeof r == "string" && (i = v.filter(r, i)), i = this.length > 1 && !ot[e] ? v.unique(i) : i, this.length > 1 && rt.test(e) && (i = i.reverse()), this.pushStack(i, e, l.call(arguments).join(",")) |
} | } | ||
}), v.extend({ | }), v.extend({ | ||
filter: function(e, t, n) { | filter: function(e, t, n) { | ||
- | return n & | + | return n && (e = ":not(" + e + ")"), t.length === 1 ? v.find.matchesSelector(t[0], e) ? [t[0]] : [] : v.find.matches(e, t) |
}, | }, | ||
dir: function(e, n, r) { | dir: function(e, n, r) { | ||
var i = [], | var i = [], | ||
s = e[n]; | s = e[n]; | ||
- | while (s & | + | while (s && s.nodeType !== 9 && (r === t || s.nodeType !== 1 || !v(s).is(r))) s.nodeType === 1 && i.push(s), s = s[n]; |
return i | return i | ||
}, | }, | ||
sibling: function(e, t) { | sibling: function(e, t) { | ||
var n = []; | var n = []; | ||
- | for (; e; e = e.nextSibling) e.nodeType === 1 & | + | for (; e; e = e.nextSibling) e.nodeType === 1 && e !== t && n.push(e); |
return n | return n | ||
} | } | ||
Line 2,526: | Line 2,525: | ||
vt = /<([\w:]+)/, | vt = /<([\w:]+)/, | ||
mt = /<tbody/i, | mt = /<tbody/i, | ||
- | gt = /<|& | + | gt = /<|&#?\w+;/, |
yt = /<(?:script|style|link)/i, | yt = /<(?:script|style|link)/i, | ||
bt = /<(?:script|object|embed|option|style)/i, | bt = /<(?:script|object|embed|option|style)/i, | ||
Line 2,548: | Line 2,547: | ||
text: function(e) { | text: function(e) { | ||
return v.access(this, function(e) { | return v.access(this, function(e) { | ||
- | return e === t ? v.text(this) : this.empty().append((this[0] & | + | return e === t ? v.text(this) : this.empty().append((this[0] && this[0].ownerDocument || i).createTextNode(e)) |
}, null, e, arguments.length) | }, null, e, arguments.length) | ||
}, | }, | ||
Line 2,557: | Line 2,556: | ||
if (this[0]) { | if (this[0]) { | ||
var t = v(e, this[0].ownerDocument).eq(0).clone(!0); | var t = v(e, this[0].ownerDocument).eq(0).clone(!0); | ||
- | this[0].parentNode & | + | this[0].parentNode && t.insertBefore(this[0]), t.map(function() { |
var e = this; | var e = this; | ||
- | while (e.firstChild & | + | while (e.firstChild && e.firstChild.nodeType === 1) e = e.firstChild; |
return e | return e | ||
}).append(this) | }).append(this) | ||
Line 2,587: | Line 2,586: | ||
append: function() { | append: function() { | ||
return this.domManip(arguments, !0, function(e) { | return this.domManip(arguments, !0, function(e) { | ||
- | (this.nodeType === 1 || this.nodeType === 11) & | + | (this.nodeType === 1 || this.nodeType === 11) && this.appendChild(e) |
}) | }) | ||
}, | }, | ||
prepend: function() { | prepend: function() { | ||
return this.domManip(arguments, !0, function(e) { | return this.domManip(arguments, !0, function(e) { | ||
- | (this.nodeType === 1 || this.nodeType === 11) & | + | (this.nodeType === 1 || this.nodeType === 11) && this.insertBefore(e, this.firstChild) |
}) | }) | ||
}, | }, | ||
Line 2,617: | Line 2,616: | ||
for (; | for (; | ||
(n = this[r]) != null; r++) | (n = this[r]) != null; r++) | ||
- | if (!e || v.filter(e, [n]).length)!t & | + | if (!e || v.filter(e, [n]).length)!t && n.nodeType === 1 && (v.cleanData(n.getElementsByTagName("*")), v.cleanData([n])), n.parentNode && n.parentNode.removeChild(n); |
return this | return this | ||
}, | }, | ||
Line 2,624: | Line 2,623: | ||
for (; | for (; | ||
(e = this[t]) != null; t++) { | (e = this[t]) != null; t++) { | ||
- | e.nodeType === 1 & | + | e.nodeType === 1 && v.cleanData(e.getElementsByTagName("*")); |
while (e.firstChild) e.removeChild(e.firstChild) | while (e.firstChild) e.removeChild(e.firstChild) | ||
} | } | ||
Line 2,639: | Line 2,638: | ||
i = this.length; | i = this.length; | ||
if (e === t) return n.nodeType === 1 ? n.innerHTML.replace(ht, "") : t; | if (e === t) return n.nodeType === 1 ? n.innerHTML.replace(ht, "") : t; | ||
- | if (typeof e == "string" & | + | if (typeof e == "string" && !yt.test(e) && (v.support.htmlSerialize || !wt.test(e)) && (v.support.leadingWhitespace || !pt.test(e)) && !Nt[(vt.exec(e) || ["", ""])[1].toLowerCase()]) { |
e = e.replace(dt, "<$1></$2>"); | e = e.replace(dt, "<$1></$2>"); | ||
try { | try { | ||
- | for (; r < i; r++) n = this[r] || {}, n.nodeType === 1 & | + | for (; r < i; r++) n = this[r] || {}, n.nodeType === 1 && (v.cleanData(n.getElementsByTagName("*")), n.innerHTML = e); |
n = 0 | n = 0 | ||
} catch (s) {} | } catch (s) {} | ||
} | } | ||
- | n & | + | n && this.empty().append(e) |
}, null, e, arguments.length) | }, null, e, arguments.length) | ||
}, | }, | ||
Line 2,654: | Line 2,653: | ||
r = n.html(); | r = n.html(); | ||
n.replaceWith(e.call(this, t, r)) | n.replaceWith(e.call(this, t, r)) | ||
- | }) : (typeof e != "string" & | + | }) : (typeof e != "string" && (e = v(e).detach()), this.each(function() { |
var t = this.nextSibling, | var t = this.nextSibling, | ||
n = this.parentNode; | n = this.parentNode; | ||
Line 2,669: | Line 2,668: | ||
l = [], | l = [], | ||
c = this.length; | c = this.length; | ||
- | if (!v.support.checkClone & | + | if (!v.support.checkClone && c > 1 && typeof f == "string" && St.test(f)) return this.each(function() { |
v(this).domManip(e, n, r) | v(this).domManip(e, n, r) | ||
}); | }); | ||
Line 2,677: | Line 2,676: | ||
}); | }); | ||
if (this[0]) { | if (this[0]) { | ||
- | i = v.buildFragment(e, this, l), o = i.fragment, s = o.firstChild, o.childNodes.length === 1 & | + | i = v.buildFragment(e, this, l), o = i.fragment, s = o.firstChild, o.childNodes.length === 1 && (o = s); |
if (s) { | if (s) { | ||
- | n = n & | + | n = n && v.nodeName(s, "tr"); |
- | for (u = i.cacheable || c - 1; a < c; a++) r.call(n & | + | for (u = i.cacheable || c - 1; a < c; a++) r.call(n && v.nodeName(this[a], "table") ? Lt(this[a], "tbody") : this[a], a === u ? o : v.clone(o, !0, !0)) |
} | } | ||
- | o = s = null, l.length & | + | o = s = null, l.length && v.each(l, function(e, t) { |
t.src ? v.ajax ? v.ajax({ | t.src ? v.ajax ? v.ajax({ | ||
url: t.src, | url: t.src, | ||
Line 2,690: | Line 2,689: | ||
global: !1, | global: !1, | ||
"throws": !0 | "throws": !0 | ||
- | }) : v.error("no ajax") : v.globalEval((t.text || t.textContent || t.innerHTML || "").replace(Tt, "")), t.parentNode & | + | }) : v.error("no ajax") : v.globalEval((t.text || t.textContent || t.innerHTML || "").replace(Tt, "")), t.parentNode && t.parentNode.removeChild(t) |
}) | }) | ||
} | } | ||
Line 2,697: | Line 2,696: | ||
}), v.buildFragment = function(e, n, r) { | }), v.buildFragment = function(e, n, r) { | ||
var s, o, u, a = e[0]; | var s, o, u, a = e[0]; | ||
- | return n = n || i, n = !n.nodeType & | + | return n = n || i, n = !n.nodeType && n[0] || n, n = n.ownerDocument || n, e.length === 1 && typeof a == "string" && a.length < 512 && n === i && a.charAt(0) === "<" && !bt.test(a) && (v.support.checkClone || !St.test(a)) && (v.support.html5Clone || !wt.test(a)) && (o = !0, s = v.fragments[a], u = s !== t), s || (s = n.createDocumentFragment(), v.clean(e, n, s, r), o && (v.fragments[a] = u && s)), { |
fragment: s, | fragment: s, | ||
cacheable: o | cacheable: o | ||
Line 2,713: | Line 2,712: | ||
o = v(n), | o = v(n), | ||
u = o.length, | u = o.length, | ||
- | a = this.length === 1 & | + | a = this.length === 1 && this[0].parentNode; |
- | if ((a == null || a & | + | if ((a == null || a && a.nodeType === 11 && a.childNodes.length === 1) && u === 1) return o[t](this[0]), this; |
for (; i < u; i++) r = (i > 0 ? this.clone(!0) : this).get(), v(o[i])[t](r), s = s.concat(r); | for (; i < u; i++) r = (i > 0 ? this.clone(!0) : this).get(), v(o[i])[t](r), s = s.concat(r); | ||
return this.pushStack(s, e, o.selector) | return this.pushStack(s, e, o.selector) | ||
Line 2,722: | Line 2,721: | ||
var r, i, s, o; | var r, i, s, o; | ||
v.support.html5Clone || v.isXMLDoc(e) || !wt.test("<" + e.nodeName + ">") ? o = e.cloneNode(!0) : (kt.innerHTML = e.outerHTML, kt.removeChild(o = kt.firstChild)); | v.support.html5Clone || v.isXMLDoc(e) || !wt.test("<" + e.nodeName + ">") ? o = e.cloneNode(!0) : (kt.innerHTML = e.outerHTML, kt.removeChild(o = kt.firstChild)); | ||
- | if ((!v.support.noCloneEvent || !v.support.noCloneChecked) & | + | if ((!v.support.noCloneEvent || !v.support.noCloneChecked) && (e.nodeType === 1 || e.nodeType === 11) && !v.isXMLDoc(e)) { |
Ot(e, o), r = Mt(e), i = Mt(o); | Ot(e, o), r = Mt(e), i = Mt(o); | ||
- | for (s = 0; r[s]; ++s) i[s] & | + | for (s = 0; r[s]; ++s) i[s] && Ot(r[s], i[s]) |
} | } | ||
if (t) { | if (t) { | ||
Line 2,736: | Line 2,735: | ||
}, | }, | ||
clean: function(e, t, n, r) { | clean: function(e, t, n, r) { | ||
- | var s, o, u, a, f, l, c, h, p, d, m, g, y = t === i & | + | var s, o, u, a, f, l, c, h, p, d, m, g, y = t === i && Ct, |
b = []; | b = []; | ||
if (!t || typeof t.createDocumentFragment == "undefined") t = i; | if (!t || typeof t.createDocumentFragment == "undefined") t = i; | ||
for (s = 0; | for (s = 0; | ||
(u = e[s]) != null; s++) { | (u = e[s]) != null; s++) { | ||
- | typeof u == "number" & | + | typeof u == "number" && (u += ""); |
if (!u) continue; | if (!u) continue; | ||
if (typeof u == "string") | if (typeof u == "string") | ||
Line 2,749: | Line 2,748: | ||
while (l--) c = c.lastChild; | while (l--) c = c.lastChild; | ||
if (!v.support.tbody) { | if (!v.support.tbody) { | ||
- | h = mt.test(u), p = a === "table" & | + | h = mt.test(u), p = a === "table" && !h ? c.firstChild && c.firstChild.childNodes : f[1] === "<table>" && !h ? c.childNodes : []; |
- | for (o = p.length - 1; o >= 0; --o) v.nodeName(p[o], "tbody") & | + | for (o = p.length - 1; o >= 0; --o) v.nodeName(p[o], "tbody") && !p[o].childNodes.length && p[o].parentNode.removeChild(p[o]) |
- | }!v.support.leadingWhitespace & | + | }!v.support.leadingWhitespace && pt.test(u) && c.insertBefore(t.createTextNode(pt.exec(u)[0]), c.firstChild), u = c.childNodes, c.parentNode.removeChild(c) |
} | } | ||
u.nodeType ? b.push(u) : v.merge(b, u) | u.nodeType ? b.push(u) : v.merge(b, u) | ||
} | } | ||
- | c & | + | c && (u = c = y = null); |
if (!v.support.appendChecked) | if (!v.support.appendChecked) | ||
for (s = 0; | for (s = 0; | ||
- | (u = b[s]) != null; s++) v.nodeName(u, "input") ? _t(u) : typeof u.getElementsByTagName != "undefined" & | + | (u = b[s]) != null; s++) v.nodeName(u, "input") ? _t(u) : typeof u.getElementsByTagName != "undefined" && v.grep(u.getElementsByTagName("input"), _t); |
if (n) { | if (n) { | ||
m = function(e) { | m = function(e) { | ||
Line 2,765: | Line 2,764: | ||
for (s = 0; | for (s = 0; | ||
(u = b[s]) != null; s++) | (u = b[s]) != null; s++) | ||
- | if (!v.nodeName(u, "script") || !m(u)) n.appendChild(u), typeof u.getElementsByTagName != "undefined" & | + | if (!v.nodeName(u, "script") || !m(u)) n.appendChild(u), typeof u.getElementsByTagName != "undefined" && (g = v.grep(v.merge([], u.getElementsByTagName("script")), m), b.splice.apply(b, [s + 1, 0].concat(g)), s += g.length) |
} | } | ||
return b | return b | ||
Line 2,778: | Line 2,777: | ||
(i = e[o]) != null; o++) | (i = e[o]) != null; o++) | ||
if (t || v.acceptData(i)) { | if (t || v.acceptData(i)) { | ||
- | r = i[u], n = r & | + | r = i[u], n = r && a[r]; |
if (n) { | if (n) { | ||
if (n.events) | if (n.events) | ||
for (s in n.events) l[s] ? v.event.remove(i, s) : v.removeEvent(i, s, n.handle); | for (s in n.events) l[s] ? v.event.remove(i, s) : v.removeEvent(i, s, n.handle); | ||
- | a[r] & | + | a[r] && (delete a[r], f ? delete i[u] : i.removeAttribute ? i.removeAttribute(u) : i[u] = null, v.deletedIds.push(r)) |
} | } | ||
} | } | ||
Line 2,791: | Line 2,790: | ||
v.uaMatch = function(e) { | v.uaMatch = function(e) { | ||
e = e.toLowerCase(); | e = e.toLowerCase(); | ||
- | var t = /(chrome)[ \/]([\w.]+)/.exec(e) || /(webkit)[ \/]([\w.]+)/.exec(e) || /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e) || /(msie) ([\w.]+)/.exec(e) || e.indexOf("compatible") < 0 & | + | var t = /(chrome)[ \/]([\w.]+)/.exec(e) || /(webkit)[ \/]([\w.]+)/.exec(e) || /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e) || /(msie) ([\w.]+)/.exec(e) || e.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e) || []; |
return { | return { | ||
browser: t[1] || "", | browser: t[1] || "", | ||
version: t[2] || "0" | version: t[2] || "0" | ||
} | } | ||
- | }, e = v.uaMatch(o.userAgent), t = {}, e.browser & | + | }, e = v.uaMatch(o.userAgent), t = {}, e.browser && (t[e.browser] = !0, t.version = e.version), t.chrome ? t.webkit = !0 : t.webkit && (t.safari = !0), v.browser = t, v.sub = function() { |
function e(t, n) { | function e(t, n) { | ||
return new e.fn.init(t, n) | return new e.fn.init(t, n) | ||
} | } | ||
v.extend(!0, e, this), e.superclass = this, e.fn = e.prototype = this(), e.fn.constructor = e, e.sub = this.sub, e.fn.init = function(r, i) { | v.extend(!0, e, this), e.superclass = this, e.fn = e.prototype = this(), e.fn.constructor = e, e.sub = this.sub, e.fn.init = function(r, i) { | ||
- | return i & | + | return i && i instanceof v && !(i instanceof e) && (i = e(i)), v.fn.init.call(this, r, i, t) |
}, e.fn.init.prototype = e.fn; | }, e.fn.init.prototype = e.fn; | ||
var t = e(i); | var t = e(i); | ||
Line 2,841: | Line 2,840: | ||
toggle: function(e, t) { | toggle: function(e, t) { | ||
var n = typeof e == "boolean"; | var n = typeof e == "boolean"; | ||
- | return v.isFunction(e) & | + | return v.isFunction(e) && v.isFunction(t) ? Kt.apply(this, arguments) : this.each(function() { |
(n ? e : Gt(this)) ? v(this).show() : v(this).hide() | (n ? e : Gt(this)) ? v(this).show() : v(this).hide() | ||
}) | }) | ||
Line 2,874: | Line 2,873: | ||
f = e.style; | f = e.style; | ||
n = v.cssProps[a] || (v.cssProps[a] = Qt(f, a)), u = v.cssHooks[n] || v.cssHooks[a]; | n = v.cssProps[a] || (v.cssProps[a] = Qt(f, a)), u = v.cssHooks[n] || v.cssHooks[a]; | ||
- | if (r === t) return u & | + | if (r === t) return u && "get" in u && (s = u.get(e, !1, i)) !== t ? s : f[n]; |
- | o = typeof r, o === "string" & | + | o = typeof r, o === "string" && (s = zt.exec(r)) && (r = (s[1] + 1) * s[2] + parseFloat(v.css(e, n)), o = "number"); |
- | if (r == null || o === "number" & | + | if (r == null || o === "number" && isNaN(r)) return; |
- | o === "number" & | + | o === "number" && !v.cssNumber[a] && (r += "px"); |
if (!u || !("set" in u) || (r = u.set(e, r, i)) !== t) try { | if (!u || !("set" in u) || (r = u.set(e, r, i)) !== t) try { | ||
f[n] = r | f[n] = r | ||
Line 2,884: | Line 2,883: | ||
css: function(e, n, r, i) { | css: function(e, n, r, i) { | ||
var s, o, u, a = v.camelCase(n); | var s, o, u, a = v.camelCase(n); | ||
- | return n = v.cssProps[a] || (v.cssProps[a] = Qt(e.style, a)), u = v.cssHooks[n] || v.cssHooks[a], u & | + | return n = v.cssProps[a] || (v.cssProps[a] = Qt(e.style, a)), u = v.cssHooks[n] || v.cssHooks[a], u && "get" in u && (s = u.get(e, !0, i)), s === t && (s = Dt(e, n)), s === "normal" && n in Vt && (s = Vt[n]), r || i !== t ? (o = parseFloat(s), r || v.isNumeric(o) ? o || 0 : s) : s |
}, | }, | ||
swap: function(e, t, n) { | swap: function(e, t, n) { | ||
Line 2,896: | Line 2,895: | ||
var r, i, s, o, u = e.getComputedStyle(t, null), | var r, i, s, o, u = e.getComputedStyle(t, null), | ||
a = t.style; | a = t.style; | ||
- | return u & | + | return u && (r = u.getPropertyValue(n) || u[n], r === "" && !v.contains(t.ownerDocument, t) && (r = v.style(t, n)), Ut.test(r) && qt.test(n) && (i = a.width, s = a.minWidth, o = a.maxWidth, a.minWidth = a.maxWidth = a.width = r, r = u.width, a.width = i, a.minWidth = s, a.maxWidth = o)), r |
- | } : i.documentElement.currentStyle & | + | } : i.documentElement.currentStyle && (Dt = function(e, t) { |
- | var n, r, i = e.currentStyle & | + | var n, r, i = e.currentStyle && e.currentStyle[t], |
s = e.style; | s = e.style; | ||
- | return i == null & | + | return i == null && s && s[t] && (i = s[t]), Ut.test(i) && !Ft.test(t) && (n = s.left, r = e.runtimeStyle && e.runtimeStyle.left, r && (e.runtimeStyle.left = e.currentStyle.left), s.left = t === "fontSize" ? "1em" : i, i = s.pixelLeft + "px", s.left = n, r && (e.runtimeStyle.left = r)), i === "" ? "auto" : i |
}), v.each(["height", "width"], function(e, t) { | }), v.each(["height", "width"], function(e, t) { | ||
v.cssHooks[t] = { | v.cssHooks[t] = { | ||
get: function(e, n, r) { | get: function(e, n, r) { | ||
- | if (n) return e.offsetWidth === 0 & | + | if (n) return e.offsetWidth === 0 && It.test(Dt(e, "display")) ? v.swap(e, Xt, function() { |
return tn(e, t, r) | return tn(e, t, r) | ||
}) : tn(e, t, r) | }) : tn(e, t, r) | ||
}, | }, | ||
set: function(e, n, r) { | set: function(e, n, r) { | ||
- | return Zt(e, n, r ? en(e, t, r, v.support.boxSizing & | + | return Zt(e, n, r ? en(e, t, r, v.support.boxSizing && v.css(e, "boxSizing") === "border-box") : 0) |
} | } | ||
} | } | ||
}), v.support.opacity || (v.cssHooks.opacity = { | }), v.support.opacity || (v.cssHooks.opacity = { | ||
get: function(e, t) { | get: function(e, t) { | ||
- | return jt.test((t & | + | return jt.test((t && e.currentStyle ? e.currentStyle.filter : e.style.filter) || "") ? .01 * parseFloat(RegExp.$1) + "" : t ? "1" : "" |
}, | }, | ||
set: function(e, t) { | set: function(e, t) { | ||
Line 2,920: | Line 2,919: | ||
r = e.currentStyle, | r = e.currentStyle, | ||
i = v.isNumeric(t) ? "alpha(opacity=" + t * 100 + ")" : "", | i = v.isNumeric(t) ? "alpha(opacity=" + t * 100 + ")" : "", | ||
- | s = r & | + | s = r && r.filter || n.filter || ""; |
n.zoom = 1; | n.zoom = 1; | ||
- | if (t >= 1 & | + | if (t >= 1 && v.trim(s.replace(Bt, "")) === "" && n.removeAttribute) { |
n.removeAttribute("filter"); | n.removeAttribute("filter"); | ||
- | if (r & | + | if (r && !r.filter) return |
} | } | ||
n.filter = Bt.test(s) ? s.replace(Bt, i) : s + " " + i | n.filter = Bt.test(s) ? s.replace(Bt, i) : s + " " + i | ||
Line 2,937: | Line 2,936: | ||
}) | }) | ||
} | } | ||
- | }), !v.support.pixelPosition & | + | }), !v.support.pixelPosition && v.fn.position && v.each(["top", "left"], function(e, t) { |
v.cssHooks[t] = { | v.cssHooks[t] = { | ||
get: function(e, n) { | get: function(e, n) { | ||
Line 2,947: | Line 2,946: | ||
} | } | ||
}) | }) | ||
- | }), v.expr & | + | }), v.expr && v.expr.filters && (v.expr.filters.hidden = function(e) { |
- | return e.offsetWidth === 0 & | + | return e.offsetWidth === 0 && e.offsetHeight === 0 || !v.support.reliableHiddenOffsets && (e.style && e.style.display || Dt(e, "display")) === "none" |
}, v.expr.filters.visible = function(e) { | }, v.expr.filters.visible = function(e) { | ||
return !v.expr.filters.hidden(e) | return !v.expr.filters.hidden(e) | ||
Line 2,978: | Line 2,977: | ||
return this.elements ? v.makeArray(this.elements) : this | return this.elements ? v.makeArray(this.elements) : this | ||
}).filter(function() { | }).filter(function() { | ||
- | return this.name & | + | return this.name && !this.disabled && (this.checked || an.test(this.nodeName) || un.test(this.type)) |
}).map(function(e, t) { | }).map(function(e, t) { | ||
var n = v(this).val(); | var n = v(this).val(); | ||
Line 2,997: | Line 2,996: | ||
t = v.isFunction(t) ? t() : t == null ? "" : t, i[i.length] = encodeURIComponent(e) + "=" + encodeURIComponent(t) | t = v.isFunction(t) ? t() : t == null ? "" : t, i[i.length] = encodeURIComponent(e) + "=" + encodeURIComponent(t) | ||
}; | }; | ||
- | n === t & | + | n === t && (n = v.ajaxSettings && v.ajaxSettings.traditional); |
- | if (v.isArray(e) || e.jquery & | + | if (v.isArray(e) || e.jquery && !v.isPlainObject(e)) v.each(e, function() { |
s(this.name, this.value) | s(this.name, this.value) | ||
}); | }); | ||
else | else | ||
for (r in e) fn(r, e[r], n, s); | for (r in e) fn(r, e[r], n, s); | ||
- | return i.join("& | + | return i.join("&").replace(rn, "+") |
}; | }; | ||
var ln, cn, hn = /#.*$/, | var ln, cn, hn = /#.*$/, | ||
Line 3,012: | Line 3,011: | ||
gn = /\?/, | gn = /\?/, | ||
yn = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi, | yn = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi, | ||
- | bn = /([?& | + | bn = /([?&])_=[^&]*/, |
wn = /^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/, | wn = /^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/, | ||
En = v.fn.load, | En = v.fn.load, | ||
Line 3,022: | Line 3,021: | ||
} | } | ||
ln = wn.exec(cn.toLowerCase()) || [], v.fn.load = function(e, n, r) { | ln = wn.exec(cn.toLowerCase()) || [], v.fn.load = function(e, n, r) { | ||
- | if (typeof e != "string" & | + | if (typeof e != "string" && En) return En.apply(this, arguments); |
if (!this.length) return this; | if (!this.length) return this; | ||
var i, s, o, u = this, | var i, s, o, u = this, | ||
a = e.indexOf(" "); | a = e.indexOf(" "); | ||
- | return a >= 0 & | + | return a >= 0 && (i = e.slice(a, e.length), e = e.slice(0, a)), v.isFunction(n) ? (r = n, n = t) : n && typeof n == "object" && (s = "POST"), v.ajax({ |
url: e, | url: e, | ||
type: s, | type: s, | ||
Line 3,032: | Line 3,031: | ||
data: n, | data: n, | ||
complete: function(e, t) { | complete: function(e, t) { | ||
- | r & | + | r && u.each(r, o || [e.responseText, t, e]) |
} | } | ||
}).done(function(e) { | }).done(function(e) { | ||
Line 3,043: | Line 3,042: | ||
}), v.each(["get", "post"], function(e, n) { | }), v.each(["get", "post"], function(e, n) { | ||
v[n] = function(e, r, i, s) { | v[n] = function(e, r, i, s) { | ||
- | return v.isFunction(r) & | + | return v.isFunction(r) && (s = s || i, i = r, r = t), v.ajax({ |
type: n, | type: n, | ||
url: e, | url: e, | ||
Line 3,102: | Line 3,101: | ||
var l, y, b, w, S, T = n; | var l, y, b, w, S, T = n; | ||
if (E === 2) return; | if (E === 2) return; | ||
- | E = 2, u & | + | E = 2, u && clearTimeout(u), o = t, i = a || "", x.readyState = e > 0 ? 4 : 0, s && (w = An(c, x, s)); |
- | if (e >= 200 & | + | if (e >= 200 && e < 300 || e === 304) c.ifModified && (S = x.getResponseHeader("Last-Modified"), S && (v.lastModified[r] = S), S = x.getResponseHeader("Etag"), S && (v.etag[r] = S)), e === 304 ? (T = "notmodified", l = !0) : (l = On(c, w), T = l.state, y = l.data, b = l.error, l = !b); |
else { | else { | ||
b = T; | b = T; | ||
- | if (!T || e) T = "error", e < 0 & | + | if (!T || e) T = "error", e < 0 && (e = 0) |
} | } | ||
- | x.status = e, x.statusText = (n || T) + "", l ? d.resolveWith(h, [y, T, x]) : d.rejectWith(h, [x, T, b]), x.statusCode(g), g = t, f & | + | x.status = e, x.statusText = (n || T) + "", l ? d.resolveWith(h, [y, T, x]) : d.rejectWith(h, [x, T, b]), x.statusCode(g), g = t, f && p.trigger("ajax" + (l ? "Success" : "Error"), [x, c, l ? y : b]), m.fireWith(h, [x, T]), f && (p.trigger("ajaxComplete", [x, c]), --v.active || v.event.trigger("ajaxStop")) |
} | } | ||
- | typeof e == "object" & | + | typeof e == "object" && (n = e, e = t), n = n || {}; |
var r, i, s, o, u, a, f, l, c = v.ajaxSetup({}, n), | var r, i, s, o, u, a, f, l, c = v.ajaxSetup({}, n), | ||
h = c.context || c, | h = c.context || c, | ||
- | p = h !== c & | + | p = h !== c && (h.nodeType || h instanceof v) ? v(h) : v.event, |
d = v.Deferred(), | d = v.Deferred(), | ||
m = v.Callbacks("once memory"), | m = v.Callbacks("once memory"), | ||
Line 3,145: | Line 3,144: | ||
}, | }, | ||
abort: function(e) { | abort: function(e) { | ||
- | return e = e || S, o & | + | return e = e || S, o && o.abort(e), T(0, e), this |
} | } | ||
}; | }; | ||
Line 3,156: | Line 3,155: | ||
} | } | ||
return this | return this | ||
- | }, c.url = ((e || c.url) + "").replace(hn, "").replace(mn, ln[1] + "//"), c.dataTypes = v.trim(c.dataType || "*").toLowerCase().split(y), c.crossDomain == null & | + | }, c.url = ((e || c.url) + "").replace(hn, "").replace(mn, ln[1] + "//"), c.dataTypes = v.trim(c.dataType || "*").toLowerCase().split(y), c.crossDomain == null && (a = wn.exec(c.url.toLowerCase()), c.crossDomain = !(!a || a[1] === ln[1] && a[2] === ln[2] && (a[3] || (a[1] === "http:" ? 80 : 443)) == (ln[3] || (ln[1] === "http:" ? 80 : 443)))), c.data && c.processData && typeof c.data != "string" && (c.data = v.param(c.data, c.traditional)), kn(Sn, c, n, x); |
if (E === 2) return x; | if (E === 2) return x; | ||
- | f = c.global, c.type = c.type.toUpperCase(), c.hasContent = !vn.test(c.type), f & | + | f = c.global, c.type = c.type.toUpperCase(), c.hasContent = !vn.test(c.type), f && v.active++ === 0 && v.event.trigger("ajaxStart"); |
if (!c.hasContent) { | if (!c.hasContent) { | ||
- | c.data & | + | c.data && (c.url += (gn.test(c.url) ? "&" : "?") + c.data, delete c.data), r = c.url; |
if (c.cache === !1) { | if (c.cache === !1) { | ||
var N = v.now(), | var N = v.now(), | ||
C = c.url.replace(bn, "$1_=" + N); | C = c.url.replace(bn, "$1_=" + N); | ||
- | c.url = C + (C === c.url ? (gn.test(c.url) ? "& | + | c.url = C + (C === c.url ? (gn.test(c.url) ? "&" : "?") + "_=" + N : "") |
} | } | ||
- | }(c.data & | + | }(c.data && c.hasContent && c.contentType !== !1 || n.contentType) && x.setRequestHeader("Content-Type", c.contentType), c.ifModified && (r = r || c.url, v.lastModified[r] && x.setRequestHeader("If-Modified-Since", v.lastModified[r]), v.etag[r] && x.setRequestHeader("If-None-Match", v.etag[r])), x.setRequestHeader("Accept", c.dataTypes[0] && c.accepts[c.dataTypes[0]] ? c.accepts[c.dataTypes[0]] + (c.dataTypes[0] !== "*" ? ", " + Tn + "; q=0.01" : "") : c.accepts["*"]); |
for (l in c.headers) x.setRequestHeader(l, c.headers[l]); | for (l in c.headers) x.setRequestHeader(l, c.headers[l]); | ||
- | if (!c.beforeSend || c.beforeSend.call(h, x, c) !== !1 & | + | if (!c.beforeSend || c.beforeSend.call(h, x, c) !== !1 && E !== 2) { |
S = "abort"; | S = "abort"; | ||
for (l in { | for (l in { | ||
Line 3,178: | Line 3,177: | ||
if (!o) T(-1, "No Transport"); | if (!o) T(-1, "No Transport"); | ||
else { | else { | ||
- | x.readyState = 1, f & | + | x.readyState = 1, f && p.trigger("ajaxSend", [x, c]), c.async && c.timeout > 0 && (u = setTimeout(function() { |
x.abort("timeout") | x.abort("timeout") | ||
}, c.timeout)); | }, c.timeout)); | ||
Line 3,198: | Line 3,197: | ||
var Mn = [], | var Mn = [], | ||
_n = /\?/, | _n = /\?/, | ||
- | Dn = /(=)\?(?=& | + | Dn = /(=)\?(?=&|$)|\?\?/, |
Pn = v.now(); | Pn = v.now(); | ||
v.ajaxSetup({ | v.ajaxSetup({ | ||
Line 3,210: | Line 3,209: | ||
f = n.url, | f = n.url, | ||
l = n.jsonp !== !1, | l = n.jsonp !== !1, | ||
- | c = l & | + | c = l && Dn.test(f), |
- | h = l & | + | h = l && !c && typeof a == "string" && !(n.contentType || "").indexOf("application/x-www-form-urlencoded") && Dn.test(a); |
- | if (n.dataTypes[0] === "jsonp" || c || h) return s = n.jsonpCallback = v.isFunction(n.jsonpCallback) ? n.jsonpCallback() : n.jsonpCallback, o = e[s], c ? n.url = f.replace(Dn, "$1" + s) : h ? n.data = a.replace(Dn, "$1" + s) : l & | + | if (n.dataTypes[0] === "jsonp" || c || h) return s = n.jsonpCallback = v.isFunction(n.jsonpCallback) ? n.jsonpCallback() : n.jsonpCallback, o = e[s], c ? n.url = f.replace(Dn, "$1" + s) : h ? n.data = a.replace(Dn, "$1" + s) : l && (n.url += (_n.test(f) ? "&" : "?") + n.jsonp + "=" + s), n.converters["script json"] = function() { |
return u || v.error(s + " was not called"), u[0] | return u || v.error(s + " was not called"), u[0] | ||
}, n.dataTypes[0] = "json", e[s] = function() { | }, n.dataTypes[0] = "json", e[s] = function() { | ||
u = arguments | u = arguments | ||
}, i.always(function() { | }, i.always(function() { | ||
- | e[s] = o, n[s] & | + | e[s] = o, n[s] && (n.jsonpCallback = r.jsonpCallback, Mn.push(s)), u && v.isFunction(o) && o(u[0]), u = o = t |
}), "script" | }), "script" | ||
}), v.ajaxSetup({ | }), v.ajaxSetup({ | ||
Line 3,232: | Line 3,231: | ||
} | } | ||
}), v.ajaxPrefilter("script", function(e) { | }), v.ajaxPrefilter("script", function(e) { | ||
- | e.cache === t & | + | e.cache === t && (e.cache = !1), e.crossDomain && (e.type = "GET", e.global = !1) |
}), v.ajaxTransport("script", function(e) { | }), v.ajaxTransport("script", function(e) { | ||
if (e.crossDomain) { | if (e.crossDomain) { | ||
Line 3,238: | Line 3,237: | ||
return { | return { | ||
send: function(s, o) { | send: function(s, o) { | ||
- | n = i.createElement("script"), n.async = "async", e.scriptCharset & | + | n = i.createElement("script"), n.async = "async", e.scriptCharset && (n.charset = e.scriptCharset), n.src = e.url, n.onload = n.onreadystatechange = function(e, i) { |
- | if (i || !n.readyState || /loaded|complete/.test(n.readyState)) n.onload = n.onreadystatechange = null, r & | + | if (i || !n.readyState || /loaded|complete/.test(n.readyState)) n.onload = n.onreadystatechange = null, r && n.parentNode && r.removeChild(n), n = t, i || o(200, "success") |
}, r.insertBefore(n, r.firstChild) | }, r.insertBefore(n, r.firstChild) | ||
}, | }, | ||
abort: function() { | abort: function() { | ||
- | n & | + | n && n.onload(0, 1) |
} | } | ||
} | } | ||
Line 3,253: | Line 3,252: | ||
jn = 0; | jn = 0; | ||
v.ajaxSettings.xhr = e.ActiveXObject ? function() { | v.ajaxSettings.xhr = e.ActiveXObject ? function() { | ||
- | return !this.isLocal & | + | return !this.isLocal && Fn() || In() |
} : Fn, | } : Fn, | ||
function(e) { | function(e) { | ||
v.extend(v.support, { | v.extend(v.support, { | ||
ajax: !! e, | ajax: !! e, | ||
- | cors: !! e & | + | cors: !! e && "withCredentials" in e |
}) | }) | ||
- | }(v.ajaxSettings.xhr()), v.support.ajax & | + | }(v.ajaxSettings.xhr()), v.support.ajax && v.ajaxTransport(function(n) { |
if (!n.crossDomain || v.support.cors) { | if (!n.crossDomain || v.support.cors) { | ||
var r; | var r; | ||
Line 3,269: | Line 3,268: | ||
if (n.xhrFields) | if (n.xhrFields) | ||
for (u in n.xhrFields) a[u] = n.xhrFields[u]; | for (u in n.xhrFields) a[u] = n.xhrFields[u]; | ||
- | n.mimeType & | + | n.mimeType && a.overrideMimeType && a.overrideMimeType(n.mimeType), !n.crossDomain && !i["X-Requested-With"] && (i["X-Requested-With"] = "XMLHttpRequest"); |
try { | try { | ||
for (u in i) a.setRequestHeader(u, i[u]) | for (u in i) a.setRequestHeader(u, i[u]) | ||
} catch (f) {} | } catch (f) {} | ||
- | a.send(n.hasContent & | + | a.send(n.hasContent && n.data || null), r = function(e, i) { |
var u, f, l, c, h; | var u, f, l, c, h; | ||
try { | try { | ||
- | if (r & | + | if (r && (i || a.readyState === 4)) { |
- | r = t, o & | + | r = t, o && (a.onreadystatechange = v.noop, Bn && delete Hn[o]); |
- | if (i) a.readyState !== 4 & | + | if (i) a.readyState !== 4 && a.abort(); |
else { | else { | ||
- | u = a.status, l = a.getAllResponseHeaders(), c = {}, h = a.responseXML, h & | + | u = a.status, l = a.getAllResponseHeaders(), c = {}, h = a.responseXML, h && h.documentElement && (c.xml = h); |
try { | try { | ||
c.text = a.responseText | c.text = a.responseText | ||
Line 3,288: | Line 3,287: | ||
} catch (p) { | } catch (p) { | ||
f = "" | f = "" | ||
- | }!u & | + | }!u && n.isLocal && !n.crossDomain ? u = c.text ? 200 : 404 : u === 1223 && (u = 204) |
} | } | ||
} | } | ||
Line 3,294: | Line 3,293: | ||
i || s(-1, d) | i || s(-1, d) | ||
} | } | ||
- | c & | + | c && s(u, f, c, l) |
- | }, n.async ? a.readyState === 4 ? setTimeout(r, 0) : (o = ++jn, Bn & | + | }, n.async ? a.readyState === 4 ? setTimeout(r, 0) : (o = ++jn, Bn && (Hn || (Hn = {}, v(e).unload(Bn)), Hn[o] = r), a.onreadystatechange = r) : r() |
}, | }, | ||
abort: function() { | abort: function() { | ||
- | r & | + | r && r(0, 1) |
} | } | ||
} | } | ||
Line 3,318: | Line 3,317: | ||
if (s) { | if (s) { | ||
n = +s[2], r = s[3] || (v.cssNumber[e] ? "" : "px"); | n = +s[2], r = s[3] || (v.cssNumber[e] ? "" : "px"); | ||
- | if (r !== "px" & | + | if (r !== "px" && u) { |
u = v.css(i.elem, e, !0) || n || 1; | u = v.css(i.elem, e, !0) || n || 1; | ||
- | do a = a || ".5", u /= a, v.style(i.elem, e, u + r); while (a !== (a = i.cur() / o) & | + | do a = a || ".5", u /= a, v.style(i.elem, e, u + r); while (a !== (a = i.cur() / o) && a !== 1 && --f) |
} | } | ||
i.unit = r, i.start = u, i.end = s[1] ? u + (s[1] + 1) * n : n | i.unit = r, i.start = u, i.end = s[1] ? u + (s[1] + 1) * n : n | ||
Line 3,345: | Line 3,344: | ||
cur: function() { | cur: function() { | ||
var e = Yn.propHooks[this.prop]; | var e = Yn.propHooks[this.prop]; | ||
- | return e & | + | return e && e.get ? e.get(this) : Yn.propHooks._default.get(this) |
}, | }, | ||
run: function(e) { | run: function(e) { | ||
var t, n = Yn.propHooks[this.prop]; | var t, n = Yn.propHooks[this.prop]; | ||
- | return this.options.duration ? this.pos = t = v.easing[this.easing](e, this.options.duration * e, 0, 1, this.options.duration) : this.pos = t = e, this.now = (this.end - this.start) * t + this.start, this.options.step & | + | return this.options.duration ? this.pos = t = v.easing[this.easing](e, this.options.duration * e, 0, 1, this.options.duration) : this.pos = t = e, this.now = (this.end - this.start) * t + this.start, this.options.step && this.options.step.call(this.elem, this.now, this), n && n.set ? n.set(this) : Yn.propHooks._default.set(this), this |
} | } | ||
}, Yn.prototype.init.prototype = Yn.prototype, Yn.propHooks = { | }, Yn.prototype.init.prototype = Yn.prototype, Yn.propHooks = { | ||
Line 3,355: | Line 3,354: | ||
get: function(e) { | get: function(e) { | ||
var t; | var t; | ||
- | return e.elem[e.prop] == null || !! e.elem.style & | + | return e.elem[e.prop] == null || !! e.elem.style && e.elem.style[e.prop] != null ? (t = v.css(e.elem, e.prop, !1, ""), !t || t === "auto" ? 0 : t) : e.elem[e.prop] |
}, | }, | ||
set: function(e) { | set: function(e) { | ||
- | v.fx.step[e.prop] ? v.fx.step[e.prop](e) : e.elem.style & | + | v.fx.step[e.prop] ? v.fx.step[e.prop](e) : e.elem.style && (e.elem.style[v.cssProps[e.prop]] != null || v.cssHooks[e.prop]) ? v.style(e.elem, e.prop, e.now + e.unit) : e.elem[e.prop] = e.now |
} | } | ||
} | } | ||
}, Yn.propHooks.scrollTop = Yn.propHooks.scrollLeft = { | }, Yn.propHooks.scrollTop = Yn.propHooks.scrollLeft = { | ||
set: function(e) { | set: function(e) { | ||
- | e.elem.nodeType & | + | e.elem.nodeType && e.elem.parentNode && (e.elem[e.prop] = e.now) |
} | } | ||
}, v.each(["toggle", "show", "hide"], function(e, t) { | }, v.each(["toggle", "show", "hide"], function(e, t) { | ||
var n = v.fn[t]; | var n = v.fn[t]; | ||
v.fn[t] = function(r, i, s) { | v.fn[t] = function(r, i, s) { | ||
- | return r == null || typeof r == "boolean" || !e & | + | return r == null || typeof r == "boolean" || !e && v.isFunction(r) && v.isFunction(i) ? n.apply(this, arguments) : this.animate(Zn(t, !0), r, i, s) |
} | } | ||
}), v.fn.extend({ | }), v.fn.extend({ | ||
Line 3,381: | Line 3,380: | ||
o = function() { | o = function() { | ||
var t = Kn(this, v.extend({}, e), s); | var t = Kn(this, v.extend({}, e), s); | ||
- | i & | + | i && t.stop(!0) |
}; | }; | ||
return i || s.queue === !1 ? this.each(o) : this.queue(s.queue, o) | return i || s.queue === !1 ? this.each(o) : this.queue(s.queue, o) | ||
Line 3,390: | Line 3,389: | ||
delete e.stop, t(r) | delete e.stop, t(r) | ||
}; | }; | ||
- | return typeof e != "string" & | + | return typeof e != "string" && (r = n, n = e, e = t), n && e !== !1 && this.queue(e || "fx", []), this.each(function() { |
var t = !0, | var t = !0, | ||
- | n = e != null & | + | n = e != null && e + "queueHooks", |
s = v.timers, | s = v.timers, | ||
o = v._data(this); | o = v._data(this); | ||
- | if (n) o[n] & | + | if (n) o[n] && o[n].stop && i(o[n]); |
else | else | ||
- | for (n in o) o[n] & | + | for (n in o) o[n] && o[n].stop && Wn.test(n) && i(o[n]); |
- | for (n = s.length; n--;) s[n].elem === this & | + | for (n = s.length; n--;) s[n].elem === this && (e == null || s[n].queue === e) && (s[n].anim.stop(r), t = !1, s.splice(n, 1)); |
- | (t || !r) & | + | (t || !r) && v.dequeue(this, e) |
}) | }) | ||
} | } | ||
Line 3,420: | Line 3,419: | ||
} | } | ||
}), v.speed = function(e, t, n) { | }), v.speed = function(e, t, n) { | ||
- | var r = e & | + | var r = e && typeof e == "object" ? v.extend({}, e) : { |
- | complete: n || !n & | + | complete: n || !n && t || v.isFunction(e) && e, |
duration: e, | duration: e, | ||
- | easing: n & | + | easing: n && t || t && !v.isFunction(t) && t |
}; | }; | ||
r.duration = v.fx.off ? 0 : typeof r.duration == "number" ? r.duration : r.duration in v.fx.speeds ? v.fx.speeds[r.duration] : v.fx.speeds._default; | r.duration = v.fx.off ? 0 : typeof r.duration == "number" ? r.duration : r.duration in v.fx.speeds ? v.fx.speeds[r.duration] : v.fx.speeds._default; | ||
if (r.queue == null || r.queue === !0) r.queue = "fx"; | if (r.queue == null || r.queue === !0) r.queue = "fx"; | ||
return r.old = r.complete, r.complete = function() { | return r.old = r.complete, r.complete = function() { | ||
- | v.isFunction(r.old) & | + | v.isFunction(r.old) && r.old.call(this), r.queue && v.dequeue(this, r.queue) |
}, r | }, r | ||
}, v.easing = { | }, v.easing = { | ||
Line 3,441: | Line 3,440: | ||
r = 0; | r = 0; | ||
qn = v.now(); | qn = v.now(); | ||
- | for (; r < n.length; r++) e = n[r], !e() & | + | for (; r < n.length; r++) e = n[r], !e() && n[r] === e && n.splice(r--, 1); |
n.length || v.fx.stop(), qn = t | n.length || v.fx.stop(), qn = t | ||
}, v.fx.timer = function(e) { | }, v.fx.timer = function(e) { | ||
- | e() & | + | e() && v.timers.push(e) && !Rn && (Rn = setInterval(v.fx.tick, v.fx.interval)) |
}, v.fx.interval = 13, v.fx.stop = function() { | }, v.fx.interval = 13, v.fx.stop = function() { | ||
clearInterval(Rn), Rn = null | clearInterval(Rn), Rn = null | ||
Line 3,451: | Line 3,450: | ||
fast: 200, | fast: 200, | ||
_default: 400 | _default: 400 | ||
- | }, v.fx.step = {}, v.expr & | + | }, v.fx.step = {}, v.expr && v.expr.filters && (v.expr.filters.animated = function(e) { |
return v.grep(v.timers, function(t) { | return v.grep(v.timers, function(t) { | ||
return e === t.elem | return e === t.elem | ||
Line 3,465: | Line 3,464: | ||
left: 0 | left: 0 | ||
}, l = this[0], | }, l = this[0], | ||
- | c = l & | + | c = l && l.ownerDocument; |
if (!c) return; | if (!c) return; | ||
- | return (r = c.body) === l ? v.offset.bodyOffset(l) : (n = c.documentElement, v.contains(n, l) ? (typeof l.getBoundingClientRect != "undefined" & | + | return (r = c.body) === l ? v.offset.bodyOffset(l) : (n = c.documentElement, v.contains(n, l) ? (typeof l.getBoundingClientRect != "undefined" && (f = l.getBoundingClientRect()), i = tr(c), s = n.clientTop || r.clientTop || 0, o = n.clientLeft || r.clientLeft || 0, u = i.pageYOffset || n.scrollTop, a = i.pageXOffset || n.scrollLeft, { |
top: f.top + u - s, | top: f.top + u - s, | ||
left: f.left + a - o | left: f.left + a - o | ||
Line 3,475: | Line 3,474: | ||
var t = e.offsetTop, | var t = e.offsetTop, | ||
n = e.offsetLeft; | n = e.offsetLeft; | ||
- | return v.support.doesNotIncludeMarginInBodyOffset & | + | return v.support.doesNotIncludeMarginInBodyOffset && (t += parseFloat(v.css(e, "marginTop")) || 0, n += parseFloat(v.css(e, "marginLeft")) || 0), { |
top: t, | top: t, | ||
left: n | left: n | ||
Line 3,482: | Line 3,481: | ||
setOffset: function(e, t, n) { | setOffset: function(e, t, n) { | ||
var r = v.css(e, "position"); | var r = v.css(e, "position"); | ||
- | r === "static" & | + | r === "static" && (e.style.position = "relative"); |
var i = v(e), | var i = v(e), | ||
s = i.offset(), | s = i.offset(), | ||
o = v.css(e, "top"), | o = v.css(e, "top"), | ||
u = v.css(e, "left"), | u = v.css(e, "left"), | ||
- | a = (r === "absolute" || r === "fixed") & | + | a = (r === "absolute" || r === "fixed") && v.inArray("auto", [o, u]) > -1, |
f = {}, l = {}, c, h; | f = {}, l = {}, c, h; | ||
- | a ? (l = i.position(), c = l.top, h = l.left) : (c = parseFloat(o) || 0, h = parseFloat(u) || 0), v.isFunction(t) & | + | a ? (l = i.position(), c = l.top, h = l.left) : (c = parseFloat(o) || 0, h = parseFloat(u) || 0), v.isFunction(t) && (t = t.call(e, n, s)), t.top != null && (f.top = t.top - s.top + c), t.left != null && (f.left = t.left - s.left + h), "using" in t ? t.using.call(e, f) : i.css(f) |
} | } | ||
}, v.fn.extend({ | }, v.fn.extend({ | ||
Line 3,509: | Line 3,508: | ||
return this.map(function() { | return this.map(function() { | ||
var e = this.offsetParent || i.body; | var e = this.offsetParent || i.body; | ||
- | while (e & | + | while (e && !er.test(e.nodeName) && v.css(e, "position") === "static") e = e.offsetParent; |
return e || i.body | return e || i.body | ||
}) | }) | ||
Line 3,535: | Line 3,534: | ||
}, function(r, i) { | }, function(r, i) { | ||
v.fn[i] = function(i, s) { | v.fn[i] = function(i, s) { | ||
- | var o = arguments.length & | + | var o = arguments.length && (r || typeof i != "boolean"), |
u = r || (i === !0 || s === !0 ? "margin" : "border"); | u = r || (i === !0 || s === !0 ? "margin" : "border"); | ||
return v.access(this, function(n, r, i) { | return v.access(this, function(n, r, i) { | ||
Line 3,543: | Line 3,542: | ||
} | } | ||
}) | }) | ||
- | }), e.jQuery = e.$ = v, typeof define == "function" & | + | }), e.jQuery = e.$ = v, typeof define == "function" && define.amd && define.amd.jQuery && define("jquery", [], function() { |
return v | return v | ||
}) | }) | ||
Line 3,565: | Line 3,564: | ||
"});r.startX=this.offsetLeft;r.startY=this.offsetTop}r.startX-=r.inversionFactor*Math.floor(r.xRange/2);r.startY-=r.inversionFactor*Math.floor(r.yRange/2);if(n>=0){i.splice(n,1,r)}else{i.push(r)}})};e.plax={enable:function(t){e(document).bind(" | "});r.startX=this.offsetLeft;r.startY=this.offsetTop}r.startX-=r.inversionFactor*Math.floor(r.xRange/2);r.startY-=r.inversionFactor*Math.floor(r.yRange/2);if(n>=0){i.splice(n,1,r)}else{i.push(r)}})};e.plax={enable:function(t){e(document).bind(" | ||
mousemove.plax ",function(n){if(t){s=t.activityTarget||e(window)}h(n)});if(l()){window.ondeviceorientation=function(e){h(e)}}},disable:function(t){e(document).unbind(" | mousemove.plax ",function(n){if(t){s=t.activityTarget||e(window)}h(n)});if(l()){window.ondeviceorientation=function(e){h(e)}}},disable:function(t){e(document).unbind(" | ||
- | mousemove.plax ");window.ondeviceorientation=undefined;if(t& | + | mousemove.plax ");window.ondeviceorientation=undefined;if(t&&typeof t.clearLayers===" |
- | boolean "& | + | boolean "&&t.clearLayers)i=[]}};if(typeof ender!==" |
undefined "){e.ender(e.fn,true)}})(function(){return typeof jQuery!==" | undefined "){e.ender(e.fn,true)}})(function(){return typeof jQuery!==" | ||
undefined "?jQuery:ender}()) | undefined "?jQuery:ender}()) | ||
Line 3,602: | Line 3,601: | ||
$(document).on('keydown', function(event) { | $(document).on('keydown', function(event) { | ||
- | if (event.target === document.body & | + | if (event.target === document.body && event.keyCode === 192 && !event.metaKey) { |
$('#parallax_wrapper').css('-webkit-filter','grayscale(25%)') | $('#parallax_wrapper').css('-webkit-filter','grayscale(25%)') | ||
Revision as of 20:05, 16 October 2014