PageSourceSearch

https://prodemand.com/Pack/modernizr-min.b69595304b.js

js prodemand.com collected 2026-10-05 09:48:03 UTC 6,664 bytes, 1 lines download raw bytes

1!function(e,t,n){var r=[],o={_version:"3.6.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout((function(){t(n[e])}),0)},addTest:function(e,t,n){r.push({name:e,fn:t,options:n})},addAsyncTest:function(e){r.push({name:null,fn:e})}},i=function(){},s=(i.prototype=o,(i=new i).addTest("localstorage",(function(){var e="modernizr";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}})),[]);function l(e,t){return typeof e===t}var a,d,c=t.documentElement,u=(i.addTest("svg",!!t.createElementNS&&!!t.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect),"svg"===c.nodeName.toLowerCase());function f(e){var t,n=c.className,r=i._config.classPrefix||"";u&&(n=n.baseVal),i._config.enableJSClass&&(t=new RegExp("(^|\\s)"+r+"no-js(\\s|$)"),n=n.replace(t,"$1"+r+"js$2")),i._config.enableClasses&&(n+=" "+r+e.join(" "+r),u?c.className.baseVal=n:c.className=n)}function p(e){return"function"!=typeof t.createElement?t.createElement(e):u?t.createElementNS.call(t,"http://www.w3.org/2000/svg",e):t.createElement.apply(t,arguments)}function h(e,t){if("object"==typeof e)for(var n in e)a(e,n)&&h(n,e[n]);else{var r=(e=e.toLowerCase()).split("."),o=i[r[0]];if(void 0!==(o=2==r.length?o[r[1]]:o))return i;t="function"==typeof t?t():t,1==r.length?i[r[0]]=t:(!i[r[0]]||i[r[0]]instanceof Boolean||(i[r[0]]=new Boolean(i[r[0]])),i[r[0]][r[1]]=t),f([(t&&0!=t?"":"no-")+r.join("-")]),i._trigger(e,t)}return i}function m(e,n,r,o){var i,s,l,a,d="modernizr",f=p("div");if((a=t.body)||((a=p(u?"svg":"body")).fake=!0),parseInt(r,10))for(;r--;)(s=p("div")).id=o?o[r]:d+(r+1),f.appendChild(s);return(i=p("style")).type="text/css",i.id="s"+d,(a.fake?a:f).appendChild(i),a.appendChild(f),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(t.createTextNode(e)),f.id=d,a.fake&&(a.style.background="",a.style.overflow="hidden",l=c.style.overflow,c.style.overflow="hidden",c.appendChild(a)),i=n(f,e),a.fake?(a.parentNode.removeChild(a),c.style.overflow=l,c.offsetHeight):f.parentNode.removeChild(f),!!i}i.addTest("canvas",(function(){var e=p("canvas");return!(!e.getContext||!e.getContext("2d"))})),a=void 0!==(d={}.hasOwnProperty)&&void 0!==d.call?function(e,t){return d.call(e,t)}:function(e,t){return t in e&&void 0===e.constructor.prototype[t]},o._l={},o.on=function(e,t){this._l[e]||(this._l[e]=[]),this._l[e].push(t),i.hasOwnProperty(e)&&setTimeout((function(){i._trigger(e,i[e])}),0)},o._trigger=function(e,t){var n;this._l[e]&&(n=this._l[e],setTimeout((function(){for(var e=0;e<n.length;e++)(0,n[e])(t)}),0),delete this._l[e])},i._q.push((function(){o.addTest=h}));var g=o.testStyles=m,v=(i.addTest("checked",(function(){return g("#modernizr {position:absolute} #modernizr input {margin-left:10px} #modernizr :checked {margin-left:20px;display:block}",(function(e){var t=p("input");return t.setAttribute("type","checkbox"),t.setAttribute("checked","checked"),e.appendChild(t),20===t.offsetLeft}))})),g("#modernizr div {width:1px} #modernizr div:nth-child(2n) {width:2px;}",(function(e){for(var t=e.getElementsByTagName("div"),n=!0,r=0;r<5;r++)n=n&&t[r].offsetWidth===r%2+1;i.addTest("nthchild",n)}),5),"Moz O ms Webkit"),y=o._config.usePrefixes?v.split(" "):[],C=(o._cssomPrefixes=y,o._config.usePrefixes?v.toLowerCase().split(" "):[]);o._domPrefixes=C;var w,S,x,_,z,T,b,k={elem:p("modernizr")},E=(i._q.push((function(){delete k.elem})),{style:k.elem.style});function P(e){return e.replace(/([A-Z])/g,(function(e,t){return"-"+t.toLowerCase()})).replace(/^ms-/,"-ms-")}function N(t,r){var o=t.length;if("CSS"in e&&"supports"in e.CSS){for(;o--;)if(e.CSS.supports(P(t[o]),r))return!0;return!1}if("CSSSupportsRule"in e){for(var i=[];o--;)i.push("("+P(t[o])+":"+r+")");return m("@supports ("+(i=i.join(" or "))+") { #modernizr { position: absolute; } }",(function(t){return"absolute"==(n="position","getComputedStyle"in e?(r=getComputedStyle.call(e,t,null),o=e.console,null!==r?n&&(r=r.getPropertyValue(n)):o&&o[o.error?"error":"log"].call(o,"getComputedStyle returning null, its possible modernizr test results are inaccurate")):r=t.currentStyle&&t.currentStyle[n],r);var n,r,o}))}return n}function j(e,t,r,o,i){var s=e.charAt(0).toUpperCase()+e.slice(1),a=(e+" "+y.join(s+" ")+s).split(" ");if(l(t,"string")||void 0===t){var d=a,c=t,u=o,f=i;if(f=void 0!==f&&f,void 0!==u&&void 0!==(a=N(d,u)))return a;for(var h,m,g,v,w,S=["modernizr","tspan","samp"];!E.style&&S.length;)h=!0,E.modElem=p(S.shift()),E.style=E.modElem.style;function x(){h&&(delete E.style,delete E.modElem)}for(g=d.length,m=0;m<g;m++)if(v=d[m],w=E.style[v],~(""+v).indexOf("-")&&(v=v.replace(/([a-z])-([a-z])/g,(function(e,t,n){return t+n.toUpperCase()})).replace(/^-/,"")),E.style[v]!==n){if(f||void 0===u)return x(),"pfx"!=c||v;try{E.style[v]=u}catch(e){}if(E.style[v]!=w)return x(),"pfx"!=c||v}x()}else{var _,z,T,b,k=(e+" "+C.join(s+" ")+s).split(" "),P=t,j=r;for(_ in k)if(k[_]in P)return!1===j?k[_]:l(b=P[k[_]],"function")?(z=b,T=j||P,function(){return z.apply(T,arguments)}):b}return!1}function A(e,t,r){return j(e,n,n,t,r)}for(b in i._q.unshift((function(){delete E.style})),o.testAllProps=j,o.testAllProps=A,i.addTest("csstransitions",A("transition","all",!0)),i.addTest("userselect",A("userSelect","none",!0)),r)if(r.hasOwnProperty(b)){if(w=[],(S=r[b]).name&&(w.push(S.name.toLowerCase()),S.options)&&S.options.aliases&&S.options.aliases.length)for(x=0;x<S.options.aliases.length;x++)w.push(S.options.aliases[x].toLowerCase());for(_=l(S.fn,"function")?S.fn():S.fn,z=0;z<w.length;z++)1===(T=w[z].split(".")).length?i[T[0]]=_:(!i[T[0]]||i[T[0]]instanceof Boolean||(i[T[0]]=new Boolean(i[T[0]])),i[T[0]][T[1]]=_),s.push((_?"":"no-")+T.join("-"))}f(s),delete o.addTest,delete o.addAsyncTest;for(var L=0;L<i._q.length;L++)i._q[L]();e.Modernizr=i}(window,document),function(){"use strict";var e,t;Modernizr.testStyles(" #modernizr div:nth-child(3n){width:10px;} ",(function(e,t){var n=!1,r=e.getElementsByTagName("div");7==r.length&&(n=!(e=window.getComputedStyle?function(e){return"10px"==getComputedStyle(r[e],null).width}:function(e){return"10px"==r[e].currentStyle.width})(0)&&!e(1)&&e(2)&&!e(3)&&!e(4)&&e(5)&&!e(6)),Modernizr.addTest("nthchild",n)}),7),Modernizr.svg&&(e=document.head,(t=document.createElement("link")).rel="stylesheet",t.type="text/css",t.href="/Content/Styles/fonts.css",e.appendChild(t)),Modernizr.addTest("csschecked",(function(){return Modernizr.testStyles("#modernizr input {margin-left:0px;} #modernizr input:checked {margin-left: 20px;}",(function(e){var t=document.createElement("input");return t.type="checkbox",t.checked="checked",e.appendChild(t),20<=e.last
1Child.offsetLeft}))}))}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.