Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 

2 righe
7.7 KiB

  1. window.Modernizr=function(O,g,R){function B(o){D.cssText=o}function F(o,i){return typeof o===i}function U(o,i){return!!~(""+o).indexOf(i)}function W(o,i){for(var u in o){var e=o[u];if(!U(e,"-")&&D[e]!==R)return i=="pfx"?e:!0}return!1}function M(o,i,u){for(var e in o){var n=i[o[e]];if(n!==R)return u===!1?o[e]:F(n,"function")?n.bind(u||i):n}return!1}function K(o,i,u){var e=o.charAt(0).toUpperCase()+o.slice(1),n=(o+" "+G.join(e+" ")+e).split(" ");return F(i,"string")||F(i,"undefined")?W(n,i):(n=(o+" "+I.join(e+" ")+e).split(" "),M(n,i,u))}var Q="2.6.2",y={},T=g.documentElement,z="modernizr",$=g.createElement(z),D=$.style,L="Webkit Moz O ms",G=L.split(" "),I=L.toLowerCase().split(" "),P={},N=[],_=N.slice,q,H={}.hasOwnProperty,A;!F(H,"undefined")&&!F(H.call,"undefined")?A=function(o,i){return H.call(o,i)}:A=function(o,i){return i in o&&F(o.constructor.prototype[i],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(o){var i=this;if(typeof i!="function")throw new TypeError;var u=_.call(arguments,1),e=function(){if(this instanceof e){var n=function(){};n.prototype=i.prototype;var h=new n,x=i.apply(h,u.concat(_.call(arguments)));return Object(x)===x?x:h}return i.apply(o,u.concat(_.call(arguments)))};return e}),P.csstransitions=function(){return K("transition")};for(var S in P)A(P,S)&&(q=S.toLowerCase(),y[q]=P[S](),N.push((y[q]?"":"no-")+q));return y.addTest=function(o,i){if(typeof o=="object")for(var u in o)A(o,u)&&y.addTest(u,o[u]);else{if(o=o.toLowerCase(),y[o]!==R)return y;i=typeof i=="function"?i():i,T.className+=" "+(i?"":"no-")+o,y[o]=i}return y},B(""),$=null,function(o,i){function u(t,r){var s=t.createElement("p"),E=t.getElementsByTagName("head")[0]||t.documentElement;return s.innerHTML="x<style>"+r+"</style>",E.insertBefore(s.lastChild,E.firstChild)}function e(){var t=j.elements;return typeof t=="string"?t.split(" "):t}function n(t){var r=l[t[C]];return r||(r={},m++,t[C]=m,l[m]=r),r}function h(t,r,s){if(r||(r=i),d)return r.createElement(t);s||(s=n(r));var E;return s.cache[t]?E=s.cache[t].cloneNode():c.test(t)?E=(s.cache[t]=s.createElem(t)).cloneNode():E=s.createElem(t),E.canHaveChildren&&!f.test(t)?s.frag.appendChild(E):E}function x(t,r){if(t||(t=i),d)return t.createDocumentFragment();r=r||n(t);for(var s=r.frag.cloneNode(),E=0,k=e(),J=k.length;E<J;E++)s.createElement(k[E]);return s}function w(t,r){r.cache||(r.cache={},r.createElem=t.createElement,r.createFrag=t.createDocumentFragment,r.frag=r.createFrag()),t.createElement=function(s){return j.shivMethods?h(s,t,r):r.createElem(s)},t.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+e().join().replace(/\w+/g,function(s){return r.createElem(s),r.frag.createElement(s),'c("'+s+'")'})+");return n}")(j,r.frag)}function v(t){t||(t=i);var r=n(t);return j.shivCSS&&!a&&!r.hasCSS&&(r.hasCSS=!!u(t,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")),d||w(t,r),t}var p=o.html5||{},f=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,c=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,a,C="_html5shiv",m=0,l={},d;(function(){try{var t=i.createElement("a");t.innerHTML="<xyz></xyz>",a="hidden"in t,d=t.childNodes.length==1||function(){i.createElement("a");var r=i.createDocumentFragment();return typeof r.cloneNode>"u"||typeof r.createDocumentFragment>"u"||typeof r.createElement>"u"}()}catch{a=!0,d=!0}})();var j={elements:p.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:p.shivCSS!==!1,supportsUnknownElements:d,shivMethods:p.shivMethods!==!1,type:"default",shivDocument:v,createElement:h,createDocumentFragment:x};o.html5=j,v(i)}(this,g),y._version=Q,y._domPrefixes=I,y._cssomPrefixes=G,y.testProp=function(o){return W([o])},y.testAllProps=K,T.className=T.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(" js "+N.join(" ")),y}(globalThis,globalThis.document),function(O,g,R){function B(e){return $.call(e)=="[object Function]"}function F(e){return typeof e=="string"}function U(){}function W(e){return!e||e=="loaded"||e=="complete"||e=="uninitialized"}function M(){var e=D.shift();L=1,e?e.t?T(function(){(e.t=="c"?u.injectCss:u.injectJs)(e.s,0,e.a,e.x,e.e,1)},0):(e(),M()):L=0}function K(e,n,h,x,w,v,c){function f(d){if(!C&&W(a.readyState)&&(l.r=C=1,!L&&M(),a.onload=a.onreadystatechange=null,d)){e!="img"&&T(function(){P.removeChild(a)},50);for(var j in S[n])S[n].hasOwnProperty(j)&&S[n][j].onload()}}var c=c||u.errorTimeout,a=g.createElement(e),C=0,m=0,l={t:h,s:n,e:w,a:v,x:c};S[n]===1&&(m=1,S[n]=[]),e=="object"?a.data=n:(a.src=n,a.type=e),a.width=a.height="0",a.onerror=a.onload=a.onreadystatechange=function(){f.call(this,m)},D.splice(x,0,l),e!="img"&&(m||S[n]===2?(P.insertBefore(a,I?null:z),T(f,c)):S[n].push(a))}function Q(e,n,h,x,w){return L=0,n=n||"j",F(e)?K(n=="c"?q:_,e,n,this.i++,h,x,w):(D.splice(this.i++,0,e),D.length==1&&M()),this}function y(){var e=u;return e.loader={load:Q,i:0},e}var N=g.documentElement,T=O.setTimeout,z=g.getElementsByTagName("script")[0],$={}.toString,D=[],L=0,G="MozAppearance"in N.style,I=G&&!!g.createRange().compareNode,P=I?N:z.parentNode,N=O.opera&&$.call(O.opera)=="[object Opera]",N=!!g.attachEvent&&!N,_=G?"object":N?"script":"img",q=N?"script":_,H=Array.isArray||function(e){return $.call(e)=="[object Array]"},A=[],S={},o={timeout:function(e,n){return n.length&&(e.timeout=n[0]),e}},i,u;u=function(e){function n(c){var c=c.split("!"),a=A.length,m=c.pop(),C=c.length,m={url:m,origUrl:m,prefixes:c},l,d,j;for(d=0;d<C;d++)j=c[d].split("="),(l=o[j.shift()])&&(m=l(m,j));for(d=0;d<a;d++)m=A[d](m);return m}function h(f,c,a,C,m){var l=n(f),d=l.autoCallback;l.url.split(".").pop().split("?").shift(),l.bypass||(c&&(c=B(c)?c:c[f]||c[C]||c[f.split("/").pop().split("?")[0]]),l.instead?l.instead(f,c,a,C,m):(S[l.url]?l.noexec=!0:S[l.url]=1,a.load(l.url,l.forceCSS||!l.forceJS&&l.url.split(".").pop().split("?").shift()=="css"?"c":R,l.noexec,l.attrs,l.timeout),(B(c)||B(d))&&a.load(function(){y(),c&&c(l.origUrl,m,C),d&&d(l.origUrl,m,C),S[l.url]=2})))}function x(f,c){function a(s,E){if(s){if(F(s))E||(l=function(){var k=[].slice.call(arguments);d.apply(this,k),j()}),h(s,l,c,0,C);else if(Object(s)===s)for(r in t=function(){var k=0,J;for(J in s)s.hasOwnProperty(J)&&k++;return k}(),s)s.hasOwnProperty(r)&&(!E&&!--t&&(B(l)?l=function(){var k=[].slice.call(arguments);d.apply(this,k),j()}:l[r]=function(k){return function(){var J=[].slice.call(arguments);k&&k.apply(this,J),j()}}(d[r])),h(s[r],l,c,r,C))}else!E&&j()}var C=!!f.test,m=f.load||f.both,l=f.callback||U,d=l,j=f.complete||U,t,r;a(C?f.yep:f.nope,!!m),m&&a(m)}var w,v,p=this.yepnope.loader;if(F(e))h(e,0,p,0);else if(H(e))for(w=0;w<e.length;w++)v=e[w],F(v)?h(v,0,p,0):H(v)?u(v):Object(v)===v&&x(v,p);else Object(e)===e&&x(e,p)},u.addPrefix=function(e,n){o[e]=n},u.addFilter=function(e){A.push(e)},u.errorTimeout=1e4,g.readyState==null&&g.addEventListener&&(g.readyState="loading",g.addEventListener("DOMContentLoaded",i=function(){g.removeEventListener("DOMContentLoaded",i,0),g.readyState="complete"},0)),O.yepnope=y(),O.yepnope.executeStack=M,O.yepnope.injectJs=function(e,n,h,a,w,v){var p=g.createElement("script"),f,c,a=a||u.errorTimeout;p.src=e;for(c in h)p.setAttribute(c,h[c]);n=v?M:n||U,p.onreadystatechange=p.onload=function(){!f&&W(p.readyState)&&(f=1,n(),p.onload=p.onreadystatechange=null)},T(function(){f||(f=1,n(1))},a),w?p.onload():z.parentNode.insertBefore(p,z)},O.yepnope.injectCss=function(e,c,h,p,w,v){var p=g.createElement("link"),f,c=v?M:c||U;p.href=e,p.rel="stylesheet",p.type="text/css";for(f in h)p.setAttribute(f,h[f]);w||(z.parentNode.insertBefore(p,z),T(c,0))}}(globalThis,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};