Browse files

Updated Modernizr to version 2.6.0, dropped Modernizr.load.

  • Loading branch information...
1 parent d1799bb commit e510c89a549a48e0d45a857f5143ab6b6d190cf4 @yellowled committed Jul 17, 2012
Showing with 32 additions and 42 deletions.
  1. +1 −1 index.tpl
  2. +0 −41 js/modernizr-2.5.3.min.js
  3. +31 −0 js/modernizr-2.6.0.min.js
View
2 index.tpl
@@ -24,7 +24,7 @@
{if $template_option.userstyles == true}
<link rel="stylesheet" href="{serendipity_getFile file="user.css"}">
{/if}
- <script src="{serendipity_getFile file="js/modernizr-2.5.3.min.js"}"></script>
+ <script src="{serendipity_getFile file="js/modernizr-2.6.0.min.js"}"></script>
<link rel="alternate" type="application/rss+xml" title="{$blogTitle} RSS feed" href="{$serendipityBaseURL}{$serendipityRewritePrefix}feeds/index.rss2">
<link rel="alternate" type="application/x.atom+xml" title="{$blogTitle} Atom feed" href="{$serendipityBaseURL}{$serendipityRewritePrefix}feeds/atom.xml">
{if $entry_id}
View
41 js/modernizr-2.5.3.min.js
@@ -1,41 +0,0 @@
-window.Modernizr=function(aw,av,au){function U(b){am.cssText=b;}function T(d,c){return U(ai.join(d+";")+(c||""));}function S(d,c){return typeof d===c;}function R(d,c){return !!~(""+d).indexOf(c);
-}function Q(e,c){for(var f in e){if(am[e[f]]!==au){return c=="pfx"?e[f]:!0;}}return !1;}function P(g,c,j){for(var i in g){var h=c[g[i]];if(h!==au){return j===!1?g[i]:S(h,"function")?h.bind(j||c):h;
-}}return !1;}function O(g,f,j){var i=g.charAt(0).toUpperCase()+g.substr(1),h=(g+" "+ag.join(i+" ")+i).split(" ");return S(f,"string")||S(f,"undefined")?Q(h,f):(h=(g+" "+af.join(i+" ")+i).split(" "),P(h,f,j));
-}function M(){ar.input=function(f){for(var b=0,a=f.length;b<a;b++){ac[f[b]]=f[b] in al;}return ac.list&&(ac.list=!!av.createElement("datalist")&&!!aw.HTMLDataListElement),ac;
-}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));}var at="2.5.3",ar={},aq=!0,ap=av.documentElement,ao="modernizr",an=av.createElement(ao),am=an.style,al=av.createElement("input"),ak=":)",aj={}.toString,ai=" -webkit- -moz- -o- -ms- ".split(" "),ah="Webkit Moz O ms",ag=ah.split(" "),af=ah.toLowerCase().split(" "),ae={},ad={},ac={},ab=[],aa=ab.slice,Z,Y=function(t,s,r,q){var p,o,n,h=av.createElement("div"),g=av.body,b=g?g:av.createElement("body");
-if(parseInt(r,10)){while(r--){n=av.createElement("div"),n.id=q?q[r]:ao+(r+1),h.appendChild(n);}}return p=["&#173;","<style>",t,"</style>"].join(""),h.id=ao,b.innerHTML+=p,b.appendChild(h),g||(b.style.background="",ap.appendChild(b)),o=s(h,t),g?h.parentNode.removeChild(h):b.parentNode.removeChild(b),!!o;
-},X=function(a){var f=aw.matchMedia||aw.msMatchMedia;if(f){return f(a).matches;}var e;return Y("@media "+a+" { #"+ao+" { position: absolute; } }",function(c){e=(aw.getComputedStyle?getComputedStyle(c,null):c.currentStyle)["position"]=="absolute";
-}),e;},W={}.hasOwnProperty,V;!S(W,"undefined")&&!S(W.call,"undefined")?V=function(d,c){return W.call(d,c);}:V=function(d,c){return c in d&&S(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=aa.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(aa.call(arguments)));return Object(c)===c?c:d;}return h.apply(a,g.concat(aa.call(arguments)));
-};return f;});var N=function(h,e){var b=h.join(""),a=e.length;Y(b,function(o,n){var m=av.styleSheets[av.styleSheets.length-1],l=m?m.cssRules&&m.cssRules[0]?m.cssRules[0].cssText:m.cssText||"":"",k=o.childNodes,g={};
-while(a--){g[k[a].id]=k[a];}ar.touch="ontouchstart" in aw||aw.DocumentTouch&&av instanceof DocumentTouch||(g.touch&&g.touch.offsetTop)===9,ar.generatedcontent=(g.generatedcontent&&g.generatedcontent.offsetHeight)>=1;
-},a,e);}([,["@media (",ai.join("touch-enabled),("),ao,")","{#touch{top:9px;position:absolute}}"].join(""),['#generatedcontent:after{content:"',ak,'";visibility:hidden}'].join("")],[,"touch","generatedcontent"]);
-ae.touch=function(){return ar.touch;},ae.boxshadow=function(){return O("boxShadow");},ae.generatedcontent=function(){return ar.generatedcontent;};for(var L in ae){V(ae,L)&&(Z=L.toLowerCase(),ar[Z]=ae[L](),ab.push((ar[Z]?"":"no-")+Z));
-}return ar.input||M(),U(""),an=al=null,function(v,u){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=l.elements;return typeof b=="string"?b.split(" "):b;
-}function n(g){var d={},j=g.createElement,i=g.createDocumentFragment,h=i();g.createElement=function(b){var c=(d[b]||(d[b]=j(b))).cloneNode();return l.shivMethods&&c.canHaveChildren&&!s.test(b)?h.appendChild(c):c;
-},g.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+o().join().replace(/\w+/g,function(b){return d[b]=j(b),h.createElement(b),'c("'+b+'")';
-})+");return n}")(l,h);}function m(d){var c;return d.documentShived?d:(l.shivCSS&&!r&&(c=!!p(d,"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}")),q||(c=!n(d)),c&&(d.documentShived=c),d);
-}var t=v.html5||{},s=/^<|^(?:button|form|map|select|textarea)$/i,r,q;(function(){var b=u.createElement("a");b.innerHTML="<xyz></xyz>",r="hidden" in b,q=b.childNodes.length==1||function(){try{u.createElement("a");
-}catch(d){return !0;}var e=u.createDocumentFragment();return typeof e.cloneNode=="undefined"||typeof e.createDocumentFragment=="undefined"||typeof e.createElement=="undefined";
-}();})();var l={elements:t.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:t.shivCSS!==!1,shivMethods:t.shivMethods!==!1,type:"default",shivDocument:m};
-v.html5=l,m(u);}(this,av),ar._version=at,ar._prefixes=ai,ar._domPrefixes=af,ar._cssomPrefixes=ag,ar.mq=X,ar.testProp=function(b){return Q([b]);},ar.testAllProps=O,ar.testStyles=Y,ap.className=ap.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(aq?" js "+ab.join(" "):""),ar;
-}(this,this.document),function(ad,ac,ab){function aa(b){return P.call(b)=="[object Function]";}function Z(b){return typeof b=="string";}function Y(){}function X(b){return !b||b=="loaded"||b=="complete"||b=="uninitialized";
-}function W(){var b=O.shift();M=1,b?b.t?R(function(){(b.t=="c"?L.injectCss:L.injectJs)(b.s,0,b.a,b.x,b.e,1);},0):(b(),W()):M=0;}function V(w,v,t,s,q,p,n){function m(a){if(!g&&X(h.readyState)&&(x.r=g=1,!M&&W(),h.onload=h.onreadystatechange=null,a)){w!="img"&&R(function(){I.removeChild(h);
-},50);for(var c in D[v]){D[v].hasOwnProperty(c)&&D[v][c].onload();}}}var n=n||L.errorTimeout,h={},g=0,b=0,x={t:t,s:v,e:q,a:p,x:n};D[v]===1&&(b=1,D[v]=[],h=ac.createElement(w)),w=="object"?h.data=v:(h.src=v,h.type=w),h.width=h.height="0",h.onerror=h.onload=h.onreadystatechange=function(){m.call(this,b);
-},O.splice(s,0,x),w!="img"&&(b||D[v]===2?(I.insertBefore(h,J?null:Q),R(m,n)):D[v].push(h));}function U(g,e,j,i,h){return M=0,e=e||"j",Z(g)?V(e=="c"?G:H,g,e,this.i++,j,i,h):(O.splice(this.i++,0,g),O.length==1&&W()),this;
-}function T(){var b=L;return b.loader={load:U,i:0},b;}var S=ac.documentElement,R=ad.setTimeout,Q=ac.getElementsByTagName("script")[0],P={}.toString,O=[],M=0,K="MozAppearance" in S.style,J=K&&!!ac.createRange().compareNode,I=J?S:Q.parentNode,S=ad.opera&&P.call(ad.opera)=="[object Opera]",S=!!ac.attachEvent&&!S,H=K?"object":S?"script":"img",G=S?"script":H,F=Array.isArray||function(b){return P.call(b)=="[object Array]";
-},E=[],D={},C={timeout:function(d,c){return c.length&&(d.timeout=c[0]),d;}},N,L;L=function(f){function d(j){var j=j.split("!"),i=E.length,q=j.pop(),p=j.length,q={url:q,origUrl:q,prefixes:j},o,m,l;
-for(m=0;m<p;m++){l=j[m].split("="),(o=C[l.shift()])&&(q=o(q,l));}for(m=0;m<i;m++){q=E[m](q);}return q;}function n(m,s,r,q,p){var o=d(m),b=o.autoCallback;
-o.url.split(".").pop().split("?").shift(),o.bypass||(s&&(s=aa(s)?s:s[m]||s[q]||s[m.split("/").pop().split("?")[0]]||W),o.instead?o.instead(m,s,r,q,p):(D[o.url]?o.noexec=!0:D[o.url]=1,r.load(o.url,o.forceCSS||!o.forceJS&&"css"==o.url.split(".").pop().split("?").shift()?"c":ab,o.noexec,o.attrs,o.timeout),(aa(s)||aa(b))&&r.load(function(){T(),s&&s(o.origUrl,p,q),b&&b(o.origUrl,p,q),D[o.url]=2;
-})));}function k(w,v){function u(b,i){if(b){if(Z(b)){i||(r=function(){var j=[].slice.call(arguments);q.apply(this,j),p();}),n(b,r,v,0,t);}else{if(Object(b)===b){for(g in o=function(){var a=0,j;
-for(j in b){b.hasOwnProperty(j)&&a++;}return a;}(),b){b.hasOwnProperty(g)&&(!i&&!--o&&(aa(r)?r=function(){var j=[].slice.call(arguments);q.apply(this,j),p();
-}:r[g]=function(j){return function(){var a=[].slice.call(arguments);j&&j.apply(this,a),p();};}(q[g])),n(b[g],r,v,g,t));}}}}else{!i&&p();}}var t=!!w.test,s=w.load||w.both,r=w.callback||Y,q=r,p=w.complete||Y,o,g;
-u(t?w.yep:w.nope,!!s),s&&u(s);}var h,e,c=this.yepnope.loader;if(Z(f)){n(f,0,c,0);}else{if(F(f)){for(h=0;h<f.length;h++){e=f[h],Z(e)?n(e,0,c,0):F(e)?L(e):Object(e)===e&&k(e,c);
-}}else{Object(f)===f&&k(f,c);}}},L.addPrefix=function(d,c){C[d]=c;},L.addFilter=function(b){E.push(b);},L.errorTimeout=10000,ac.readyState==null&&ac.addEventListener&&(ac.readyState="loading",ac.addEventListener("DOMContentLoaded",N=function(){ac.removeEventListener("DOMContentLoaded",N,0),ac.readyState="complete";
-},0)),ad.yepnope=T(),ad.yepnope.executeStack=W,ad.yepnope.injectJs=function(r,q,p,n,m,h){var g=ac.createElement("script"),f,b,n=n||L.errorTimeout;g.src=r;
-for(b in p){g.setAttribute(b,p[b]);}q=h?W:q||Y,g.onreadystatechange=g.onload=function(){!f&&X(g.readyState)&&(f=1,q(),g.onload=g.onreadystatechange=null);
-},R(function(){f||(f=1,q(1));},n),m?g.onload():Q.parentNode.insertBefore(g,Q);},ad.yepnope.injectCss=function(b,n,m,l,k,h){var l=ac.createElement("link"),f,n=h?W:n||Y;
-l.href=b,l.rel="stylesheet",l.type="text/css";for(f in m){l.setAttribute(f,m[f]);}k||(Q.parentNode.insertBefore(l,Q),R(n,0));};}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0));
-};
View
31 js/modernizr-2.6.0.min.js
@@ -0,0 +1,31 @@
+window.Modernizr=(function(z,c,g){var H="2.6.0",v={},x=true,K=c.documentElement,a="modernizr",G=c.createElement(a),D=G.style,J=c.createElement("input"),B=":)",b={}.toString,j=" -webkit- -moz- -o- -ms- ".split(" "),h="Webkit Moz O ms",E=h.split(" "),I=h.toLowerCase().split(" "),l={},o={},f={},e=[],k=e.slice,r,m=function(S,U,N,T){var M,R,P,L=c.createElement("div"),Q=c.body,O=Q?Q:c.createElement("body");
+if(parseInt(N,10)){while(N--){P=c.createElement("div");P.id=T?T[N]:a+(N+1);L.appendChild(P);}}M=["&#173;",'<style id="s',a,'">',S,"</style>"].join("");
+L.id=a;(Q?L:O).innerHTML+=M;O.appendChild(L);if(!Q){O.style.background="";K.appendChild(O);}R=U(L,S);!Q?O.parentNode.removeChild(O):L.parentNode.removeChild(L);
+return !!R;},F=function(N){var M=z.matchMedia||z.msMatchMedia;if(M){return M(N).matches;}var L;m("@media "+N+" { #"+a+" { position: absolute; } }",function(O){L=(z.getComputedStyle?getComputedStyle(O,null):O.currentStyle)["position"]=="absolute";
+});return L;},i=({}).hasOwnProperty,w;if(!q(i,"undefined")&&!q(i.call,"undefined")){w=function(L,M){return i.call(L,M);};}else{w=function(L,M){return((M in L)&&q(L.constructor.prototype[M],"undefined"));
+};}if(!Function.prototype.bind){Function.prototype.bind=function d(N){var O=this;if(typeof O!="function"){throw new TypeError();}var L=k.call(arguments,1),M=function(){if(this instanceof M){var R=function(){};
+R.prototype=O.prototype;var Q=new R();var P=O.apply(Q,L.concat(k.call(arguments)));if(Object(P)===P){return P;}return Q;}else{return O.apply(N,L.concat(k.call(arguments)));
+}};return M;};}function C(L){D.cssText=L;}function t(M,L){return C(j.join(M+";")+(L||""));}function q(M,L){return typeof M===L;}function s(M,L){return !!~(""+M).indexOf(L);
+}function y(N,L){for(var M in N){if(D[N[M]]!==g){return L=="pfx"?N[M]:true;}}return false;}function p(M,P,O){for(var L in M){var N=P[M[L]];if(N!==g){if(O===false){return M[L];
+}if(q(N,"function")){return N.bind(O||P);}return N;}}return false;}function n(P,L,O){var M=P.charAt(0).toUpperCase()+P.slice(1),N=(P+" "+E.join(M+" ")+M).split(" ");
+if(q(L,"string")||q(L,"undefined")){return y(N,L);}else{N=(P+" "+(I).join(M+" ")+M).split(" ");return p(N,L,O);}}l.touch=function(){var L;if(("ontouchstart" in z)||z.DocumentTouch&&c instanceof DocumentTouch){L=true;
+}else{m(["@media (",j.join("touch-enabled),("),a,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(M){L=M.offsetTop===9;});}return L;};l.boxshadow=function(){return n("boxShadow");
+};l.generatedcontent=function(){var L;m(['#modernizr:after{content:"',B,'";visibility:hidden}'].join(""),function(M){L=M.offsetHeight>=1;});return L;};
+function A(){v.input=(function(N){for(var M=0,L=N.length;M<L;M++){f[N[M]]=!!(N[M] in J);}if(f.list){f.list=!!(c.createElement("datalist")&&z.HTMLDataListElement);
+}return f;})("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));}for(var u in l){if(w(l,u)){r=u.toLowerCase();
+v[r]=l[u]();e.push((v[r]?"":"no-")+r);}}v.input||A();v.addTest=function(M,N){if(typeof M=="object"){for(var L in M){if(w(M,L)){v.addTest(L,M[L]);}}}else{M=M.toLowerCase();
+if(v[M]!==g){return v;}N=typeof N=="function"?N():N;if(x){K.className+=" "+(N?"":"no-")+M;}v[M]=N;}return v;};C("");G=J=null;(function(U,W){var O=U.html5||{};
+var R=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i;var M=/^<|^(?: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;
+var aa;var S="_html5shiv";var L=0;var Y={};var P;(function(){try{var ad=W.createElement("a");ad.innerHTML="<xyz></xyz>";aa=("hidden" in ad);P=ad.childNodes.length==1||(function(){(W.createElement)("a");
+var af=W.createDocumentFragment();return(typeof af.cloneNode=="undefined"||typeof af.createDocumentFragment=="undefined"||typeof af.createElement=="undefined");
+}());}catch(ae){aa=true;P=true;}}());function Q(ad,af){var ag=ad.createElement("p"),ae=ad.getElementsByTagName("head")[0]||ad.documentElement;ag.innerHTML="x<style>"+af+"</style>";
+return ae.insertBefore(ag.lastChild,ae.firstChild);}function V(){var ad=T.elements;return typeof ad=="string"?ad.split(" "):ad;}function Z(ad){var ae=Y[ad[S]];
+if(!ae){ae={};L++;ad[S]=L;Y[L]=ae;}return ae;}function X(ag,ad,af){if(!ad){ad=W;}if(P){return ad.createElement(ag);}if(!af){af=Z(ad);}var ae;if(af.cache[ag]){ae=af.cache[ag].cloneNode();
+}else{if(M.test(ag)){ae=(af.cache[ag]=af.createElem(ag)).cloneNode();}else{ae=af.createElem(ag);}}return ae.canHaveChildren&&!R.test(ag)?af.frag.appendChild(ae):ae;
+}function ab(af,ah){if(!af){af=W;}if(P){return af.createDocumentFragment();}ah=ah||Z(af);var ai=ah.frag.cloneNode(),ag=0,ae=V(),ad=ae.length;for(;ag<ad;
+ag++){ai.createElement(ae[ag]);}return ai;}function ac(ad,ae){if(!ae.cache){ae.cache={};ae.createElem=ad.createElement;ae.createFrag=ad.createDocumentFragment;
+ae.frag=ae.createFrag();}ad.createElement=function(af){if(!T.shivMethods){return ae.createElem(af);}return X(af,ad,ae);};ad.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+V().join().replace(/\w+/g,function(af){ae.createElem(af);
+ae.frag.createElement(af);return'c("'+af+'")';})+");return n}")(T,ae.frag);}function N(ad){if(!ad){ad=W;}var ae=Z(ad);if(T.shivCSS&&!aa&&!ae.hasCSS){ae.hasCSS=!!Q(ad,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}");
+}if(!P){ac(ad,ae);}return ad;}var T={elements:O.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:(O.shivCSS!==false),supportsUnknownElements:P,shivMethods:(O.shivMethods!==false),type:"default",shivDocument:N,createElement:X,createDocumentFragment:ab};
+U.html5=T;N(W);}(this,c));v._version=H;v._prefixes=j;v._domPrefixes=I;v._cssomPrefixes=E;v.mq=F;v.testProp=function(L){return y([L]);};v.testAllProps=n;
+v.testStyles=m;K.className=K.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(x?" js "+e.join(" "):"");return v;})(this,this.document);

0 comments on commit e510c89

Please sign in to comment.