Last active
December 14, 2015 16:08
-
-
Save stucox/5112685 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.Modernizr=function(e,t,n){function r(e){b.cssText=e}function o(e,t){return r(M.join(e+";")+(t||""))}function i(e,t){return typeof e===t}function a(e,t){return!!~(""+e).indexOf(t)}function d(e,t){for(var r in e){var o=e[r] | |
if(!a(o,"-")&&b[o]!==n)return"pfx"==t?o:!0}return!1}function s(e,t,r){for(var o in e){var a=t[e[o]] | |
if(a!==n)return r===!1?e[o]:i(a,"function")?a.bind(r||t):a}return!1}function c(e,t,n){var r=e.charAt(0).toUpperCase()+e.slice(1),o=(e+" "+T.join(r+" ")+r).split(" ") | |
return i(t,"string")||i(t,"undefined")?d(o,t):(o=(e+" "+x.join(r+" ")+r).split(" "),s(o,t,n))}function l(){f.input=function(n){for(var r=0,o=n.length;o>r;r++)B[n[r]]=!!(n[r]in y) | |
return B.list&&(B.list=!(!t.createElement("datalist")||!e.HTMLDataListElement)),B}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),f.inputtypes=function(e){for(var r,o,i,a=0,d=e.length;d>a;a++)y.setAttribute("type",o=e[a]),r="text"!==y.type,r&&(y.value=w,y.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(o)&&y.style.WebkitAppearance!==n?(g.appendChild(y),i=t.defaultView,r=i.getComputedStyle&&"textfield"!==i.getComputedStyle(y,null).WebkitAppearance&&0!==y.offsetHeight,g.removeChild(y)):/^(search|tel)$/.test(o)||(r=/^(url|email)$/.test(o)?y.checkValidity&&y.checkValidity()===!1:y.value!=w)),C[e[a]]=!!r | |
return C}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var u,m,p="2.6.2",f={},h=!0,g=t.documentElement,A="modernizr",v=t.createElement(A),b=v.style,y=t.createElement("input"),w=":)",E={}.toString,M=" -webkit- -moz- -o- -ms- ".split(" "),z="Webkit Moz O ms",T=z.split(" "),x=z.toLowerCase().split(" "),S={svg:"http://www.w3.org/2000/svg"},k={},C={},B={},Q=[],j=Q.slice,R=function(e,n,r,o){var i,a,d,s,c=t.createElement("div"),l=t.body,u=l||t.createElement("body") | |
if(parseInt(r,10))for(;r--;)d=t.createElement("div"),d.id=o?o[r]:A+(r+1),c.appendChild(d) | |
return i=["­",'<style id="s',A,'">',e,"</style>"].join(""),c.id=A,(l?c:u).innerHTML+=i,u.appendChild(c),l||(u.style.background="",u.style.overflow="hidden",s=g.style.overflow,g.style.overflow="hidden",g.appendChild(u)),a=n(c,e),l?c.parentNode.removeChild(c):(u.parentNode.removeChild(u),g.style.overflow=s),!!a},P=function(t){var n=e.matchMedia||e.msMatchMedia | |
if(n)return n(t).matches | |
var r | |
return R("@media "+t+" { #"+A+" { position: absolute; } }",function(t){r="absolute"==(e.getComputedStyle?getComputedStyle(t,null):t.currentStyle).position}),r},L=function(){function e(e,o){o=o||t.createElement(r[e]||"div"),e="on"+e | |
var a=e in o | |
return a||(o.setAttribute||(o=t.createElement("div")),o.setAttribute&&o.removeAttribute&&(o.setAttribute(e,""),a=i(o[e],"function"),i(o[e],"undefined")||(o[e]=n),o.removeAttribute(e))),o=null,a}var r={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"} | |
return e}(),N={}.hasOwnProperty | |
m=i(N,"undefined")||i(N.call,"undefined")?function(e,t){return t in e&&i(e.constructor.prototype[t],"undefined")}:function(e,t){return N.call(e,t)},Function.prototype.bind||(Function.prototype.bind=function(e){var t=this | |
if("function"!=typeof t)throw new TypeError | |
var n=j.call(arguments,1),r=function(){if(this instanceof r){var o=function(){} | |
o.prototype=t.prototype | |
var i=new o,a=t.apply(i,n.concat(j.call(arguments))) | |
return Object(a)===a?a:i}return t.apply(e,n.concat(j.call(arguments)))} | |
return r}),k.flexbox=function(){return c("flexWrap")},k.flexboxlegacy=function(){return c("boxDirection")},k.canvas=function(){var e=t.createElement("canvas") | |
return!(!e.getContext||!e.getContext("2d"))},k.canvastext=function(){return!(!f.canvas||!i(t.createElement("canvas").getContext("2d").fillText,"function"))},k.webgl=function(){return!!e.WebGLRenderingContext},k.touch=function(){var n | |
return"ontouchstart"in e||e.DocumentTouch&&t instanceof DocumentTouch?n=!0:R(["@media (",M.join("touch-enabled),("),A,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(e){n=9===e.offsetTop}),n},k.geolocation=function(){return"geolocation"in navigator},k.postmessage=function(){return!!e.postMessage},k.websqldatabase=function(){return!!e.openDatabase},k.indexedDB=function(){return!!c("indexedDB",e)},k.hashchange=function(){return L("hashchange",e)&&(t.documentMode===n||t.documentMode>7)},k.history=function(){return!(!e.history||!history.pushState)},k.draganddrop=function(){var e=t.createElement("div") | |
return"draggable"in e||"ondragstart"in e&&"ondrop"in e},k.websockets=function(){return"WebSocket"in e||"MozWebSocket"in e},k.rgba=function(){return r("background-color:rgba(150,255,150,.5)"),a(b.backgroundColor,"rgba")},k.hsla=function(){return r("background-color:hsla(120,40%,100%,.5)"),a(b.backgroundColor,"rgba")||a(b.backgroundColor,"hsla")},k.multiplebgs=function(){return r("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(b.background)},k.backgroundsize=function(){return c("backgroundSize")},k.borderimage=function(){return c("borderImage")},k.borderradius=function(){return c("borderRadius")},k.boxshadow=function(){return c("boxShadow")},k.textshadow=function(){return""===t.createElement("div").style.textShadow},k.opacity=function(){return o("opacity:.55"),/^0.55$/.test(b.opacity)},k.cssanimations=function(){return c("animationName")},k.csscolumns=function(){return c("columnCount")},k.cssgradients=function(){var e="background-image:",t="gradient(linear,left top,right bottom,from(#9f9),to(white));",n="linear-gradient(left top,#9f9, white);" | |
return r((e+"-webkit- ".split(" ").join(t+e)+M.join(n+e)).slice(0,-e.length)),a(b.backgroundImage,"gradient")},k.cssreflections=function(){return c("boxReflect")},k.csstransforms=function(){return!!c("transform")},k.csstransforms3d=function(){var e=!!c("perspective") | |
return e&&"webkitPerspective"in g.style&&R("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(t){e=9===t.offsetLeft&&3===t.offsetHeight}),e},k.csstransitions=function(){return c("transition")},k.fontface=function(){var e | |
return R('@font-face {font-family:"font";src:url("https://")}',function(n,r){var o=t.getElementById("smodernizr"),i=o.sheet||o.styleSheet,a=i?i.cssRules&&i.cssRules[0]?i.cssRules[0].cssText:i.cssText||"":"" | |
e=/src/i.test(a)&&0===a.indexOf(r.split(" ")[0])}),e},k.generatedcontent=function(){var e | |
return R(["#",A,"{font:0/0 a}#",A,':after{content:"',w,'";visibility:hidden;font:3px/1 a}'].join(""),function(t){e=t.offsetHeight>=3}),e},k.video=function(){var e=t.createElement("video"),n=!1 | |
try{(n=!!e.canPlayType)&&(n=new Boolean(n),n.ogg=e.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),n.h264=e.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),n.webm=e.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(r){}return n},k.audio=function(){var e=t.createElement("audio"),n=!1 | |
try{(n=!!e.canPlayType)&&(n=new Boolean(n),n.ogg=e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),n.mp3=e.canPlayType("audio/mpeg;").replace(/^no$/,""),n.wav=e.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),n.m4a=(e.canPlayType("audio/x-m4a;")||e.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(r){}return n},k.localstorage=function(){try{return localStorage.setItem(A,A),localStorage.removeItem(A),!0}catch(e){return!1}},k.sessionstorage=function(){try{return sessionStorage.setItem(A,A),sessionStorage.removeItem(A),!0}catch(e){return!1}},k.webworkers=function(){return!!e.Worker},k.applicationcache=function(){return!!e.applicationCache},k.svg=function(){return!!t.createElementNS&&!!t.createElementNS(S.svg,"svg").createSVGRect},k.inlinesvg=function(){var e=t.createElement("div") | |
return e.innerHTML="<svg/>",(e.firstChild&&e.firstChild.namespaceURI)==S.svg},k.smil=function(){return!!t.createElementNS&&/SVGAnimate/.test(E.call(t.createElementNS(S.svg,"animate")))},k.svgclippaths=function(){return!!t.createElementNS&&/SVGClipPath/.test(E.call(t.createElementNS(S.svg,"clipPath")))} | |
for(var I in k)m(k,I)&&(u=I.toLowerCase(),f[u]=k[I](),Q.push((f[u]?"":"no-")+u)) | |
return f.input||l(),f.addTest=function(e,t){if("object"==typeof e)for(var r in e)m(e,r)&&f.addTest(r,e[r]) | |
else{if(e=e.toLowerCase(),f[e]!==n)return f | |
t="function"==typeof t?t():t,h!==n&&h&&(g.className+=" "+(t?"":"no-")+e),f[e]=t}return f},r(""),v=y=null,f._version=p,f._prefixes=M,f._domPrefixes=x,f._cssomPrefixes=T,f.mq=P,f.hasEvent=L,f.testProp=function(e){return d([e])},f.testAllProps=c,f.testStyles=R,f.prefixed=function(e,t,n){return t?c(e,t,n):c(e,"pfx")},g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(h?" js "+Q.join(" "):""),f}(this,this.document),function(e,t){function n(e,t){var n=e.createElement("p"),r=e.getElementsByTagName("head")[0]||e.documentElement | |
return n.innerHTML="x<style>"+t+"</style>",r.insertBefore(n.lastChild,r.firstChild)}function r(){var e=E.elements | |
return"string"==typeof e?e.split(" "):e}function o(e){var t=w[e[b]] | |
return t||(t={},y++,e[b]=y,w[y]=t),t}function i(e,n,r){if(n||(n=t),h)return n.createElement(e) | |
r||(r=o(n)) | |
var i | |
return i=r.cache[e]?r.cache[e].cloneNode():v.test(e)?(r.cache[e]=r.createElem(e)).cloneNode():r.createElem(e),i.canHaveChildren&&!A.test(e)?r.frag.appendChild(i):i}function a(e,n){if(e||(e=t),h)return e.createDocumentFragment() | |
n=n||o(e) | |
for(var i=n.frag.cloneNode(),a=0,d=r(),s=d.length;s>a;a++)i.createElement(d[a]) | |
return i}function d(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return E.shivMethods?i(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+r().join().replace(/\w+/g,function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'})+");return n}")(E,t.frag)}function s(e){e||(e=t) | |
var r=o(e) | |
return!E.shivCSS||f||r.hasCSS||(r.hasCSS=!!n(e,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")),h||d(e,r),e}function c(e){for(var t,n=e.getElementsByTagName("*"),o=n.length,i=RegExp("^(?:"+r().join("|")+")$","i"),a=[];o--;)t=n[o],i.test(t.nodeName)&&a.push(t.applyElement(l(t))) | |
return a}function l(e){for(var t,n=e.attributes,r=n.length,o=e.ownerDocument.createElement(z+":"+e.nodeName);r--;)t=n[r],t.specified&&o.setAttribute(t.nodeName,t.nodeValue) | |
return o.style.cssText=e.style.cssText,o}function u(e){for(var t,n=e.split("{"),o=n.length,i=RegExp("(^|[\\s,>+~])("+r().join("|")+")(?=[[\\s,>+~#.:]|$)","gi"),a="$1"+z+"\\:$2";o--;)t=n[o]=n[o].split("}"),t[t.length-1]=t[t.length-1].replace(i,a),n[o]=t.join("}") | |
return n.join("{")}function m(e){for(var t=e.length;t--;)e[t].removeNode()}function p(e){function t(){clearTimeout(a._removeSheetTimer),r&&r.removeNode(!0),r=null}var r,i,a=o(e),d=e.namespaces,s=e.parentWindow | |
return!T||e.printShived?e:(d[z]===void 0&&d.add(z),s.attachEvent("onbeforeprint",function(){t() | |
for(var o,a,d,s=e.styleSheets,l=[],m=s.length,p=Array(m);m--;)p[m]=s[m] | |
for(;d=p.pop();)if(!d.disabled&&M.test(d.media)){try{o=d.imports,a=o.length}catch(f){a=0}for(m=0;a>m;m++)p.push(o[m]) | |
try{l.push(d.cssText)}catch(f){}}l=u(l.reverse().join("")),i=c(e),r=n(e,l)}),s.attachEvent("onafterprint",function(){m(i),clearTimeout(a._removeSheetTimer),a._removeSheetTimer=setTimeout(t,500)}),e.printShived=!0,e)}var f,h,g=e.html5||{},A=/^<|^(?: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,b="_html5shiv",y=0,w={};(function(){try{var e=t.createElement("a") | |
e.innerHTML="<xyz></xyz>",f="hidden"in e,h=1==e.childNodes.length||function(){t.createElement("a") | |
var e=t.createDocumentFragment() | |
return e.cloneNode===void 0||e.createDocumentFragment===void 0||e.createElement===void 0}()}catch(n){f=!0,h=!0}})() | |
var E={elements:g.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:g.shivCSS!==!1,supportsUnknownElements:h,shivMethods:g.shivMethods!==!1,type:"default",shivDocument:s,createElement:i,createDocumentFragment:a} | |
e.html5=E,s(t) | |
var M=/^$|\b(?:all|print)\b/,z="html5shiv",T=!h&&function(){var n=t.documentElement | |
return!(t.namespaces===void 0||t.parentWindow===void 0||n.applyElement===void 0||n.removeNode===void 0||e.attachEvent===void 0)}() | |
E.type+=" print",E.shivPrint=p,p(t)}(this,document),function(e,t,n){function r(e){return"[object Function]"==g.call(e)}function o(e){return"string"==typeof e}function i(){}function a(e){return!e||"loaded"==e||"complete"==e||"uninitialized"==e}function d(){var e=A.shift() | |
v=1,e?e.t?f(function(){("c"==e.t?m.injectCss:m.injectJs)(e.s,0,e.a,e.x,e.e,1)},0):(e(),d()):v=0}function s(e,n,r,o,i,s,c){function l(t){if(!p&&a(u.readyState)&&(b.r=p=1,!v&&d(),u.onload=u.onreadystatechange=null,t)){"img"!=e&&f(function(){w.removeChild(u)},50) | |
for(var r in x[n])x[n].hasOwnProperty(r)&&x[n][r].onload()}}var c=c||m.errorTimeout,u=t.createElement(e),p=0,g=0,b={t:r,s:n,e:i,a:s,x:c} | |
1===x[n]&&(g=1,x[n]=[]),"object"==e?u.data=n:(u.src=n,u.type=e),u.width=u.height="0",u.onerror=u.onload=u.onreadystatechange=function(){l.call(this,g)},A.splice(o,0,b),"img"!=e&&(g||2===x[n]?(w.insertBefore(u,y?null:h),f(l,c)):x[n].push(u))}function c(e,t,n,r,i){return v=0,t=t||"j",o(e)?s("c"==t?M:E,e,t,this.i++,n,r,i):(A.splice(this.i++,0,e),1==A.length&&d()),this}function l(){var e=m | |
return e.loader={load:c,i:0},e}var u,m,p=t.documentElement,f=e.setTimeout,h=t.getElementsByTagName("script")[0],g={}.toString,A=[],v=0,b="MozAppearance"in p.style,y=b&&!!t.createRange().compareNode,w=y?p:h.parentNode,p=e.opera&&"[object Opera]"==g.call(e.opera),p=!!t.attachEvent&&!p,E=b?"object":p?"script":"img",M=p?"script":E,z=Array.isArray||function(e){return"[object Array]"==g.call(e)},T=[],x={},S={timeout:function(e,t){return t.length&&(e.timeout=t[0]),e}} | |
m=function(e){function t(e){var t,n,r,e=e.split("!"),o=T.length,i=e.pop(),a=e.length,i={url:i,origUrl:i,prefixes:e} | |
for(n=0;a>n;n++)r=e[n].split("="),(t=S[r.shift()])&&(i=t(i,r)) | |
for(n=0;o>n;n++)i=T[n](i) | |
return i}function a(e,o,i,a,d){var s=t(e),c=s.autoCallback | |
s.url.split(".").pop().split("?").shift(),s.bypass||(o&&(o=r(o)?o:o[e]||o[a]||o[e.split("/").pop().split("?")[0]]),s.instead?s.instead(e,o,i,a,d):(x[s.url]?s.noexec=!0:x[s.url]=1,i.load(s.url,s.forceCSS||!s.forceJS&&"css"==s.url.split(".").pop().split("?").shift()?"c":n,s.noexec,s.attrs,s.timeout),(r(o)||r(c))&&i.load(function(){l(),o&&o(s.origUrl,d,a),c&&c(s.origUrl,d,a),x[s.url]=2})))}function d(e,t){function n(e,n){if(e){if(o(e))n||(u=function(){var e=[].slice.call(arguments) | |
m.apply(this,e),p()}),a(e,u,t,0,c) | |
else if(Object(e)===e)for(s in d=function(){var t,n=0 | |
for(t in e)e.hasOwnProperty(t)&&n++ | |
return n}(),e)e.hasOwnProperty(s)&&(!n&&!--d&&(r(u)?u=function(){var e=[].slice.call(arguments) | |
m.apply(this,e),p()}:u[s]=function(e){return function(){var t=[].slice.call(arguments) | |
e&&e.apply(this,t),p()}}(m[s])),a(e[s],u,t,s,c))}else!n&&p()}var d,s,c=!!e.test,l=e.load||e.both,u=e.callback||i,m=u,p=e.complete||i | |
n(c?e.yep:e.nope,!!l),l&&n(l)}var s,c,u=this.yepnope.loader | |
if(o(e))a(e,0,u,0) | |
else if(z(e))for(s=0;e.length>s;s++)c=e[s],o(c)?a(c,0,u,0):z(c)?m(c):Object(c)===c&&d(c,u) | |
else Object(e)===e&&d(e,u)},m.addPrefix=function(e,t){S[e]=t},m.addFilter=function(e){T.push(e)},m.errorTimeout=1e4,null==t.readyState&&t.addEventListener&&(t.readyState="loading",t.addEventListener("DOMContentLoaded",u=function(){t.removeEventListener("DOMContentLoaded",u,0),t.readyState="complete"},0)),e.yepnope=l(),e.yepnope.executeStack=d,e.yepnope.injectJs=function(e,n,r,o,s,c){var l,u,p=t.createElement("script"),o=o||m.errorTimeout | |
p.src=e | |
for(u in r)p.setAttribute(u,r[u]) | |
n=c?d:n||i,p.onreadystatechange=p.onload=function(){!l&&a(p.readyState)&&(l=1,n(),p.onload=p.onreadystatechange=null)},f(function(){l||(l=1,n(1))},o),s?p.onload():h.parentNode.insertBefore(p,h)},e.yepnope.injectCss=function(e,n,r,o,a,s){var c,o=t.createElement("link"),n=s?d:n||i | |
o.href=e,o.rel="stylesheet",o.type="text/css" | |
for(c in r)o.setAttribute(c,r[c]) | |
a||(h.parentNode.insertBefore(o,h),f(n,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))},Modernizr.addTest("adownload","download"in document.createElement("a")),Modernizr.addTest("audiodata",!!window.Audio),Modernizr.addTest("blobconstructor",function(){try{return!!new Blob}catch(e){return!1}}),Modernizr.addTest("webaudio",!(!window.webkitAudioContext&&!window.AudioContext)),Modernizr.addTest("lowbattery",function(){var e=.2,t=Modernizr.prefixed("battery",navigator) | |
return!!(t&&!t.charging&&e>=t.level)}),Modernizr.addTest("battery",!!Modernizr.prefixed("battery",navigator)),function(){if(!Modernizr.canvas)return!1 | |
var e=new Image,t=document.createElement("canvas"),n=t.getContext("2d") | |
e.onload=function(){n.drawImage(e,0,0),Modernizr.addTest("todataurljpeg",function(){return 0===t.toDataURL("image/jpeg").indexOf("data:image/jpeg")}),Modernizr.addTest("todataurlwebp",function(){return 0===t.toDataURL("image/webp").indexOf("data:image/webp")})},e.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAACklEQVR4nGMAAQAABQABDQottAAAAABJRU5ErkJggg=="}(),Modernizr.addTest("contenteditable","contentEditable"in document.documentElement),Modernizr.addTest("contentsecuritypolicy","SecurityPolicy"in document),Modernizr.addTest("contextmenu","contextMenu"in document.documentElement&&"HTMLMenuItemElement"in window),Modernizr.addTest("cookies",function(){if(navigator.cookieEnabled)return!0 | |
document.cookie="cookietest=1" | |
var e=-1!=document.cookie.indexOf("cookietest=") | |
return document.cookie="cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT",e}),Modernizr.addTest("cors",!!(window.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest)),function(){var e=document.createElement("a"),t=e.style,n="right 10px bottom 10px" | |
Modernizr.addTest("bgpositionshorthand",function(){return t.cssText="background-position: "+n+";",t.backgroundPosition===n})}(),Modernizr.addTest("bgpositionxy",function(){return Modernizr.testStyles("#modernizr {background-position: 3px 5px;}",function(e){var t=window.getComputedStyle?getComputedStyle(e,null):e.currentStyle,n="3px"==t.backgroundPositionX||"3px"==t["background-position-x"],r="5px"==t.backgroundPositionY||"5px"==t["background-position-y"] | |
return n&&r})}),function(){function e(e){return window.getComputedStyle?getComputedStyle(e,null).getPropertyValue("background"):e.currentStyle.background}Modernizr.testStyles(" #modernizr { background-repeat: round; } ",function(t){Modernizr.addTest("bgrepeatround","round"==e(t))}),Modernizr.testStyles(" #modernizr { background-repeat: space; } ",function(t){Modernizr.addTest("bgrepeatspace","space"==e(t))})}(),Modernizr.testStyles("#modernizr{background-size:cover}",function(e){var t=window.getComputedStyle?window.getComputedStyle(e,null):e.currentStyle | |
Modernizr.addTest("bgsizecover","cover"==t.backgroundSize)}),Modernizr.addTest("boxsizing",function(){return Modernizr.testAllProps("boxSizing")&&(void 0===document.documentMode||document.documentMode>7)}),Modernizr.addTest("csscalc",function(){var e="width:",t="calc(10px);",n=document.createElement("div") | |
return n.style.cssText=e+Modernizr._prefixes.join(t+e),!!n.style.length}),Modernizr.addTest("cubicbezierrange",function(){var e=document.createElement("div") | |
return e.style.cssText=Modernizr._prefixes.join("transition-timing-function:cubic-bezier(1,0,0,1.1); "),!!e.style.length}),Modernizr.testStyles(" #modernizr { display: run-in; } ",function(e){var t=window.getComputedStyle?getComputedStyle(e,null).getPropertyValue("display"):e.currentStyle.display | |
Modernizr.addTest("display-runin","run-in"==t)}),Modernizr.addTest("display-table",function(){var e,t=window.document,n=t.documentElement,r=t.createElement("div"),o=t.createElement("div"),i=t.createElement("div") | |
return r.style.cssText="display: table",o.style.cssText=i.style.cssText="display: table-cell; padding: 10px",r.appendChild(o),r.appendChild(i),n.insertBefore(r,n.firstChild),e=o.offsetLeft<i.offsetLeft,n.removeChild(r),e}),Modernizr.addTest("cssfilters",function(){var e=document.createElement("div") | |
return e.style.cssText=Modernizr._prefixes.join("filter:blur(2px); "),!!e.style.length&&(void 0===document.documentMode||document.documentMode>9)}),function(){function e(){try{var e=document.createElement("div"),t=document.createElement("span"),n=e.style,r=0,o=0,i=!1,a=document.body.firstElementChild||document.body.firstChild | |
return e.appendChild(t),t.innerHTML="Bacon ipsum dolor sit amet jerky velit in culpa hamburger et. Laborum dolor proident, enim dolore duis commodo et strip steak. Salami anim et, veniam consectetur dolore qui tenderloin jowl velit sirloin. Et ad culpa, fatback cillum jowl ball tip ham hock nulla short ribs pariatur aute. Pig pancetta ham bresaola, ut boudin nostrud commodo flank esse cow tongue culpa. Pork belly bresaola enim pig, ea consectetur nisi. Fugiat officia turkey, ea cow jowl pariatur ullamco proident do laborum velit sausage. Magna biltong sint tri-tip commodo sed bacon, esse proident aliquip. Ullamco ham sint fugiat, velit in enim sed mollit nulla cow ut adipisicing nostrud consectetur. Proident dolore beef ribs, laborum nostrud meatball ea laboris rump cupidatat labore culpa. Shankle minim beef, velit sint cupidatat fugiat tenderloin pig et ball tip. Ut cow fatback salami, bacon ball tip et in shank strip steak bresaola. In ut pork belly sed mollit tri-tip magna culpa veniam, short ribs qui in andouille ham consequat. Dolore bacon t-bone, velit short ribs enim strip steak nulla. Voluptate labore ut, biltong swine irure jerky. Cupidatat excepteur aliquip salami dolore. Ball tip strip steak in pork dolor. Ad in esse biltong. Dolore tenderloin exercitation ad pork loin t-bone, dolore in chicken ball tip qui pig. Ut culpa tongue, sint ribeye dolore ex shank voluptate hamburger. Jowl et tempor, boudin pork chop labore ham hock drumstick consectetur tri-tip elit swine meatball chicken ground round. Proident shankle mollit dolore. Shoulder ut duis t-bone quis reprehenderit. Meatloaf dolore minim strip steak, laboris ea aute bacon beef ribs elit shank in veniam drumstick qui. Ex laboris meatball cow tongue pork belly. Ea ball tip reprehenderit pig, sed fatback boudin dolore flank aliquip laboris eu quis. Beef ribs duis beef, cow corned beef adipisicing commodo nisi deserunt exercitation. Cillum dolor t-bone spare ribs, ham hock est sirloin. Brisket irure meatloaf in, boudin pork belly sirloin ball tip. Sirloin sint irure nisi nostrud aliqua. Nostrud nulla aute, enim officia culpa ham hock. Aliqua reprehenderit dolore sunt nostrud sausage, ea boudin pork loin ut t-bone ham tempor. Tri-tip et pancetta drumstick laborum. Ham hock magna do nostrud in proident. Ex ground round fatback, venison non ribeye in.",document.body.insertBefore(e,a),n.cssText="position:absolute;top:0;left:0;width:5em;text-align:justify;text-justification:newspaper;",r=t.offsetHeight,o=t.offsetWidth,n.cssText="position:absolute;top:0;left:0;width:5em;text-align:justify;text-justification:newspaper;"+Modernizr._prefixes.join("hyphens:auto; "),i=t.offsetHeight!=r||t.offsetWidth!=o,document.body.removeChild(e),e.removeChild(t),i}catch(d){return!1}}function t(e,t){try{var n=document.createElement("div"),r=document.createElement("span"),o=n.style,i=0,a=!1,d=!1,s=!1,c=document.body.firstElementChild||document.body.firstChild | |
return o.cssText="position:absolute;top:0;left:0;overflow:visible;width:1.25em;",n.appendChild(r),document.body.insertBefore(n,c),r.innerHTML="mm",i=r.offsetHeight,r.innerHTML="m"+e+"m",d=r.offsetHeight>i,t?(r.innerHTML="m<br />m",i=r.offsetWidth,r.innerHTML="m"+e+"m",s=r.offsetWidth>i):s=!0,d===!0&&s===!0&&(a=!0),document.body.removeChild(n),n.removeChild(r),a}catch(l){return!1}}function n(e){try{var t,n=document.createElement("input"),r=document.createElement("div"),o="lebowski",i=!1,a=document.body.firstElementChild||document.body.firstChild | |
if(r.innerHTML=o+e+o,document.body.insertBefore(r,a),document.body.insertBefore(n,r),n.setSelectionRange?(n.setSelectionRange(0,0)):n.createTextRange&&(t=n.createTextRange(),t.collapse(!0),t.moveEnd("character",0),t.moveStart("character",0),t.select()),window.find)i=window.find(o+o) | |
else try{t=window.self.document.body.createTextRange(),i=t.findText(o+o)}catch(d){i=!1}return document.body.removeChild(r),document.body.removeChild(n),i}catch(d){return!1}}return document.body?(Modernizr.addTest("csshyphens",function(){if(!Modernizr.testAllProps("hyphens"))return!1 | |
try{return e()}catch(t){return!1}}),Modernizr.addTest("softhyphens",function(){try{return t("­",!0)&&t("​",!1)}catch(e){return!1}}),Modernizr.addTest("softhyphensfind",function(){try{return n("­")&&n("​")}catch(e){return!1}}),void 0):(window.console&&console.warn("document.body doesn't exist. Modernizr hyphens test needs it."),void 0)}(),Modernizr.addTest("lastchild",function(){return Modernizr.testStyles("#modernizr div {width:100px} #modernizr :last-child{width:200px;display:block}",function(e){return e.lastChild.offsetWidth>e.firstChild.offsetWidth},2)}),Modernizr.addTest("cssmask",Modernizr.testAllProps("mask-repeat")),Modernizr.addTest("mediaqueries",Modernizr.mq("only all")),Modernizr.addTest("object-fit",!!Modernizr.prefixed("objectFit")),Modernizr.addTest("overflowscrolling",function(){return Modernizr.testAllProps("overflowScrolling")}),Modernizr.addTest("pointerevents",function(){var e,t=document.createElement("x"),n=document.documentElement,r=window.getComputedStyle | |
return"pointerEvents"in t.style?(t.style.pointerEvents="auto",t.style.pointerEvents="x",n.appendChild(t),e=r&&"auto"===r(t,"").pointerEvents,n.removeChild(t),!!e):!1}),Modernizr.addTest("csspositionsticky",function(){var e="position:",t="sticky",n=document.createElement("modernizr"),r=n.style | |
return r.cssText=e+Modernizr._prefixes.join(t+";"+e).slice(0,-e.length),-1!==r.position.indexOf(t)}),Modernizr.addTest("cssremunit",function(){var e=document.createElement("div") | |
try{e.style.fontSize="3rem"}catch(t){}return/rem/.test(e.style.fontSize)}),Modernizr.addTest("regions",function(){var e=Modernizr.prefixed("flowFrom"),t=Modernizr.prefixed("flowInto") | |
if(!e||!t)return!1 | |
var n=document.createElement("div"),r=document.createElement("div"),o=document.createElement("div"),i="modernizr_flow_for_regions_check" | |
r.innerText="M",n.style.cssText="top: 150px; left: 150px; padding: 0px;",o.style.cssText="width: 50px; height: 50px; padding: 42px;",o.style[e]=i,n.appendChild(r),n.appendChild(o),document.documentElement.appendChild(n) | |
var a,d,s=r.getBoundingClientRect() | |
return r.style[t]=i,a=r.getBoundingClientRect(),d=a.left-s.left,document.documentElement.removeChild(n),r=o=n=void 0,42==d}),Modernizr.addTest("cssresize",Modernizr.testAllProps("resize")),Modernizr.addTest("cssscrollbar",function(){var e,t="#modernizr{overflow: scroll; width: 40px }#"+Modernizr._prefixes.join("scrollbar{width:0px} #modernizr::").split("#").slice(1).join("#")+"scrollbar{width:0px}" | |
return Modernizr.testStyles(t,function(t){e="scrollWidth"in t&&40==t.scrollWidth}),e}),Modernizr.addTest("subpixelfont",function(){var e,t="#modernizr{position: absolute; top: -10em; visibility:hidden; font: normal 10px arial;}#subpixel{float: left; font-size: 33.3333%;}" | |
return Modernizr.testStyles(t,function(t){var n=t.firstChild | |
n.innerHTML="This is a text written in Arial",e=window.getComputedStyle?"44px"!==window.getComputedStyle(n,null).getPropertyValue("width"):!1},1,["subpixel"]),e}),Modernizr.addTest("supports","CSSSupportsRule"in window),Modernizr.addTest("userselect",function(){return Modernizr.testAllProps("user-select")}),Modernizr.addTest("cssvhunit",function(){var e | |
return Modernizr.testStyles("#modernizr { height: 50vh; }",function(t){var n=parseInt(window.innerHeight/2,10),r=parseInt((window.getComputedStyle?getComputedStyle(t,null):t.currentStyle).height,10) | |
e=r==n}),e}),Modernizr.addTest("cssvmaxunit",function(){var e | |
return Modernizr.testStyles("#modernizr { width: 50vmax; }",function(t){var n=window.innerWidth/100,r=window.innerHeight/100,o=parseInt((window.getComputedStyle?getComputedStyle(t,null):t.currentStyle).width,10) | |
e=parseInt(50*Math.max(n,r),10)==o}),e}),Modernizr.addTest("cssvminunit",function(){var e | |
return Modernizr.testStyles("#modernizr { width: 50vmin; }",function(t){var n=window.innerWidth/100,r=window.innerHeight/100,o=parseInt((window.getComputedStyle?getComputedStyle(t,null):t.currentStyle).width,10) | |
e=parseInt(50*Math.min(n,r),10)==o}),e}),Modernizr.addTest("cssvwunit",function(){var e | |
return Modernizr.testStyles("#modernizr { width: 50vw; }",function(t){var n=parseInt(window.innerWidth/2,10),r=parseInt((window.getComputedStyle?getComputedStyle(t,null):t.currentStyle).width,10) | |
e=r==n}),e}),Modernizr.addTest("customprotocolhandler",function(){return!!navigator.registerProtocolHandler}),Modernizr.addTest("dataview","undefined"!=typeof DataView&&"getFloat64"in DataView.prototype),Modernizr.addTest("classlist","classList"in document.documentElement),Modernizr.addTest("createelement-attrs",function(){try{return"test"==document.createElement("<input name='test' />").getAttribute("name")}catch(e){return!1}}),Modernizr.addTest("dataset",function(){var e=document.createElement("div") | |
return e.setAttribute("data-a-b","c"),!(!e.dataset||"c"!==e.dataset.aB)}),Modernizr.addTest("microdata",!!document.getItems),Modernizr.addTest("datalistelem",Modernizr.input.list),Modernizr.addTest("details",function(){var e,t,n,r=document,o=r.createElement("details") | |
return"open"in o?(t=r.body||function(){var t=r.documentElement | |
return e=!0,t.insertBefore(r.createElement("body"),t.firstElementChild||t.firstChild)}(),o.innerHTML="<summary>a</summary>b",o.style.display="block",t.appendChild(o),n=o.offsetHeight,o.open=!0,n=n!=o.offsetHeight,t.removeChild(o),e&&t.parentNode.removeChild(t),n):!1}),Modernizr.addTest("outputelem","value"in document.createElement("output")),Modernizr.addTest("progressbar",function(){return void 0!==document.createElement("progress").max}),Modernizr.addTest("meter",function(){return void 0!==document.createElement("meter").max}),Modernizr.addTest("ruby",function(){function e(e,t){var n | |
return window.getComputedStyle?n=document.defaultView.getComputedStyle(e,null).getPropertyValue(t):e.currentStyle&&(n=e.currentStyle[t]),n}function t(){i.removeChild(n),n=null,r=null,o=null}var n=document.createElement("ruby"),r=document.createElement("rt"),o=document.createElement("rp"),i=document.documentElement,a="display",d="fontSize" | |
return n.appendChild(o),n.appendChild(r),i.appendChild(n),"none"==e(o,a)||"ruby"==e(n,a)&&"ruby-text"==e(r,a)||"6pt"==e(o,d)&&"6pt"==e(r,d)?(t(),!0):(t(),!1)}),Modernizr.addTest("time","valueAsDate"in document.createElement("time")),Modernizr.addTest({texttrackapi:"function"==typeof document.createElement("video").addTextTrack,track:"kind"in document.createElement("track")}),Modernizr.addTest("emoji",function(){if(!Modernizr.canvastext)return!1 | |
var e=document.createElement("canvas"),t=e.getContext("2d") | |
return t.textBaseline="top",t.font="32px Arial",t.fillText("😃",0,0),0!==t.getImageData(16,16,1,1).data[0]}),Modernizr.addTest("strictmode",function(){return function(){"use strict" | |
return!this}()}),Modernizr.addTest("devicemotion","DeviceMotionEvent"in window),Modernizr.addTest("deviceorientation","DeviceOrientationEvent"in window),Modernizr.addTest("filereader",function(){return!!(window.File&&window.FileList&&window.FileReader)}),function(){var e=new Image | |
e.onerror=function(){Modernizr.addTest("exif-orientation",function(){return!1})},e.onload=function(){Modernizr.addTest("exif-orientation",function(){return 2!==e.width})},e.src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/4QAiRXhpZgAASUkqAAgAAAABABIBAwABAAAABgASAAAAAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/2wBDAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/wAARCAABAAIDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD+/iiiigD/2Q=="}(),Modernizr.addTest("fileinput",function(){var e=document.createElement("input") | |
return e.type="file",!e.disabled}),Modernizr.addTest("formattribute",function(){var e,t=document.createElement("form"),n=document.createElement("input"),r=document.createElement("div"),o="formtest"+(new Date).getTime(),i=!1 | |
return t.id=o,document.createAttribute&&(e=document.createAttribute("form"),e.nodeValue=o,n.setAttributeNode(e),r.appendChild(t),r.appendChild(n),document.documentElement.appendChild(r),i=1===t.elements.length&&n.form==t,r.parentNode.removeChild(r)),i}),Modernizr.addTest("filesystem",!!Modernizr.prefixed("requestFileSystem",window)),Modernizr.addTest("placeholder",function(){return!!("placeholder"in(Modernizr.input||document.createElement("input"))&&"placeholder"in(Modernizr.textarea||document.createElement("textarea")))}),Modernizr.addTest("speechinput",function(){var e=document.createElement("input") | |
return"speech"in e||"onwebkitspeechchange"in e}),function(e,t){t.formvalidationapi=!1,t.formvalidationmessage=!1,t.addTest("formvalidation",function(){var n=e.createElement("form") | |
if(!("checkValidity"in n))return!1 | |
var r,o=e.body,i=e.documentElement,a=!1,d=!1 | |
return t.formvalidationapi=!0,n.onsubmit=function(e){window.opera||e.preventDefault(),e.stopPropagation()},n.innerHTML='<input name="modTest" required><button></button>',n.style.position="absolute",n.style.top="-99999em",o||(a=!0,o=e.createElement("body"),o.style.background="",i.appendChild(o)),o.appendChild(n),r=n.getElementsByTagName("input")[0],r.oninvalid=function(e){d=!0,e.preventDefault(),e.stopPropagation()},t.formvalidationmessage=!!r.validationMessage,n.getElementsByTagName("button")[0].click(),o.removeChild(n),a&&i.removeChild(o),d})}(document,window.Modernizr),Modernizr.addTest("fullscreen",function(){for(var e=0;Modernizr._domPrefixes.length>e;e++)if(document[Modernizr._domPrefixes[e].toLowerCase()+"CancelFullScreen"])return!0 | |
return!!document.cancelFullScreen||!1}),Modernizr.addTest("gamepads",!!Modernizr.prefixed("getGamepads",navigator)),Modernizr.addTest("getusermedia",!!Modernizr.prefixed("getUserMedia",navigator)),Modernizr.addTest("ie8compat",function(){return!window.addEventListener&&document.documentMode&&7===document.documentMode}),Modernizr.addTest("sandbox","sandbox"in document.createElement("iframe")),Modernizr.addTest("seamless","seamless"in document.createElement("iframe")),Modernizr.addTest("srcdoc","srcdoc"in document.createElement("iframe")),function(){if(!Modernizr.canvas)return!1 | |
var e=new Image,t=document.createElement("canvas"),n=t.getContext("2d") | |
e.onload=function(){Modernizr.addTest("apng",function(){return t.getContext===void 0?!1:(n.drawImage(e,0,0),0===n.getImageData(0,0,1,1).data[3])})},e.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAACGFjVEwAAAABAAAAAcMq2TYAAAANSURBVAiZY2BgYPgPAAEEAQB9ssjfAAAAGmZjVEwAAAAAAAAAAQAAAAEAAAAAAAAAAAD6A+gBAbNU+2sAAAARZmRBVAAAAAEImWNgYGBgAAAABQAB6MzFdgAAAABJRU5ErkJggg=="}(),function(){var e=new Image | |
e.onerror=function(){Modernizr.addTest("webp",!1)},e.onload=function(){Modernizr.addTest("webp",function(){return 1==e.width})},e.src="data:image/webp;base64,UklGRiwAAABXRUJQVlA4ICAAAAAUAgCdASoBAAEAL/3+/3+CAB/AAAFzrNsAAP5QAAAAAA=="}(),Modernizr.addTest("json",!!window.JSON&&!!JSON.parse),Modernizr.addTest("olreversed","reversed"in document.createElement("ol")),Modernizr.addTest("mathml",function(){var e | |
return Modernizr.testStyles("#modernizr{position:absolute}",function(t){t.innerHTML="<math><mfrac><mi>xx</mi><mi>yy</mi></mfrac></math>",e=t.offsetHeight>t.offsetWidth}),e}),Modernizr.addTest("eventsource",!!window.EventSource),Modernizr.addTest("lowbandwidth",function(){var e=navigator.connection||{type:0} | |
return 3==e.type||4==e.type||/^[23]g$/.test(e.type)}),Modernizr.addTest("xhr2","FormData"in window),Modernizr.addTest("notification",!!Modernizr.prefixed("Notifications",window)),Modernizr.addTest("quotamanagement",function(){var e=Modernizr.prefixed("StorageInfo",window) | |
return!!(e&&"TEMPORARY"in e&&"PERSISTENT"in e)}),Modernizr.addTest("performance",!!Modernizr.prefixed("performance",window)),Modernizr.addTest("pointerlock",!!Modernizr.prefixed("pointerLockElement",document)),Modernizr.addTest("scriptasync","async"in document.createElement("script")),Modernizr.addTest("scriptdefer","defer"in document.createElement("script")),Modernizr.addTest("stylescoped","scoped"in document.createElement("style")),Modernizr.addTest("svgfilters",function(){var e=!1 | |
try{e=void 0!==typeof SVGFEColorMatrixElement&&2==SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE}catch(t){}return e}),Modernizr.addTest("unicode",function(){var e,t=document.createElement("span"),n=document.createElement("span") | |
return Modernizr.testStyles("#modernizr{font-family:Arial,sans;font-size:300em;}",function(r){t.innerHTML="ᝣ",n.innerHTML="☆",r.appendChild(t),r.appendChild(n),e="offsetWidth"in t&&t.offsetWidth!==n.offsetWidth}),e}),function(){var e=new Image | |
e.onerror=function(){Modernizr.addTest("datauri",function(){return!1})},e.onload=function(){Modernizr.addTest("datauri",function(){return 1==e.width&&1==e.height})},e.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw=="}(),Modernizr.addTest("userdata",function(){return!!document.createElement("div").addBehavior}),Modernizr.addTest("vibrate",!!Modernizr.prefixed("vibrate",navigator)),Modernizr.addTest("webintents",function(){return!!Modernizr.prefixed("startActivity",navigator)}),function(){if(Modernizr.webgl){var e,t,n | |
try{e=document.createElement("canvas"),t=e.getContext("webgl")||e.getContext("experimental-webgl"),n=t.getSupportedExtensions()}catch(r){return}Modernizr.webgl=void 0===t?new Boolean(!1):new Boolean(!0) | |
for(var o=-1,i=n.length;i>++o;)Modernizr.webgl[n[o]]=!0 | |
window.TEST&&TEST.audvid&&TEST.audvid.push("webgl"),e=void 0}}(),Modernizr.addTest("websocketsbinary",!(!window.WebSocket||!new WebSocket("ws://.").binaryType)),Modernizr.addTest("framed",function(){return window.location!=top.location}),function(){try{var e=window.MozBlobBuilder||window.WebKitBlobBuilder||window.MSBlobBuilder||window.OBlobBuilder||window.BlobBuilder,t=window.MozURL||window.webkitURL||window.MSURL||window.OURL||window.URL,n="Modernizr",r=new e | |
r.append("this.onmessage=function(e){postMessage(e.data)}") | |
var o=t.createObjectURL(r.getBlob()),i=new Worker(o) | |
r=null,i.onmessage=function(e){i.terminate(),t.revokeObjectURL(o),Modernizr.addTest("blobworkers",n===e.data),i=null},i.onerror=function(){Modernizr.addTest("blobworkers",!1),i=null},setTimeout(function(){Modernizr.addTest("blobworkers",!1)},200),i.postMessage(n)}catch(a){Modernizr.addTest("blobworkers",!1)}}(),function(){try{var e="Modernizr",t=new Worker("data:text/javascript;base64,dGhpcy5vbm1lc3NhZ2U9ZnVuY3Rpb24oZSl7cG9zdE1lc3NhZ2UoZS5kYXRhKX0=") | |
t.onmessage=function(n){t.terminate(),Modernizr.addTest("dataworkers",e===n.data),t=null},t.onerror=function(){Modernizr.addTest("dataworkers",!1),t=null},setTimeout(function(){Modernizr.addTest("dataworkers",!1)},200),t.postMessage(e)}catch(n){Modernizr.addTest("dataworkers",!1)}}(),Modernizr.addTest("raf",!!Modernizr.prefixed("requestAnimationFrame",window)),Modernizr.addTest("sharedworkers",function(){return!!window.SharedWorker}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment