aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'deprecated/jinwei.me/js/modernizr.custom.79639.js')
-rw-r--r--deprecated/jinwei.me/js/modernizr.custom.79639.js167
1 files changed, 167 insertions, 0 deletions
diff --git a/deprecated/jinwei.me/js/modernizr.custom.79639.js b/deprecated/jinwei.me/js/modernizr.custom.79639.js
new file mode 100644
index 0000000..23b151c
--- /dev/null
+++ b/deprecated/jinwei.me/js/modernizr.custom.79639.js
@@ -0,0 +1,167 @@
1/* Modernizr 2.5.3 (Custom Build) | MIT & BSD
2 * Build: http://www.modernizr.com/download/#-cssanimations-csstransforms-csstransforms3d-csstransitions-shiv-cssclasses-teststyles-testprop-testallprops-prefixes-domprefixes
3 */
4;
5window.Modernizr = function(a, b, c) {
6 function z(a) {
7 j.cssText = a
8 }
9
10 function A(a, b) {
11 return z(m.join(a + ";") + (b || ""))
12 }
13
14 function B(a, b) {
15 return typeof a === b
16 }
17
18 function C(a, b) {
19 return !!~("" + a).indexOf(b)
20 }
21
22 function D(a, b) {
23 for (var d in a)
24 if (j[a[d]] !== c) return b == "pfx" ? a[d] : !0;
25 return !1
26 }
27
28 function E(a, b, d) {
29 for (var e in a) {
30 var f = b[a[e]];
31 if (f !== c) return d === !1 ? a[e] : B(f, "function") ? f.bind(d || b) : f
32 }
33 return !1
34 }
35
36 function F(a, b, c) {
37 var d = a.charAt(0).toUpperCase() + a.substr(1),
38 e = (a + " " + o.join(d + " ") + d).split(" ");
39 return B(b, "string") || B(b, "undefined") ? D(e, b) : (e = (a + " " + p.join(d + " ") + d).split(" "), E(e, b, c))
40 }
41 var d = "2.5.3",
42 e = {},
43 f = !0,
44 g = b.documentElement,
45 h = "modernizr",
46 i = b.createElement(h),
47 j = i.style,
48 k, l = {}.toString,
49 m = " -webkit- -moz- -o- -ms- ".split(" "),
50 n = "Webkit Moz O ms",
51 o = n.split(" "),
52 p = n.toLowerCase().split(" "),
53 q = {},
54 r = {},
55 s = {},
56 t = [],
57 u = t.slice,
58 v, w = function(a, c, d, e) {
59 var f, i, j, k = b.createElement("div"),
60 l = b.body,
61 m = l ? l : b.createElement("body");
62 if (parseInt(d, 10))
63 while (d--) j = b.createElement("div"), j.id = e ? e[d] : h + (d + 1), k.appendChild(j);
64 return f = ["&#173;", "<style>", a, "</style>"].join(""), k.id = h, (l ? k : m).innerHTML += f, m.appendChild(k), l || (m.style.background = "", g.appendChild(m)), i = c(k, a), l ? k.parentNode.removeChild(k) : m.parentNode.removeChild(m), !!i
65 },
66 x = {}.hasOwnProperty,
67 y;
68 !B(x, "undefined") && !B(x.call, "undefined") ? y = function(a, b) {
69 return x.call(a, b)
70 } : y = function(a, b) {
71 return b in a && B(a.constructor.prototype[b], "undefined")
72 }, Function.prototype.bind || (Function.prototype.bind = function(b) {
73 var c = this;
74 if (typeof c != "function") throw new TypeError;
75 var d = u.call(arguments, 1),
76 e = function() {
77 if (this instanceof e) {
78 var a = function() {};
79 a.prototype = c.prototype;
80 var f = new a,
81 g = c.apply(f, d.concat(u.call(arguments)));
82 return Object(g) === g ? g : f
83 }
84 return c.apply(b, d.concat(u.call(arguments)))
85 };
86 return e
87 });
88 var G = function(a, c) {
89 var d = a.join(""),
90 f = c.length;
91 w(d, function(a, c) {
92 var d = b.styleSheets[b.styleSheets.length - 1],
93 g = d ? d.cssRules && d.cssRules[0] ? d.cssRules[0].cssText : d.cssText || "" : "",
94 h = a.childNodes,
95 i = {};
96 while (f--) i[h[f].id] = h[f];
97 e.csstransforms3d = (i.csstransforms3d && i.csstransforms3d.offsetLeft) === 9 && i.csstransforms3d.offsetHeight === 3
98 }, f, c)
99 }([, ["@media (", m.join("transform-3d),("), h, ")", "{#csstransforms3d{left:9px;position:absolute;height:3px;}}"].join("")], [, "csstransforms3d"]);
100 q.cssanimations = function() {
101 return F("animationName")
102 }, q.csstransforms = function() {
103 return !!F("transform")
104 }, q.csstransforms3d = function() {
105 var a = !!F("perspective");
106 return a && "webkitPerspective" in g.style && (a = e.csstransforms3d), a
107 }, q.csstransitions = function() {
108 return F("transition")
109 };
110 for (var H in q) y(q, H) && (v = H.toLowerCase(), e[v] = q[H](), t.push((e[v] ? "" : "no-") + v));
111 return z(""), i = k = null,
112 function(a, b) {
113 function g(a, b) {
114 var c = a.createElement("p"),
115 d = a.getElementsByTagName("head")[0] || a.documentElement;
116 return c.innerHTML = "x<style>" + b + "</style>", d.insertBefore(c.lastChild, d.firstChild)
117 }
118
119 function h() {
120 var a = k.elements;
121 return typeof a == "string" ? a.split(" ") : a
122 }
123
124 function i(a) {
125 var b = {},
126 c = a.createElement,
127 e = a.createDocumentFragment,
128 f = e();
129 a.createElement = function(a) {
130 var e = (b[a] || (b[a] = c(a))).cloneNode();
131 return k.shivMethods && e.canHaveChildren && !d.test(a) ? f.appendChild(e) : e
132 }, a.createDocumentFragment = Function("h,f", "return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&(" + h().join().replace(/\w+/g, function(a) {
133 return b[a] = c(a), f.createElement(a), 'c("' + a + '")'
134 }) + ");return n}")(k, f)
135 }
136
137 function j(a) {
138 var b;
139 return a.documentShived ? a : (k.shivCSS && !e && (b = !!g(a, "article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio{display:none}canvas,video{display:inline-block;*display:inline;*zoom:1}[hidden]{display:none}audio[controls]{display:inline-block;*display:inline;*zoom:1}mark{background:#FF0;color:#000}")), f || (b = !i(a)), b && (a.documentShived = b), a)
140 }
141 var c = a.html5 || {},
142 d = /^<|^(?:button|form|map|select|textarea)$/i,
143 e, f;
144 (function() {
145 var a = b.createElement("a");
146 a.innerHTML = "<xyz></xyz>", e = "hidden" in a, f = a.childNodes.length == 1 || function() {
147 try {
148 b.createElement("a")
149 } catch (a) {
150 return !0
151 }
152 var c = b.createDocumentFragment();
153 return typeof c.cloneNode == "undefined" || typeof c.createDocumentFragment == "undefined" || typeof c.createElement == "undefined"
154 }()
155 })();
156 var k = {
157 elements: c.elements || "abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",
158 shivCSS: c.shivCSS !== !1,
159 shivMethods: c.shivMethods !== !1,
160 type: "default",
161 shivDocument: j
162 };
163 a.html5 = k, j(b)
164 }(this, b), e._version = d, e._prefixes = m, e._domPrefixes = p, e._cssomPrefixes = o, e.testProp = function(a) {
165 return D([a])
166 }, e.testAllProps = F, e.testStyles = w, g.className = g.className.replace(/(^|\s)no-js(\s|$)/, "$1$2") + (f ? " js " + t.join(" ") : ""), e
167}(this, this.document); \ No newline at end of file
Powered by cgit v1.2.3 (git 2.41.0)