var Docelem = window.document.documentElement,
Transendeventnames = {
' Webkittransition ': ' Webkittransitionend ',
' Moztransition ': ' Moztransitionend ',
' Otransition ': ' Otransitionend ',
' Mstransition ': ' Mstransitionend ',
' Transition ': ' Transitionend '
},
Transeventname = transendeventnames[modernizr,prefixed (' transition ')],
Support = {
Pointerevents:Modernizr.pointerevents,
Csstransitions:Modernizr.csstransitions,
Csstransform3d:Modernizr.csstransform3d
};
function Scrollx () {
return Window.pagexoffset | | Docelem.scrollleft;
}
function scrolly () {
return Window.pageyoffset | | Docelem.scrolltop;
}
function Getviewportw () {
var client = docelem[' clientwidth '),
Inner = window[' innerwidth '];
if (Client < inner)
return inner;
Else
return client;
}
function Getviewporth () {
var client = docelem[' clientwidth '),
Inner = window[' innerheight '];
if (Client < inner)
return inner;
Else
return client;
}
function Extend (A, b) {
for (var key in B) {
if (B.hasownproperty (key)) {
A[key] = B[key];
}
}
return A;
}
/**************modernizr.custom.js (part) *******************/
; window. MODERNIZR = function (a,b,c) {
function Z (a) {j.csstext = a}
function A (A, b) {return Z (m.join (A + ":") + (b| | "")}
function B (A, A,) {return typeof a = = B}
function C (A, b) {return!! ~ ("" + A). IndexOf (b)}
function D (A, b) {
for (var d in a) {
var e = a[d];
if (!c (E, "-") &&j[e]!== c) Return B = "pfx"? e:!0
}
Return! 1;
}
function E (a,b,d) {for (Var e in a) {var f=b[a[e]];if (f!==c) return d===!1?a[e]:b (F, "function")? F.bind (d| | b): F}return!1}
function F (a,b,c) {var d=a.charat (0). toUpperCase () +a.slice (1), e= (A + "" +o.join (d+ ") +d). Split (" ");
return B (b, "string") | | B (b, "undefined")? D (e,b):(e= (A + "" +p.join (d+ "") +d). Split (""), E (e,b,c))}
var d = "2.7.1", E = {},f =!0,g = B.documentelement,h = "Modernizr", I = b.createelement (h),
j = I.style, K,i = {}.tostring,m = "-webkit--moz--o--ms-". Split (""),
n = "Webkit Moz o ms", O = N.split (""), p = n.tolowercase (). Split (""), q = {},r = {},s = {},t = [],u = T.SLICE.V,
W = function (a,c,d,e) {var f, I, j, k,i = B.createelement ("div"), m = b.body,n = M | | b.createelement ("body");
if (parseint (d,10)) while (d--) j = b.createelement ("div"), j.id = id=e?e[d]:h+ (d+1), L.appendchild (j);
return f = ["& #173", ' <style id = "s, ' H, '" > ', A, ' <style> '].join (""), 1.
id = h, (m? I:N). InnerHTML + = f, N.appendchild (I), M | | (N.style.background = "",
N.style.overflow = "hidden", K = g.style.overflow, G.style.overflow = "hidden",
G.appendchild (n)), I = C (i,a), M? I.parentnode.removechild (I);
(N.parentnode.removechild (n), G.style.overflow = k),
!! I},x = {}.hasownproperty,
y;! B (x, "undefined") &&! B (X.call, "undefined")? y = function (A, b) {return X.call (A, b)};
y = function (b) {return B in a && B (a.constructor.prototype[b], "undefined")},
Function.prototype.bind | | (Function.prototype.bind = Function (b) {
var C = this;
if (typeof c!= "function") throw new TypeError;
var d = u.call (arguments,1),
E = function () {
if (this instanceof e) {
var a = function () {};
A.prototype = C.prototype;
var f = new A,
g = c.apply (F,d.concat (U.call (arguments)));
Return Object (g) = = G?g:f
}
Return c.apply (b, D.concat (U.call (arguments)))
};
Return E
}),
Q.csstransforms3d = function () {
var a =!! F ("Perspective");
Return a && "webkitperspective" in G.style && W ("@media (transform-3d)," +
"(-webkit-transform-3d) {#modernizr {left:9px;position:absolute;height:3px;}}",
function (b,c) {a = B.offsetleft = = 9 && b.offsetheight = = 3}),
A},
Q.csstransitions = function () {return F ("transition")};
for (var G in Q) y (q,g) && (V=g.tolowercase (), E[v]=q[g] (), T.push ((E[v]? ":" no-") +v));
}
2016/2/12 Codes