LuckyCoinkydink/templates/2k11/js/modernizr-2.6.1.min.js
2012-08-01 14:25:01 +02:00

35 lines
7.4 KiB
JavaScript

window.Modernizr=function(au,at,ar){function S(b){ak.cssText=b;}function R(d,c){return S(ag.join(d+";")+(c||""));}function Q(d,c){return typeof d===c;}function P(d,c){return !!~(""+d).indexOf(c);
}function O(f,c){for(var h in f){var g=f[h];if(!P(g,"-")&&ak[g]!==ar){return c=="pfx"?g:!0;}}return !1;}function N(g,c,j){for(var i in g){var h=c[g[i]];
if(h!==ar){return j===!1?g[i]:Q(h,"function")?h.bind(j||c):h;}}return !1;}function M(g,f,j){var i=g.charAt(0).toUpperCase()+g.slice(1),h=(g+" "+ae.join(i+" ")+i).split(" ");
return Q(f,"string")||Q(f,"undefined")?O(h,f):(h=(g+" "+ad.join(i+" ")+i).split(" "),N(h,f,j));}function L(){ap.input=function(f){for(var b=0,a=f.length;
b<a;b++){aa[f[b]]=f[b] in aj;}return aa.list&&(aa.list=!!at.createElement("datalist")&&!!au.HTMLDataListElement),aa;}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));
}var aq="2.6.1",ap={},ao=!0,an=at.documentElement,am="modernizr",al=at.createElement(am),ak=al.style,aj=at.createElement("input"),ai=":)",ah={}.toString,ag=" -webkit- -moz- -o- -ms- ".split(" "),af="Webkit Moz O ms",ae=af.split(" "),ad=af.toLowerCase().split(" "),ac={},ab={},aa={},Z=[],Y=Z.slice,X,W=function(t,s,r,q){var p,o,n,h=at.createElement("div"),g=at.body,b=g?g:at.createElement("body");
if(parseInt(r,10)){while(r--){n=at.createElement("div"),n.id=q?q[r]:am+(r+1),h.appendChild(n);}}return p=["&#173;",'<style id="s',am,'">',t,"</style>"].join(""),h.id=am,(g?h:b).innerHTML+=p,b.appendChild(h),g||(b.style.background="",an.appendChild(b)),o=s(h,t),g?h.parentNode.removeChild(h):b.parentNode.removeChild(b),!!o;
},V=function(a){var f=au.matchMedia||au.msMatchMedia;if(f){return f(a).matches;}var e;return W("@media "+a+" { #"+am+" { position: absolute; } }",function(c){e=(au.getComputedStyle?getComputedStyle(c,null):c.currentStyle)["position"]=="absolute";
}),e;},U={}.hasOwnProperty,T;!Q(U,"undefined")&&!Q(U.call,"undefined")?T=function(d,c){return U.call(d,c);}:T=function(d,c){return c in d&&Q(d.constructor.prototype[c],"undefined");
},Function.prototype.bind||(Function.prototype.bind=function(a){var h=this;if(typeof h!="function"){throw new TypeError;}var g=Y.call(arguments,1),f=function(){if(this instanceof f){var b=function(){};
b.prototype=h.prototype;var d=new b,c=h.apply(d,g.concat(Y.call(arguments)));return Object(c)===c?c:d;}return h.apply(a,g.concat(Y.call(arguments)));};
return f;}),ac.touch=function(){var a;return"ontouchstart" in au||au.DocumentTouch&&at instanceof DocumentTouch?a=!0:W(["@media (",ag.join("touch-enabled),("),am,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(b){a=b.offsetTop===9;
}),a;},ac.boxshadow=function(){return M("boxShadow");},ac.generatedcontent=function(){var b;return W(['#modernizr:after{content:"',ai,'";visibility:hidden}'].join(""),function(a){b=a.offsetHeight>=1;
}),b;};for(var K in ac){T(ac,K)&&(X=K.toLowerCase(),ap[X]=ac[K](),Z.push((ap[X]?"":"no-")+X));}return ap.input||L(),ap.addTest=function(e,c){if(typeof e=="object"){for(var f in e){T(e,f)&&ap.addTest(f,e[f]);
}}else{e=e.toLowerCase();if(ap[e]!==ar){return ap;}c=typeof c=="function"?c():c,ao&&(an.className+=" "+(c?"":"no-")+e),ap[e]=c;}return ap;},S(""),al=aj=null,ap._version=aq,ap._prefixes=ag,ap._domPrefixes=ad,ap._cssomPrefixes=ae,ap.mq=V,ap.testProp=function(b){return O([b]);
},ap.testAllProps=M,ap.testStyles=W,an.className=an.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(ao?" js "+Z.join(" "):""),ap;}(this,this.document),function(Z,Y){function P(f,e){var h=f.createElement("p"),g=f.getElementsByTagName("head")[0]||f.documentElement;
return h.innerHTML="x<style>"+e+"</style>",g.insertBefore(h.lastChild,g.firstChild);}function O(){var b=I.elements;return typeof b=="string"?b.split(" "):b;
}function N(d){var c=R[d[T]];return c||(c={},S++,d[T]=S,R[S]=c),c;}function M(b,h,e){h||(h=Y);if(Q){return h.createElement(b);}e||(e=N(h));var d;return e.cache[b]?d=e.cache[b].cloneNode():V.test(b)?d=(e.cache[b]=e.createElem(b)).cloneNode():d=e.createElem(b),d.canHaveChildren&&!W.test(b)?e.frag.appendChild(d):d;
}function L(b,l){b||(b=Y);if(Q){return b.createDocumentFragment();}l=l||N(b);var k=l.frag.cloneNode(),j=0,i=O(),h=i.length;for(;j<h;j++){k.createElement(i[j]);
}return k;}function K(d,c){c.cache||(c.cache={},c.createElem=d.createElement,c.createFrag=d.createDocumentFragment,c.frag=c.createFrag()),d.createElement=function(a){return I.shivMethods?M(a,d,c):c.createElem(a);
},d.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+O().join().replace(/\w+/g,function(b){return c.createElem(b),c.frag.createElement(b),'c("'+b+'")';
})+");return n}")(I,c.frag);}function J(b){b||(b=Y);var d=N(b);return I.shivCSS&&!U&&!d.hasCSS&&(d.hasCSS=!!P(b,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")),Q||K(b,d),b;
}function E(h){var g,l=h.getElementsByTagName("*"),k=l.length,j=RegExp("^(?:"+O().join("|")+")$","i"),i=[];while(k--){g=l[k],j.test(g.nodeName)&&i.push(g.applyElement(D(g)));
}return i;}function D(g){var f,j=g.attributes,i=j.length,h=g.ownerDocument.createElement(G+":"+g.nodeName);while(i--){f=j[i],f.specified&&h.setAttribute(f.nodeName,f.nodeValue);
}return h.style.cssText=g.style.cssText,h;}function C(h){var g,l=h.split("{"),k=l.length,j=RegExp("(^|[\\s,>+~])("+O().join("|")+")(?=[[\\s,>+~#.:]|$)","gi"),i="$1"+G+"\\:$2";
while(k--){g=l[k]=l[k].split("}"),g[g.length-1]=g[g.length-1].replace(j,i),l[k]=g.join("}");}return l.join("{");}function B(d){var c=d.length;while(c--){d[c].removeNode();
}}function A(i){function j(){clearTimeout(m._removeSheetTimer),h&&h.removeNode(!0),h=null;}var h,n,m=N(i),l=i.namespaces,k=i.parentWindow;return !F||i.printShived?i:(typeof l[G]=="undefined"&&l.add(G),k.attachEvent("onbeforeprint",function(){j();
var r,q,p,o=i.styleSheets,g=[],c=o.length,b=Array(c);while(c--){b[c]=o[c];}while(p=b.pop()){if(!p.disabled&&H.test(p.media)){try{r=p.imports,q=r.length;
}catch(a){q=0;}for(c=0;c<q;c++){b.push(r[c]);}try{g.push(p.cssText);}catch(a){}}}g=C(g.reverse().join("")),n=E(i),h=P(i,g);}),k.attachEvent("onafterprint",function(){B(n),clearTimeout(m._removeSheetTimer),m._removeSheetTimer=setTimeout(j,500);
}),i.printShived=!0,i);}var X=Z.html5||{},W=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,V=/^<|^(?:a|b|button|code|div|fieldset|form|h1|h2|h3|h4|h5|h6|i|iframe|img|input|label|li|link|ol|option|p|param|q|script|select|span|strong|style|table|tbody|td|textarea|tfoot|th|thead|tr|ul)$/i,U,T="_html5shiv",S=0,R={},Q;
(function(){try{var b=Y.createElement("a");b.innerHTML="<xyz></xyz>",U="hidden" in b,Q=b.childNodes.length==1||function(){Y.createElement("a");var c=Y.createDocumentFragment();
return typeof c.cloneNode=="undefined"||typeof c.createDocumentFragment=="undefined"||typeof c.createElement=="undefined";}();}catch(d){U=!0,Q=!0;}})();
var I={elements:X.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:X.shivCSS!==!1,supportsUnknownElements:Q,shivMethods:X.shivMethods!==!1,type:"default",shivDocument:J,createElement:M,createDocumentFragment:L};
Z.html5=I,J(Y);var H=/^$|\b(?:all|print)\b/,G="html5shiv",F=!Q&&function(){var a=Y.documentElement;return typeof Y.namespaces!="undefined"&&typeof Y.parentWindow!="undefined"&&typeof a.applyElement!="undefined"&&typeof a.removeNode!="undefined"&&typeof Z.attachEvent!="undefined";
}();I.type+=" print",I.shivPrint=A,A(Y);}(this,document);