Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/*! Modernizr 3.0.0pre (Custom Build) | MIT */
(function(e,t,n){function o(e,t){return typeof e===t}function u(){var e,t,n,i,u;for(var a in r){e=[],t=r[a];if(t.name){e.push(t.name.toLowerCase());if(t.options&&t.options.aliases&&t.options.aliases.length)for(n=0;n<t.options.aliases.length;n++)e.push(t.options.aliases[n].toLowerCase())}i=o(t.fn,"function")?t.fn():t.fn;for(u=0;u<e.length;u++)Modernizr[e[u]]=i,s.push((Modernizr[e[u]]?"":"no-")+e[u])}}function f(e){var t=e||a;t.className=t.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(Modernizr._config.enableClasses?" js "+(s.length?Modernizr._config.classPrefix||"":"")+s.join(" "+(Modernizr._config.classPrefix||"")):"")}function c(e,t){if(typeof e=="object")for(var r in e)l(e,r)&&c(r,e[r]);else{e=e.toLowerCase();if(Modernizr[e]!==n)return Modernizr;t=typeof t=="function"?t():t,Modernizr._config.enableClasses&&(a.className+=" "+(Modernizr._config.classPrefix||"")+(t?"":"no-")+e),Modernizr[e]=t}return Modernizr}function p(e,t){return!!~(""+e).indexOf(t)}function y(e,t){function i(){r&&(delete g.style,delete g.modElem)}var r;g.style||(r=!0,g.modElem=v("modernizr"),g.style=g.modElem.style);for(var s in e){var o=e[s];if(!p(o,"-")&&g.style[o]!==n)return i(),t=="pfx"?o:!0}return i(),!1}function x(e,t,r){for(var i in e){var s=t[e[i]];if(s!==n)return r===!1?e[i]:o(s,"function")&&"bind"in s?s.bind(r||t):s}return!1}function T(e,t,n){var r=e.charAt(0).toUpperCase()+e.slice(1),i=(e+" "+E.join(r+" ")+r).split(" ");return o(t,"string")||o(t,"undefined")?y(i,t):(i=(e+" "+S.join(r+" ")+r).split(" "),x(i,t,n))}function k(e,n,r,i){var s="modernizr",o,u,f,l,c=v("div"),h=t.body,p=h||v("body");if(parseInt(r,10))while(r--)f=v("div"),f.id=i?i[r]:s+(r+1),c.appendChild(f);return o=["&#173;",'<style id="s',s,'">',e,"</style>"].join(""),c.id=s,(h?c:p).innerHTML+=o,p.appendChild(c),h||(p.style.background="",p.style.overflow="hidden",l=a.style.overflow,a.style.overflow="hidden",a.appendChild(p)),u=n(c,e),h?c.parentNode.removeChild(c):(p.parentNode.removeChild(p),a.style.overflow=l),!!u}function A(t){return e.getComputedStyle?getComputedStyle(t,null).getPropertyValue("background"):t.currentStyle.background}var r=[],i={_version:"v3.0.0pre",_config:{classPrefix:"",enableClasses:!0},_q:[],addTest:function(e,t,n){r.push({name:e,fn:t,options:n})},addAsyncTest:function(e){r.push({name:null,fn:e})}},Modernizr=function(){};Modernizr.prototype=i,Modernizr=new Modernizr;var s=[],a=t.documentElement,l;(function(){var e={}.hasOwnProperty;!o(e,"undefined")&&!o(e.call,"undefined")?l=function(t,n){return e.call(t,n)}:l=function(e,t){return t in e&&o(e.constructor.prototype[t],"undefined")}})(),Modernizr._q.push(function(){i.addTest=c});var h;(function(e,t){function c(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 p(){var e=h.elements;return typeof e=="string"?e.split(" "):e}function d(e){var t=f[e[u]];return t||(t={},a++,e[u]=a,f[a]=t),t}function v(e,n,r){n||(n=t);if(l)return n.createElement(e);r||(r=d(n));var o;return r.cache[e]?o=r.cache[e].cloneNode():s.test(e)?o=(r.cache[e]=r.createElem(e)).cloneNode():o=r.createElem(e),o.canHaveChildren&&!i.test(e)?r.frag.appendChild(o):o}function m(e,n){e||(e=t);if(l)return e.createDocumentFragment();n=n||d(e);var r=n.frag.cloneNode(),i=0,s=p(),o=s.length;for(;i<o;i++)r.createElement(s[i]);return r}function g(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return h.shivMethods?v(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+p().join().replace(/\w+/g,function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'})+");return n}")(h,t.frag)}function y(e){e||(e=t);var n=d(e);return h.shivCSS&&!o&&!n.hasCSS&&(n.hasCSS=!!c(e,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")),l||g(e,n),e}var n="3.6.2pre",r=e.html5||{},i=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,s=/^(?: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,o,u="_html5shiv",a=0,f={},l;(function(){try{var e=t.createElement("a");e.innerHTML="<xyz></xyz>",o="hidden"in e,l=e.childNodes.length==1||function(){t.createElement("a");var e=t.createDocumentFragment();return typeof e.cloneNode=="undefined"||typeof e.createDocumentFragment=="undefined"||typeof e.createElement=="undefined"}()}catch(n){o=!0,l=!0}})(),h={elements:r.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",version:n,shivCSS:r.shivCSS!==!1,supportsUnknownElements:l,shivMethods:r.shivMethods!==!1,type:"default",shivDocument:y,createElement:v,createDocumentFragment:m},e.html5=h,y(t)})(this,t),function(e,t,n){function k(e){return!e||e=="loaded"||e=="complete"||e=="uninitialized"}function L(e,n,r,o,u,a){var l=t.createElement("script"),c,h;o=o||C.errorTimeout,l.src=e;for(h in r)l.setAttribute(h,r[h]);n=a?O:n||f,l.onreadystatechange=l.onload=function(){!c&&k(l.readyState)&&(c=1,n(),l.onload=l.onreadystatechange=null)},i(function(){c||(c=1,n(1))},o),E(),u?l.onload():s.parentNode.insertBefore(l,s)}function A(e,n,r,o,u,a){var l=t.createElement("link"),c,h;o=o||C.errorTimeout,n=a?O:n||f,l.href=e,l.rel="stylesheet",l.type="text/css";for(h in r)l.setAttribute(h,r[h]);u||(E(),s.parentNode.insertBefore(l,s),i(n,0))}function O(){var e=u.shift();a=1,e?e.t?i(function(){(e["t"]=="c"?C.injectCss:C.injectJs)(e.s,0,e.a,e.x,e.e,1)},0):(e(),O()):a=0}function M(e,n,r,o,f,l,p){function y(t){if(!v&&k(d.readyState)){g.r=v=1,!a&&O();if(t){e!="img"&&i(function(){h.removeChild(d)},50);for(var r in x[n])x[n].hasOwnProperty(r)&&x[n][r].onload();d.onload=d.onreadystatechange=null}}}p=p||C.errorTimeout;var d=t.createElement(e),v=0,m=0,g={t:r,s:n,e:f,a:l,x:p};x[n]===1&&(m=1,x[n]=[]),e=="object"?(d.data=n,d.setAttribute("type","text/css")):(d.src=n,d.type=e),d.width=d.height="0",d.onerror=d.onload=d.onreadystatechange=function(){y.call(this,m)},u.splice(o,0,g),e!="img"&&(m||x[n]===2?(E(),h.insertBefore(d,c?null:s),i(y,p)):x[n].push(d))}function _(e,t,n,r,i){return a=0,t=t||"j",b(e)?M(t=="c"?m:v,e,t,this.i++,n,r,i):(u.splice(this.i++,0,e),u.length==1&&O()),this}function D(){var e=C;return e.loader={load:_,i:0},e}var r=t.documentElement,i=e.setTimeout,s=t.getElementsByTagName("script")[0],o={}.toString,u=[],a=0,f=function(){},l="MozAppearance"in r.style,c=l&&!!t.createRange().compareNode,h=c?r:s.parentNode,p=e.opera&&o.call(e.opera)=="[object Opera]",d=!!t.attachEvent&&!p,v=l?"object":d?"script":"img",m=d?"script":v,g=Array.isArray||function(e){return o.call(e)=="[object Array]"},y=function(e){return Object(e)===e},b=function(e){return typeof e=="string"},w=function(e){return o.call(e)=="[object Function]"},E=function(){if(!s||!s.parentNode)s=t.getElementsByTagName("script")[0]},S=[],x={},T={timeout:function(e,t){return t.length&&(e.timeout=t[0]),e}},N,C;C=function(e){function s(e){var t=e.split("!"),n=S.length,r=t.pop(),i=t.length,s={url:r,origUrl:r,prefixes:t},o,u,a;for(u=0;u<i;u++)a=t[u].split("="),o=T[a.shift()],o&&(s=o(s,a));for(u=0;u<n;u++)s=S[u](s);return s}function o(e){var t=e.split("?")[0];return t.substr(t.lastIndexOf(".")+1)}function u(e,t,r,i,u){var a=s(e),f=a.autoCallback,l=o(a.url);if(a.bypass)return;t&&(t=w(t)?t:t[e]||t[i]||t[e.split("/").pop().split("?")[0]]);if(a.instead)return a.instead(e,t,r,i,u);x[a.url]&&a.reexecute!==!0?a.noexec=!0:x[a.url]=1,e&&r.load(a.url,a.forceCSS||!a.forceJS&&"css"==o(a["url"])?"c":n,a.noexec,a.attrs,a.timeout),(w(t)||w(f))&&r.load(function(){D(),t&&t(a.origUrl,u,i),f&&f(a.origUrl,u,i),x[a.url]=2})}function a(e,t){function h(e,r){if(""!==e&&!e)!r&&a();else if(b(e))r||(s=function(){var e=[].slice.call(arguments);o.apply(this,e),a()}),u(e,s,t,0,n);else if(y(e)){l=function(){var t=0,n;for(n in e)e.hasOwnProperty(n)&&t++;return t}();for(c in e)e.hasOwnProperty(c)&&(!r&&!--l&&(w(s)?s=function(){var e=[].slice.call(arguments);o.apply(this,e),a()}:s[c]=function(e){return function(){var t=[].slice.call(arguments);e&&e.apply(this,t),a()}}(o[c])),u(e[c],s,t,c,n))}}var n=!!e.test,r=n?e.yep:e.nope,i=e.load||e.both,s=e.callback||f,o=s,a=e.complete||f,l,c;h(r,!!i||!!e.complete),i&&h(i),!i&&!!e.complete&&h("")}var t,r,i=this.yepnope.loader;if(b(e))u(e,0,i,0);else if(g(e))for(t=0;t<e.length;t++)r=e[t],b(r)?u(r,0,i,0):g(r)?C(r):y(r)&&a(r,i);else y(e)&&a(e,i)},C.addPrefix=function(e,t){T[e]=t},C.addFilter=function(e){S.push(e)},C.errorTimeout=1e4,t.readyState==null&&t.addEventListener&&(t.readyState="loading",t.addEventListener("DOMContentLoaded",N=function(){t.removeEventListener("DOMContentLoaded",N,0),t.readyState="complete"},0)),e.yepnope=D(),e.yepnope.executeStack=O,e.yepnope.injectJs=L,e.yepnope.injectCss=A}(e,t),i.load=function(){e.yepnope.apply(e,[].slice.call(arguments,0))};var d=s.slice;Function.prototype.bind||(Function.prototype.bind=function(t){var n=this;if(typeof n!="function")throw new TypeError;var r=d.call(arguments,1),i=function(){if(this instanceof i){var e=function(){};e.prototype=n.prototype;var s=new e,o=n.apply(s,r.concat(d.call(arguments)));return Object(o)===o?o:s}return n.apply(t,r.concat(d.call(arguments)))};return i});var v=t.createElement.bind(t),m={elem:v("modernizr")};Modernizr._q.push(function(){delete m.elem});var g={style:m.elem.style};Modernizr._q.unshift(function(){delete g.style});var b=i.testProp=function(e){return y([e])};Modernizr.addTest("adownload","download"in v("a")),Modernizr.addTest("audiodata",!!e.Audio),Modernizr.addTest("webaudio",!!e.webkitAudioContext||!!e.AudioContext);var w="Webkit Moz O ms",E=w.split(" ");i._cssomPrefixes=E;var S=w.toLowerCase().split(" ");i._domPrefixes=S,i.testAllProps=T;var N=i.prefixed=function(e,t,n){return t?T(e,t,n):T(e,"pfx")};Modernizr.addTest("lowbattery",function(){var e=.2,t=N("battery",navigator);return!!(t&&!t.charging&&t.level<=e)}),Modernizr.addTest("canvas",function(){var e=v("canvas");return!!e.getContext&&!!e.getContext("2d")}),Modernizr.addAsyncTest(function(){if(!Modernizr.canvas)return Modernizr._addTest("todataurljpeg",!1,["todataurlwebp"]),!1;var e=new Image,t=v("canvas"),n=t.getContext("2d");e.onload=function(){n.drawImage(e,0,0),c("todataurljpeg",function(){return t.toDataURL("image/jpeg").indexOf("data:image/jpeg")===0}),c("todataurlwebp",function(){return t.toDataURL("image/webp").indexOf("data:image/webp")===0})},e.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAACklEQVR4nGMAAQAABQABDQottAAAAABJRU5ErkJggg=="});var C=i.testAllProps=T;Modernizr.addTest("cssanimations",function(){return C("animationName")}),Modernizr.addTest("bgpositionshorthand",function(){var e=v("a"),t=e.style,n="right 10px bottom 10px";return t.cssText="background-position: "+n+";",t.backgroundPosition===n});var L=i.testStyles=k;Modernizr.addTest("bgpositionxy",function(){return L("#modernizr {background-position: 3px 5px;}",function(t){var n=e.getComputedStyle?getComputedStyle(t,null):t.currentStyle,r=n.backgroundPositionX=="3px"||n["background-position-x"]=="3px",i=n.backgroundPositionY=="5px"||n["background-position-y"]=="5px";return r&&i})}),L(" #modernizr { background-repeat: round; } ",function(e,t){Modernizr.addTest("bgrepeatround",A(e)=="round")}),L(" #modernizr { background-repeat: space; } ",function(e,t){Modernizr.addTest("bgrepeatspace",A(e)=="space")}),Modernizr.addTest("backgroundsize",C("backgroundSize")),L("#modernizr{background-size:cover}",function(t){var n=e.getComputedStyle?e.getComputedStyle(t,null):t.currentStyle;Modernizr.addTest("bgsizecover",n.backgroundSize=="cover")}),Modernizr.addTest("borderimage",C("borderImage")),Modernizr.addTest("borderradius",C("borderRadius")),Modernizr.addTest("boxshadow",C("boxShadow")),Modernizr.addTest("boxsizing",function(){return C("boxSizing")&&(t.documentMode===n||t.documentMode>7)});var O=" -webkit- -moz- -o- -ms- ".split(" ");i._prefixes=O,Modernizr.addTest("csscalc",function(){var e="width:",t="calc(10px);",n=v("div");return n.style.cssText=e+O.join(t+e),!!n.style.length}),Modernizr.addTest("csscolumns",C("columnCount")),Modernizr.addTest("cubicbezierrange",function(){var e=v("div");return e.style.cssText=O.join("transition-timing-function:cubic-bezier(1,0,0,1.1); "),!!e.style.length}),L(" #modernizr { display: run-in; } ",function(t,n){var r=e.getComputedStyle?getComputedStyle(t,null).getPropertyValue("display"):t.currentStyle.display;Modernizr.addTest("display-runin",r=="run-in")}),L("#modernizr{display: table; direction: ltr}#modernizr div{display: table-cell; padding: 10px}",function(e){var t,n=e.children;t=n[0].offsetLeft<n[1].offsetLeft,Modernizr.addTest("display-table",t)},2),Modernizr.addTest("cssfilters",function(){var e=v("div");return e.style.cssText=O.join("filter:blur(2px); "),!!e.style.length&&(t.documentMode===n||t.documentMode>9)}),Modernizr.addTest("flexbox",C("flexWrap")),Modernizr.addTest("flexboxlegacy",C("boxDirection")),L('@font-face {font-family:"font";src:url("https://")}',function(e,n){var r=t.getElementById("smodernizr"),i=r.sheet||r.styleSheet,s=i?i.cssRules&&i.cssRules[0]?i.cssRules[0].cssText:i.cssText||"":"",o=/src/i.test(s)&&s.indexOf(n.split(" ")[0])===0;Modernizr.addTest("fontface",o)}),L('#modernizr{font:0/0 a}#modernizr:after{content:":)";visibility:hidden;font:7px/1 a}',function(e){Modernizr.addTest("generatedcontent",e.offsetHeight>=7)}),Modernizr.addTest("cssgradients",function(){var e="background-image:",t="gradient(linear,left top,right bottom,from(#9f9),to(white));",n="linear-gradient(left top,#9f9, white);",r=(e+"-webkit- ".split(" ").join(t+e)+O.join(n+e)).slice(0,-e.length),i=v("div"),s=i.style;return s.cssText=r,(""+s.backgroundImage).indexOf("gradient")>-1}),Modernizr.addTest("hsla",function(){var e=v("div"),t=e.style;return t.cssText="background-color:hsla(120,40%,100%,.5)",p(t.backgroundColor,"rgba")||p(t.backgroundColor,"hsla")}),Modernizr.addAsyncTest(function(){function r(){function i(){try{var e=v("div"),n=v("span"),r=e.style,i=0,s=0,o=!1,u=t.body.firstElementChild||t.body.firstChild;return e.appendChild(n),n.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.",t.body.insertBefore(e,u),r.cssText="position:absolute;top:0;left:0;width:5em;text-align:justify;text-justification:newspaper;",i=n.offsetHeight,s=n.offsetWidth,r.cssText="position:absolute;top:0;left:0;width:5em;text-align:justify;text-justification:newspaper;"+O.join("hyphens:auto; "),o=n.offsetHeight!=i||n.offsetWidth!=s,t.body.removeChild(e),e.removeChild(n),o}catch(a){return!1}}function s(e,n){try{var r=v("div"),i=v("span"),s=r.style,o=0,u=!1,a=!1,f=!1,l=t.body.firstElementChild||t.body.firstChild;return s.cssText="position:absolute;top:0;left:0;overflow:visible;width:1.25em;",r.appendChild(i),t.body.insertBefore(r,l),i.innerHTML="mm",o=i.offsetHeight,i.innerHTML="m"+e+"m",a=i.offsetHeight>o,n?(i.innerHTML="m<br />m",o=i.offsetWidth,i.innerHTML="m"+e+"m",f=i.offsetWidth>o):f=!0,a===!0&&f===!0&&(u=!0),t.body.removeChild(r),r.removeChild(i),u}catch(c){return!1}}function o(n){try{var r=v("input"),i=v("div"),s="lebowski",o=!1,u,a=t.body.firstElementChild||t.body.firstChild;i.innerHTML=s+n+s,t.body.insertBefore(i,a),t.body.insertBefore(r,i),r.setSelectionRange?(r.focus(),r.setSelectionRange(0,0)):r.createTextRange&&(u=r.createTextRange(),u.collapse(!0),u.moveEnd("character",0),u.moveStart("character",0),u.select());if(e.find)o=e.find(s+s);else try{u=e.self.document.body.createTextRange(),o=u.findText(s+s)}catch(f){o=!1}return t.body.removeChild(i),t.body.removeChild(r),o}catch(f){return!1}}if(!t.body&&!t.getElementsByTagName("body")[0]){setTimeout(r,n);return}c("csshyphens",function(){if(!C("hyphens"))return!1;try{return i()}catch(e){return!1}}),c("softhyphens",function(){try{return s("&#173;",!0)&&s("&#8203;",!1)}catch(e){return!1}}),c("softhyphensfind",function(){try{return o("&#173;")&&o("&#8203;")}catch(e){return!1}})}var n=300;setTimeout(r,n)}),L("#modernizr div {width:100px} #modernizr :last-child{width:200px;display:block}",function(e){Modernizr.addTest("lastchild",e.lastChild.offsetWidth>e.firstChild.offsetWidth)},2),Modernizr.addTest("cssmask",C("maskRepeat"));var M=function(t){var n=e.matchMedia||e.msMatchMedia,r;return n?n(t).matches:(k("@media "+t+" { #"+mod+" { position: absolute; } }",function(t){r=(e.getComputedStyle?getComputedStyle(t,null):t.currentStyle)["position"]=="absolute"}),r)},_=i.mq=M;Modernizr.addTest("mediaqueries",_("only all")),Modernizr.addTest("multiplebgs",function(){var e=v("div"),t=e.style;return t.cssText="background:url(https://),url(https://),red url(https://)",/(url\s*\(.*?){3}/.test(t.background)}),Modernizr.addTest("object-fit",!!N("objectFit")),Modernizr.addTest("opacity",function(){var e=v("div"),t=e.style;return t.cssText=O.join("opacity:.55;"),/^0.55$/.test(t.opacity)}),Modernizr.addTest("overflowscrolling",C("overflowScrolling")),Modernizr.addTest("csspointerevents",function(){var t=v("x"),n=e.getComputedStyle,r;return"pointerEvents"in t.style?(t.style.pointerEvents="auto",t.style.pointerEvents="x",a.appendChild(t),r=n&&n(t,"").pointerEvents==="auto",a.removeChild(t),!!r):!1}),Modernizr.addTest("csspositionsticky",function(){var e="position:",t="sticky",n=v("modernizr"),r=n.style;return r.cssText=e+O.join(t+";"+e).slice(0,-e.length),r.position.indexOf(t)!==-1}),Modernizr.addTest("cssreflections",C("boxReflect")),Modernizr.addTest("regions",function(){var e=Modernizr.prefixed("flowFrom"),t=Modernizr.prefixed("flowInto");if(!e||!t)return!1;var r=v("div"),i=v("div"),s=v("div"),o="modernizr_flow_for_regions_check";i.innerText="M",r.style.cssText="top: 150px; left: 150px; padding: 0px;",s.style.cssText="width: 50px; height: 50px; padding: 42px;",s.style[e]=o,r.appendChild(i),r.appendChild(s),a.appendChild(r);var u,f,l=i.getBoundingClientRect();return i.style[t]=o,u=i.getBoundingClientRect(),f=u.left-l.left,a.removeChild(r),i=s=r=n,f==42}),Modernizr.addTest("cssremunit",function(){var e=v("div");try{e.style.fontSize="3rem"}catch(t){}return/rem/.test(e.style.fontSize)}),Modernizr.addTest("cssresize",C("resize")),Modernizr.addTest("rgba",function(){var e=v("div"),t=e.style;return t.cssText="background-color:rgba(150,255,150,.5)",(""+t.backgroundColor).indexOf("rgba")>-1}),L("#modernizr{overflow: scroll; width: 40px; height: 40px; }#"+O.join("scrollbar{width:0px} #modernizr::").split("#").slice(1).join("#")+"scrollbar{width:0px}",function(e){Modernizr.addTest("cssscrollbar",e.scrollWidth==40)}),L("#modernizr{position: absolute; top: -10em; visibility:hidden; font: normal 10px arial;}#subpixel{float: left; font-size: 33.3333%;}",function(t){var n=t.firstChild;n.innerHTML="This is a text written in Arial",Modernizr.addTest("subpixelfont",e.getComputedStyle?e.getComputedStyle(n,null).getPropertyValue("width")!=="44px":!1)},1,["subpixel"]),Modernizr.addTest("supports","CSSSupportsRule"in e),Modernizr.addTest("textshadow",v("div").style.textShadow===""),Modernizr.addTest("csstransforms",!!C("transform")),Modernizr.addTest("csstransforms3d",function(){var e=!!C("perspective");return e&&"webkitPerspective"in a.style&&L("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:5px;margin:0;padding:0;border:0}}",function(t,n){e=t.offsetLeft===9&&t.offsetHeight===5}),e}),Modernizr.addTest("csstransitions",C("transition")),Modernizr.addTest("userselect",C("userSelect")),L("#modernizr { height: 50vh; }",function(t,n){var r=parseInt(e.innerHeight/2,10),i=parseInt((e.getComputedStyle?getComputedStyle(t,null):t.currentStyle).height,10);Modernizr.addTest("cssvhunit",i==r)}),L("#modernizr { width: 50vmax; }",function(t,n){var r=e.innerWidth/100,i=e.innerHeight/100,s=parseInt((e.getComputedStyle?getComputedStyle(t,null):t.currentStyle).width,10);Modernizr.addTest("cssvmaxunit",parseInt(Math.max(r,i)*50,10)==s)}),L("#modernizr { width: 50vmin; }",function(t,n){var r=e.innerWidth/100,i=e.innerHeight/100,s=parseInt((e.getComputedStyle?getComputedStyle(t,null):t.currentStyle).width,10);Modernizr.addTest("cssvminunit",parseInt(Math.min(r,i)*50,10)==s)}),L("#modernizr { width: 50vw; }",function(t,n){var r=parseInt(e.innerWidth/2,10),i=parseInt((e.getComputedStyle?getComputedStyle(t,null):t.currentStyle).width,10);Modernizr.addTest("cssvwunit",i==r)}),Modernizr.addTest("classlist","classList"in a),Modernizr.addTest("createelement-attrs",function(){try{return v('<input name="test" />').getAttribute("name")=="test"}catch(e){return!1}}),Modernizr.addTest("dataset",function(){var e=v("div");return e.setAttribute("data-a-b","c"),!!e.dataset&&e.dataset.aB==="c"}),Modernizr.addTest("microdata","getItems"in t);var D={},P="autocomplete autofocus list placeholder max min multiple pattern required step".split(" "),H=v("input");Modernizr.input=function(t){for(var n=0,r=t.length;n<r;n++)D[t[n]]=t[n]in H;return D.list&&(D.list=!!v("datalist")&&!!e.HTMLDataListElement),D}(P),Modernizr.addTest("datalistelem",Modernizr.input.list),Modernizr.addTest("details",function(){var e=v("details"),n;if("open"in e){var r=t.body||function(){return n=!0,a.insertBefore(v("body"),a.firstElementChild||a.firstChild)}();e.innerHTML="<summary>a</summary>b",e.style.display="block",r.appendChild(e);var i=e.offsetHeight;return e.open=!0,i=i!=e.offsetHeight,r.removeChild(e),n&&r.parentNode.removeChild(r),i}return!1}),Modernizr.addTest("outputelem","value"in v("output")),Modernizr.addTest("progressbar",v("progress").max!==n),Modernizr.addTest("meter",v("meter").max!==n),Modernizr.addTest("ruby",function(){function u(n,r){var i;return e.getComputedStyle?i=t.defaultView.getComputedStyle(n,null).getPropertyValue(r):n.currentStyle&&(i=n.currentStyle[r]),i}function f(){a.removeChild(n),n=null,r=null,i=null}var n=v("ruby"),r=v("rt"),i=v("rp"),s="display",o="fontSize";return n.appendChild(i),n.appendChild(r),a.appendChild(n),u(i,s)=="none"||u(n,s)=="ruby"&&u(r,s)=="ruby-text"||u(i,o)=="6pt"&&u(r,o)=="6pt"?(f(),!0):(f(),!1)}),Modernizr.addTest("time","valueAsDate"in v("time")),Modernizr.addTest("texttrackapi",typeof v("video").addTextTrack=="function"),Modernizr.addTest("track","kind"in v("track")),Modernizr.addTest("strictmode",function(){return!this}()),Modernizr.addTest("devicemotion","DeviceMotionEvent"in e),Modernizr.addTest("deviceorientation","DeviceOrientationEvent"in e),Modernizr.addTest("filereader",!!(e.File&&e.FileList&&e.FileReader)),Modernizr.addTest("filesystem",!!N("requestFileSystem",e)),Modernizr.addTest("fileinput",function(){if(navigator.userAgent.match(/(Android (1.0|1.1|1.5|1.6|2.0|2.1))|(Windows Phone (OS 7|8.0)|(XBLWP)|(ZuneWP)|(w(eb)?OSBrowser)|(webOS)|Pre\/1.2|Kindle\/(1.0|2.0|2.5|3.0))/))return!1;var e=v("input");return e.type="file",!e.disabled}),Modernizr.addTest("formattribute",function(){var e=v("form"),n=v("input"),r=v("div"),i="formtest"+(new Date).getTime(),s,o=!1;e.id=i;try{n.setAttribute("form",i)}catch(u){t.createAttribute&&(s=t.createAttribute("form"),s.nodeValue=i,n.setAttributeNode(s))}return r.appendChild(e),r.appendChild(n),a.appendChild(r),o=e.elements.length===1&&n.form==e,r.parentNode.removeChild(r),o}),Modernizr.addTest("localizedNumber",function(){var e=v("div"),n,r=t.body||function(){return n=!0,a.insertBefore(v("body"),a.firstElementChild||a.firstChild)}();e.innerHTML='<input type="number" value="1.0" step="0.1"/>';var i=e.childNodes[0];r.appendChild(e),i.focus();try{t.execCommand("InsertText",!1,"1,1")}catch(s){}var o=i.type==="number"&&i.valueAsNumber===1.1&&i.checkValidity();return r.removeChild(e),n&&r.parentNode.removeChild(r),o}),Modernizr.addTest("placeholder","placeholder"in v("input")&&"placeholder"in v("textarea")),Modernizr.addTest("speechinput",function(){var e=v("input");return"speech"in e||"onwebkitspeechchange"in e}),Modernizr.addTest("formvalidation",function(){var n=v("form");if("checkValidity"in n&&"addEventListener"in n){var r=t.body,i=a,s=!1,o=!1,u;return Modernizr.formvalidationapi=!0,n.addEventListener("submit",function(t){e.opera||t.preventDefault(),t.stopPropagation()},!1),n.innerHTML='<input name="modTest" required><button></button>',n.style.position="absolute",n.style.top="-99999em",r||(s=!0,r=v("body"),r.style.background="",i.appendChild(r)),r.appendChild(n),u=n.getElementsByTagName("input")[0],u.addEventListener("invalid",function(e){o=!0,e.preventDefault(),e.stopPropagation()},!1),Modernizr.formvalidationmessage=!!u.validationMessage,n.getElementsByTagName("button")[0].click(),r.removeChild(n),s&&i.removeChild(r),o}return!1}),Modernizr.addTest("sandbox","sandbox"in v("iframe")),Modernizr.addTest("seamless","seamless"in v("iframe")),Modernizr.addTest("srcdoc","srcdoc"in v("iframe")),Modernizr.addAsyncTest(function(){if(!Modernizr.canvas)return!1;var e=new Image,t=v("canvas"),n=t.getContext("2d");e.onload=function(){c("apng",function(){return typeof t.getContext=="undefined"?!1:(n.drawImage(e,0,0),n.getImageData(0,0,1,1).data[3]===0)})},e.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAACGFjVEwAAAABAAAAAcMq2TYAAAANSURBVAiZY2BgYPgPAAEEAQB9ssjfAAAAGmZjVEwAAAAAAAAAAQAAAAEAAAAAAAAAAAD6A+gBAbNU+2sAAAARZmRBVAAAAAEImWNgYGBgAAAABQAB6MzFdgAAAABJRU5ErkJggg=="}),Modernizr.addAsyncTest(function(){var e=new Image;e.onerror=function(){c("webp-lossless",!1)},e.onload=function(){c("webp-lossless",e.width==1)},e.src="data:image/webp;base64,UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA=="}),Modernizr.addAsyncTest(function(){var e=new Image;e.onerror=function(){c("webp",!1)},e.onload=function(){c("webp",e.width==1)},e.src="data:image/webp;base64,UklGRiwAAABXRUJQVlA4ICAAAAAUAgCdASoBAAEAL/3+/3+CAB/AAAFzrNsAAP5QAAAAAA=="}),Modernizr.addTest("lowbandwidth",function(){var e=navigator.connection||{type:0};return e.type==3||e.type==4||/^[23]g$/.test(e.type)}),Modernizr.addTest("eventsource",!!e.EventSource),Modernizr.addTest("xhr2","FormData"in e),Modernizr.addTest("scriptasync","async"in v("script")),Modernizr.addTest("scriptdefer","defer"in v("script")),Modernizr.addTest("localstorage",function(){var e="modernizr";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(t){return!1}}),Modernizr.addTest("sessionstorage",function(){var e="modernizr";try{return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(t){return!1}}),Modernizr.addTest("websqldatabase",!!e.openDatabase),Modernizr.addTest("stylescoped","scoped"in v("style"));var B={}.toString;Modernizr.addTest("svgclippaths",function(){return!!t.createElementNS&&/SVGClipPath/.test(B.call(t.createElementNS("http://www.w3.org/2000/svg","clipPath")))}),Modernizr.addTest("svgfilters",function(){var e=!1;try{e=typeof SVGFEColorMatrixElement!==n&&SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE==2}catch(t){}return e}),Modernizr.addTest("inlinesvg",function(){var e=v("div");return e.innerHTML="<svg/>",(e.firstChild&&e.firstChild.namespaceURI)=="http://www.w3.org/2000/svg"}),Modernizr.addTest("smil",function(){return!!t.createElementNS&&/SVGAnimate/.test(B.call(t.createElementNS("http://www.w3.org/2000/svg","animate")))}),Modernizr.addAsyncTest(function(){var e=new Image;e.onerror=function(){c("datauri",!1)},e.onload=function(){c("datauri",e.width==1&&e.height==1)},e.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw=="}),Modernizr.addTest("webgl",!!e.WebGLRenderingContext),Modernizr.addAsyncTest(function(){Modernizr.webglextensions=new Boolean(!1);if(!Modernizr.webgl)return;var e,t,r;try{e=v("canvas"),t=e.getContext("webgl")||e.getContext("experimental-webgl"),r=t.getSupportedExtensions()}catch(i){return}t!==n&&(Modernizr.webglextensions=new Boolean(!0));for(var s=-1,o=r.length;++s<o;)Modernizr.webglextensions[r[s]]=!0;e=n}),Modernizr.addTest("websocketsbinary",function(){var t="https:"==location.protocol?"wss":"ws",n;if("WebSocket"in e){if(n="binaryType"in WebSocket.prototype)return n;try{return!!(new WebSocket(t+"://.")).binaryType}catch(r){}}return!1}),Modernizr.addTest("framed",e.location!=top.location),Modernizr.addAsyncTest(function(){try{var t=e.MozBlobBuilder||e.WebKitBlobBuilder||e.MSBlobBuilder||e.OBlobBuilder||e.BlobBuilder,n=e.MozURL||e.webkitURL||e.MSURL||e.OURL||e.URL,r="Modernizr",i=new t;i.append("this.onmessage=function(e){postMessage(e.data)}");var s=n.createObjectURL(i.getBlob()),o=new Worker(s);i=null,o.onmessage=function(e){o.terminate(),n.revokeObjectURL(s),c("blobworkers",r===e.data),o=null},o.onerror=function(){c("blobworkers",!1),o=null},setTimeout(function(){c("blobworkers",!1)},200),o.postMessage(r)}catch(u){c("blobworkers",!1)}}),Modernizr.addAsyncTest(function(){try{var e="Modernizr",t=new Worker("data:text/javascript;base64,dGhpcy5vbm1lc3NhZ2U9ZnVuY3Rpb24oZSl7cG9zdE1lc3NhZ2UoZS5kYXRhKX0=");t.onmessage=function(n){t.terminate(),c("dataworkers",e===n.data),t=null},t.onerror=function(){c("dataworkers",!1),t=null},setTimeout(function(){c("dataworkers",!1)},200),t.postMessage(e)}catch(n){setTimeout(function(){c("dataworkers",!1)},0)}}),Modernizr.addTest("webworkers",!!e.Worker),Modernizr.addTest("applicationcache",!!e.applicationCache),Modernizr.addTest("getusermedia",!!N("getUserMedia",navigator)),Modernizr.addTest("peerconnection",!!N("RTCPeerConnection",e)),Modernizr.addTest("audio",function(){var e=v("audio"),t=!1;try{if(t=!!e.canPlayType)t=new Boolean(t),t.ogg=e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),t.mp3=e.canPlayType("audio/mpeg;").replace(/^no$/,""),t.wav=e.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),t.m4a=(e.canPlayType("audio/x-m4a;")||e.canPlayType("audio/aac;")).replace(/^no$/,"")}catch(n){}return t}),Modernizr.addTest("typedarrays","ArrayBuffer"in e),Modernizr.addTest("battery-api",!!N("battery",navigator)),Modernizr.addTest("blobconstructor",function(){try{return!!(new Blob)}catch(e){return!1}},{aliases:["blob-constructor"]}),Modernizr.addTest("canvastext",function(){return Modernizr.canvas===!1?!1:typeof v("canvas").getContext("2d").fillText=="function"}),Modernizr.addTest("contenteditable","contentEditable"in a),Modernizr.addTest("contentsecuritypolicy","SecurityPolicy"in t),Modernizr.addTest("contextmenu","contextMenu"in a&&"HTMLMenuItemElement"in e),Modernizr.addTest("cookies",function(){t.cookie="cookietest=1";var e=t.cookie.indexOf("cookietest=")!=-1;return t.cookie="cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT",e}),Modernizr.addTest("cors",!!(e.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest)),Modernizr.addTest("customprotocolhandler",!!navigator.registerProtocolHandler),Modernizr.addTest("dart",!!N("startDart",navigator)),Modernizr.addTest("dataview",typeof DataView!="undefined"&&"getFloat64"in DataView.prototype),Modernizr.addTest("draganddrop",function(){var e=v("div");return"draggable"in e||"ondragstart"in e&&"ondrop"in e}),Modernizr.addTest("emoji",function(){if(!Modernizr.canvastext)return!1;var e=v("canvas"),t=e.getContext("2d");return t.textBaseline="top",t.font="32px Arial",t.fillText("😃",0,0),t.getImageData(16,16,1,1).data[0]!==0}),Modernizr.addAsyncTest(function(){var e=new Image;e.onerror=function(){c("exif-orientation",!1)},e.onload=function(){c("exif-orientation",e.width!==2)},e.src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/4QAiRXhpZgAASUkqAAgAAAABABIBAwABAAAABgASAAAAAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/2wBDAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/wAARCAABAAIDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD+/iiiigD/2Q=="}),Modernizr.addTest("fullscreen",!!Modernizr.prefixed("exitFullscreen",t,!1)||!!Modernizr.prefixed("cancelFullScreen",t,!1)),Modernizr.addTest("gamepads",!!N("getGamepads",navigator));var j=function(){function t(t,r){r=r||v(e[t]||"div"),t="on"+t;var i=t in r;return i||(r.setAttribute||(r=v("div")),r.setAttribute&&r.removeAttribute&&(r.setAttribute(t,""),i=o(r[t],"function"),o(r[t],"undefined")||(r[t]=n),r.removeAttribute(t))),r=null,i}var e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return t}(),F=i.hasEvent=j;Modernizr.addTest("hashchange",function(){return F("hashchange",e)===!1?!1:t.documentMode===n||t.documentMode>7}),Modernizr.addTest("history",function(){var t=navigator.userAgent;return t.indexOf("Android 2")!==-1&&t.indexOf("Mobile Safari")!==-1&&t.indexOf("Chrome")===-1?!1:e.history&&"pushState"in history}),Modernizr.addTest("ie8compat",!e.addEventListener&&t.documentMode&&t.documentMode===7),Modernizr.addTest("indexedDB",!!N("indexedDB",e));var I="search tel url email datetime date month week time datetime-local number range color".split(" "),q={},R=":)";Modernizr.inputtypes=function(e){var r,i,s,o=e.length;for(var u=0;u<o;u++)H.setAttribute("type",i=e[u]),r=H.type!=="text",r&&(H.value=R,H.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(i)&&H.style.WebkitAppearance!==n?(a.appendChild(H),s=t.defaultView,r=s.getComputedStyle&&s.getComputedStyle(H,null).WebkitAppearance!=="textfield"&&H.offsetHeight!==0,a.removeChild(H)):/^(search|tel)$/.test(i)||(/^(url|email)$/.test(i)?r=H.checkValidity&&H.checkValidity()===!1:r=H.value!=R)),q[e[u]]=!!r;return q}(I),Modernizr.addTest("json",!!e.JSON&&!!JSON.parse),Modernizr.addTest("olreversed","reversed"in v("ol")),Modernizr.addAsyncTest("mathml",function(){function n(){if(!t.body&&!t.getElementsByTagName("body")[0]){setTimeout(n,e);return}c(function(){var e=!1;if(t.createElementNS){var n="http://www.w3.org/1998/Math/MathML",r=v("div");r.style.position="absolute";var i=r.appendChild(t.createElementNS(n,"math")).appendChild(t.createElementNS(n,"mfrac"));i.appendChild(t.createElementNS(n,"mi")).appendChild(t.createTextNode("xx")),i.appendChild(t.createElementNS(n,"mi")).appendChild(t.createTextNode("yy")),t.body.appendChild(r),e=r.offsetHeight>r.offsetWidth,t.body.removeChild(r)}return e})}var e=300;setTimeout(n,e)}),Modernizr.addTest("notification",!!N("Notifications",e)),Modernizr.addTest("pagevisibility",!!N("hidden",t,!1)),Modernizr.addTest("performance",!!N("performance",e));var U=i.prefixedHyphenated=function(e){return N(e).replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")};Modernizr.addTest("pointerevents",function(){var e=!1,t=S.length;e=Modernizr.hasEvent("pointerdown");while(t--&&!e)F(S[t]+"pointerdown")&&(e=!0);return e}),Modernizr.addTest("pointerlock",!!N("pointerLockElement",t)),Modernizr.addTest("postmessage",!!e.postMessage),Modernizr.addTest("quotamanagement",function(){var t=N("StorageInfo",e);return!!(t&&"TEMPORARY"in t&&"PERSISTENT"in t)}),Modernizr.addTest("raf",!!N("requestAnimationFrame",e)),Modernizr.addTest("svg",!!t.createElementNS&&!!t.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect),Modernizr.addTest("touchevents",function(){var n;if("ontouchstart"in e||e.DocumentTouch&&t instanceof DocumentTouch)n=!0;else{var r=["@media (",O.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join("");L(r,function(e){n=e.offsetTop===9})}return n},{aliases:["touch"]}),Modernizr.addTest("unicode",function(){var e,n=v("span"),r=t.createElement("span");return L("#modernizr{font-family:Arial,sans;font-size:300em;}",function(t){n.innerHTML="&#5987",r.innerHTML="&#9734",t.appendChild(n),t.appendChild(r),e="offsetWidth"in n&&n.offsetWidth!==r.offsetWidth}),e}),Modernizr.addTest("userdata",!!v("div").addBehavior),Modernizr.addTest("vibrate",!!N("vibrate",navigator)),Modernizr.addTest("video",function(){var e=v("video"),t=!1;try{if(t=!!e.canPlayType)t=new Boolean(t),t.ogg=e.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),t.h264=e.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),t.webm=e.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,"")}catch(n){}return t}),Modernizr.addTest("webintents",!!N("startActivity",navigator)),Modernizr.addTest("websockets","WebSocket"in e||"MozWebSocket"in e),u(),f(),delete i.addTest,delete i.addAsyncTest;for(var z=0;z<Modernizr._q.length;z++)Modernizr._q[z]();e.Modernizr=Modernizr})(this,document);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.