src/main/resources/static/home/js/modernizr.min.js

(完整代码) 3KB

window.Modernizr=function(e,d,i){function n(e,t,n,o){var r,i,c,a,u=d.createElement("div"),s=d.body,l=s||d.createElement("body");if(parseInt(n,10))for(;n--;)(c=d.createElement("div")).id=o?o[n]:p+(n+1),u.appendChild(c);return r=["&#173;",'<style id="s',p,'">',e,"</style>"].join(""),u.id=p,(s?u:l).innerHTML+=r,l.appendChild(u),s||(l.style.background="",l.style.overflow="hidden",a=f.style.overflow,f.style.overflow="hidden",f.appendChild(l)),i=t(u,e),s?u.parentNode.removeChild(u):(l.parentNode.removeChild(l),f.style.overflow=a),!!i}var t,o,r,c={},f=d.documentElement,p="modernizr",a=d.createElement(p),u=a.style,s=" -webkit- -moz- -o- -ms- ".split(" "),l="Webkit Moz O ms",v=l.split(" "),m=l.toLowerCase().split(" "),y={},h=[],b=h.slice,w=(r={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(e,t){t=t||d.createElement(r[e]||"div");var n=(e="on"+e)in t;return n||(t.setAttribute||(t=d.createElement("div")),t.setAttribute&&t.removeAttribute&&(t.setAttribute(e,""),n=C(t[e],"function"),C(t[e],"undefined")||(t[e]=i),t.removeAttribute(e))),t=null,n}),E={}.hasOwnProperty;function T(e){u.cssText=e}function C(e,t){return typeof e===t}function g(e,t){for(var n in e){var o=e[n];if(!~(""+o).indexOf("-")&&u[o]!==i)return"pfx"!=t||o}return!1}function x(e,t,n){var o=e.charAt(0).toUpperCase()+e.slice(1),r=(e+" "+v.join(o+" ")+o).split(" ");return C(t,"string")||C(t,"undefined")?g(r,t):function(e,t,n){for(var o in e){var r=t[e[o]];if(r!==i)return!1===n?e[o]:C(r,"function")?r.bind(n||t):r}return!1}(r=(e+" "+m.join(o+" ")+o).split(" "),t,n)}for(var P in o=C(E,"undefined")||C(E.call,"undefined")?function(e,t){return t in e&&C(e.constructor.prototype[t],"undefined")}:function(e,t){return E.call(e,t)},Function.prototype.bind||(Function.prototype.bind=function(o){var r=this;if("function"!=typeof r)throw new TypeError;var i=b.call(arguments,1),c=function(){if(this instanceof c){function e(){}e.prototype=r.prototype;var t=new e,n=r.apply(t,i.concat(b.call(arguments)));return Object(n)===n?n:t}return r.apply(o,i.concat(b.call(arguments)))};return c}),y.touch=function(){var t;return"ontouchstart"in e||e.DocumentTouch&&d instanceof DocumentTouch?t=!0:n(["@media (",s.join("touch-enabled),("),p,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(e){t=9===e.offsetTop}),t},y.video=function(){var e=d.createElement("video"),t=!1;try{(t=!!e.canPlayType)&&((t=new Boolean(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(e){}return t},y)o(y,P)&&(t=P.toLowerCase(),c[t]=y[P](),h.push((c[t]?"":"no-")+t));return c.addTest=function(e,t){if("object"==typeof e)for(var n in e)o(e,n)&&c.addTest(n,e[n]);else{if(e=e.toLowerCase(),c[e]!==i)return c;t="function"==typeof t?t():t,"undefined"!=typeof enableClasses&&enableClasses&&(f.className+=" "+(t?"":"no-")+e),c[e]=t}return c},T(""),a=null,c._version="2.7.1",c._prefixes=s,c._domPrefixes=m,c._cssomPrefixes=v,c.hasEvent=w,c.testProp=function(e){return g([e])},c.testAllProps=x,c.testStyles=n,c.prefixed=function(e,t,n){return t?x(e,t,n):x(e,"pfx")},c}(this,this.document);

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。