PageSourceSearch

https://kimlawhk.com/bs/wp-content/themes/Avada/includes/lib/assets/min/js/library/modernizr.js?ver=3.3.1

js kimlawhk.com collected 2026-10-08 23:32:22 UTC 13,551 bytes, 1 lines download raw bytes

1!function(a,b,c){function d(a,b){return typeof a===b}function e(a){var b=y.className,c=x._config.classPrefix||"";if(z&&(b=b.baseVal),x._config.enableJSClass){var d=new RegExp("(^|\\s)"+c+"no-js(\\s|$)");b=b.replace(d,"$1"+c+"js$2")}x._config.enableClasses&&(b+=" "+c+a.join(" "+c),z?y.className.baseVal=b:y.className=b)}function f(a,b){if("object"==typeof a)for(var c in a)C(a,c)&&f(c,a[c]);else{a=a.toLowerCase();var d=a.split("."),g=x[d[0]];if(2==d.length&&(g=g[d[1]]),void 0!==g)return x;b="function"==typeof b?b():b,1==d.length?x[d[0]]=b:(!x[d[0]]||x[d[0]]instanceof Boolean||(x[d[0]]=new Boolean(x[d[0]])),x[d[0]][d[1]]=b),e([(b&&0!=b?"":"no-")+d.join("-")]),x._trigger(a,b)}return x}function g(){return"function"!=typeof b.createElement?b.createElement(arguments[0]):z?b.createElementNS.call(b,"http://www.w3.org/2000/svg",arguments[0]):b.createElement.apply(b,arguments)}function h(a){return a.replace(/([a-z])-([a-z])/g,function(a,b,c){return b+c.toUpperCase()}).replace(/^-/,"")}function i(a,b){return!!~(""+a).indexOf(b)}function j(){var a=b.body;return a||(a=g(z?"svg":"body"),a.fake=!0),a}function k(a,c,d,e){var f,h,i,k,l="modernizr",m=g("div"),n=j();if(parseInt(d,10))for(;d--;)i=g("div"),i.id=e?e[d]:l+(d+1),m.appendChild(i);return f=g("style"),f.type="text/css",f.id="s"+l,(n.fake?n:m).appendChild(f),n.appendChild(m),f.styleSheet?f.styleSheet.cssText=a:f.appendChild(b.createTextNode(a)),m.id=l,n.fake&&(n.style.background="",n.style.overflow="hidden",k=y.style.overflow,y.style.overflow="hidden",y.appendChild(n)),h=c(m,a),n.fake?(n.parentNode.removeChild(n),y.style.overflow=k,y.offsetHeight):m.parentNode.removeChild(m),!!h}function l(a,b){return function(){return a.apply(b,arguments)}}function m(a,b,c){var e;for(var f in a)if(a[f]in b)return!1===c?a[f]:(e=b[a[f]],d(e,"function")?l(e,c||b):e);return!1}function n(a){return a.replace(/([A-Z])/g,function(a,b){return"-"+b.toLowerCase()}).replace(/^ms-/,"-ms-")}function o(b,c,d){var e;if("getComputedStyle"in a){e=getComputedStyle.call(a,b,c);var f=a.console;if(null!==e)d&&(e=e.getPropertyValue(d));else if(f){var g=f.error?"error":"log";f[g].call(f,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}}else e=!c&&b.currentStyle&&b.currentStyle[d];return e}function p(b,d){var e=b.length;if("CSS"in a&&"supports"in a.CSS){for(;e--;)if(a.CSS.supports(n(b[e]),d))return!0;return!1}if("CSSSupportsRule"in a){for(var f=[];e--;)f.push("("+n(b[e])+":"+d+")");return f=f.join(" or "),k("@supports ("+f+") { #modernizr { position: absolute; } }",function(a){return"absolute"==o(a,null,"position")})}return c}function q(a,b,e,f){function j(){l&&(delete T.style,delete T.modElem)}if(f=!d(f,"undefined")&&f,!d(e,"undefined")){var k=p(a,e);if(!d(k,"undefined"))return k}for(var l,m,n,o,q,r=["modernizr","tspan","samp"];!T.style&&r.length;)l=!0,T.modElem=g(r.shift()),T.style=T.modElem.style;for(n=a.length,m=0;m<n;m++)if(o=a[m],q=T.style[o],i(o,"-")&&(o=h(o)),T.style[o]!==c){if(f||d(e,"undefined"))return j(),"pfx"!=b||o;try{T.style[o]=e}catch(a){}if(T.style[o]!=q)return j(),"pfx"!=b||o}return j(),!1}function r(a,b,c,e,f){var g=a.charAt(0).toUpperCase()+a.slice(1),h=(a+" "+P.join(g+" ")+g).split(" ");return d(b,"string")||d(b,"undefined")?q(h,b,e,f):(h=(a+" "+E.join(g+" ")+g).split(" "),m(h,b,c))}function s(a,b){var c=a.deleteDatabase(b);c.onsuccess=function(){f("indexeddb.deletedatabase",!0)},c.onerror=function(){f("indexeddb.deletedatabase",!1)}}function t(a,b,d){return r(a,c,c,b,d)}var u=[],v=[],w={_version:"3.4.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(a,b){var c=this;setTimeout(function(){b(c[a])},0)},addTest:function(a,b,c){v.push({name:a,fn:b,options:c})},addAsyncTest:function(a){v.push({name:null,fn:a})}},x=function(){};x.prototype=w,x=new x;var y=b.documentElement,z="svg"===y.nodeName.toLowerCase(),A=w._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];w._prefixes=A,x.addTest("applicationcache","applicationCache"in a),x.addTest("geolocation","geolocation"in navigator),x.addTest("history",function(){var b=navigator.userAgent;return(-1===b.indexOf("Android 2.")&&-1===b.indexOf("Android 4.0")||-1===b.indexOf("Mobile Safari")||-1!==b.indexOf("Chrome")||-1!==b.indexOf("Windows Phone")||"file:"===location.protocol)&&(a.history&&"pushState"in a.history)}),x.addTest("postmessage","postMessage"in a);var B=!1;try{B="WebSocket"in a&&2===a.WebSocket.CLOSING}catch(a){}x.addTest("websockets",B),x.addTest("localstorage",function(){var a="modernizr";try{return localStorage.setItem(a,a),localStorage.removeItem(a),!0}catch(a){return!1}}),x.addTest("sessionstorage",function(){var a="modernizr";try{return sessionStorage.setItem(a,a),sessionStorage.removeItem(a),!0}catch(a){return!1}}),x.addTest("websqldatabase","openDatabase"in a),x.addTest("webworkers","Worker"
1in a);var C;!function(){var a={}.hasOwnProperty;C=d(a,"undefined")||d(a.call,"undefined")?function(a,b){return b in a&&d(a.constructor.prototype[b],"undefined")}:function(b,c){return a.call(b,c)}}(),w._l={},w.on=function(a,b){this._l[a]||(this._l[a]=[]),this._l[a].push(b),x.hasOwnProperty(a)&&setTimeout(function(){x._trigger(a,x[a])},0)},w._trigger=function(a,b){if(this._l[a]){var c=this._l[a];setTimeout(function(){var a;for(a=0;a<c.length;a++)(0,c[a])(b)},0),delete this._l[a]}},x._q.push(function(){w.addTest=f});var D="Moz O ms Webkit",E=w._config.usePrefixes?D.toLowerCase().split(" "):[];w._domPrefixes=E;var F=function(){function a(a,b){var e;return!!a&&(b&&"string"!=typeof b||(b=g(b||"div")),a="on"+a,e=a in b,!e&&d&&(b.setAttribute||(b=g("div")),b.setAttribute(a,""),e="function"==typeof b[a],b[a]!==c&&(b[a]=c),b.removeAttribute(a)),e)}var d=!("onblur"in b.documentElement);return a}();w.hasEvent=F,x.addTest("hashchange",function(){return!1!==F("hashchange",a)&&(b.documentMode===c||b.documentMode>7)}),x.addTest("canvas",function(){var a=g("canvas");return!(!a.getContext||!a.getContext("2d"))}),x.addTest("canvastext",function(){return!1!==x.canvas&&"function"==typeof g("canvas").getContext("2d").fillText}),x.addTest("audio",function(){var a=g("audio"),b=!1;try{b=!!a.canPlayType,b&&(b=new Boolean(b),b.ogg=a.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),b.mp3=a.canPlayType('audio/mpeg; codecs="mp3"').replace(/^no$/,""),b.opus=a.canPlayType('audio/ogg; codecs="opus"')||a.canPlayType('audio/webm; codecs="opus"').replace(/^no$/,""),b.wav=a.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),b.m4a=(a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(a){}return b}),x.addTest("video",function(){var a=g("video"),b=!1;try{b=!!a.canPlayType,b&&(b=new Boolean(b),b.ogg=a.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),b.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),b.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""),b.vp9=a.canPlayType('video/webm; codecs="vp9"').replace(/^no$/,""),b.hls=a.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/,""))}catch(a){}return b}),x.addTest("webgl",function(){var b=g("canvas"),c="probablySupportsContext"in b?"probablySupportsContext":"supportsContext";return c in b?b[c]("webgl")||b[c]("experimental-webgl"):"WebGLRenderingContext"in a}),x.addTest("cssgradients",function(){for(var a,b="background-image:",c="",d=0,e=A.length-1;d<e;d++)a=0===d?"to ":"",c+=b+A[d]+"linear-gradient("+a+"left top, #9f9, white);";x._config.usePrefixes&&(c+=b+"-webkit-gradient(linear,left top,right bottom,from(#9f9),to(white));");var f=g("a"),h=f.style;return h.cssText=c,(""+h.backgroundImage).indexOf("gradient")>-1}),x.addTest("multiplebgs",function(){var a=g("a").style;return a.cssText="background:url(https://),url(https://),red url(https://)",/(url\s*\(.*?){3}/.test(a.background)}),x.addTest("opacity",function(){var a=g("a").style;return a.cssText=A.join("opacity:.55;"),/^0.55$/.test(a.opacity)}),x.addTest("rgba",function(){var a=g("a").style;return a.cssText="background-color:rgba(150,255,150,.5)",(""+a.backgroundColor).indexOf("rgba")>-1}),x.addTest("inlinesvg",function(){var a=g("div");return a.innerHTML="<svg/>","http://www.w3.org/2000/svg"==("undefined"!=typeof SVGRect&&a.firstChild&&a.firstChild.namespaceURI)});var G=g("input"),H="autocomplete autofocus list placeholder max min multiple pattern required step".split(" "),I={};x.input=function(b){for(var c=0,d=b.length;c<d;c++)I[b[c]]=!!(b[c]in G);return I.list&&(I.list=!(!g("datalist")||!a.HTMLDataListElement)),I}(H);var J="search tel url email datetime date month week time datetime-local number range color".split(" "),K={};x.inputtypes=function(a){for(var d,e,f,g=a.length,h=0;h<g;h++)G.setAttribute("type",d=a[h]),f="text"!==G.type&&"style"in G,f&&(G.value="1)",G.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(d)&&G.style.WebkitAppearance!==c?(y.appendChild(G),e=b.defaultView,f=e.getComputedStyle&&"textfield"!==e.getComputedStyle(G,null).WebkitAppearance&&0!==G.offsetHeight,y.removeChild(G)):/^(search|tel)$/.test(d)||(f=/^(url|email)$/.test(d)?G.checkValidity&&!1===G.checkValidity():"1)"!=G.value)),K[a[h]]=!!f;return K}(J),x.addTest("hsla",function(){var a=g("a").style;return a.cssText="background-color:hsla(120,40%,100%,.5)",i(a.backgroundColor,"rgba")||i(a.backgroundColor,"hsla")});var L="CSS"in a&&"supports"in a.CSS,M="supportsCSS"in a;x.addTest("supports",L||M);var N=function(){var b=a.matchMedia||a.msMatchMedia;return b?function(a){var c=b(a);return c&&c.matches||!1}:function(b){var c=!1;return k("@media "+b+" { #modernizr { position: absolute; } }",function(b){c="absolute"==(a.getComputedStyle?a.getComputedStyle(b,null):b.currentStyle).position}),c}}();w.mq=N;var O=w.testStyles=k;x.addTest("touchevents",function(){var c;if("ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch)c=!0;else{var d=["@media (",A.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join("");O(d,function(a){c=9===a.offsetTop})}return c}),function(){var a=navigator.userAgent,b=a.match(/w(eb)?osbrowser/gi),c=a.match(/windows phone/gi)&&a.match(/iemobile\/([0-9])+/gi)&&parseFloat(RegExp.$1)>=9;return b||c}()?x.addTest("fontface",!1):O('@font-face {font-family:"font";src:url("https://")}',function(a,c){var d=b.getElementById("smodernizr"),e=d.sheet||d.styleSheet,f=e?e.cssRules&&e.cssRules[0]?e.cssRules[0].cssText:e.cssText||"":"",g=/src/i.test(f)&&0===f.indexOf(c.split(" ")[0]);x.addTest("fontface",g)}),O('#modernizr{font:0/0 a}#modernizr:after{content:":)";visibility:hidden;font:7px/1 a}',function(a){x.addTest("generatedcontent",a.offsetHeight>=6)});var P=w._config.usePrefixes?D.split(" "):[];w._cssomPrefixes=P;var Q=function(b){var d,e=A.length,f=a.CSSRule;if(void 0===f)return c;if(!b)return!1;if(b=b.replace(/^@/,""),(d=b.replace(/-/g,"_").toUpperCase()+"_RULE")in f)return"@"+b;for(var g=0;g<e;g++){var h=A[g];if(h.toUpperCase()+"_"+d in f)return"@-"+h.toLowerCase()+"-"+b}return!1};w.atRule=Q;var R={}.toString;x.addTest("svgclippaths",function(){return!!b.createElementNS&&/SVGClipPath/.test(R.call(b.createElementNS("http://www.w3.org/2000/svg","clipPath")))}),x.addTest("smil",function(){return!!b.createElementNS&&/SVGAnimate/.test(R.call(b.createElementNS("http://www.w3.org/2000/svg","animate")))});var S={elem:g("modernizr")};x._q.push(function(){delete S.elem});var T={style:S.elem.style};x._q.unshift(function(){delete T.style});var U=w.testProp=function(a,b,d){return q([a],c,b,d)};x.addTest("textshadow",U("textShadow","1px 1px")),w.testAllProps=r;var V=w.prefixed=function(a,b,c){return 0===a.indexOf("@")?Q(a):(-1!=a.indexOf("-")&&(a=h(a)),b?r(a,b,c):r(a,"pfx"))};x.addAsyncTest(function(){var b;try{b=V("indexedDB",a)}catch(a){}if(b){var c="modernizr-"+Math.random(),d=b.open(c);
1d.onerror=function(){d.error&&"InvalidStateError"===d.error.name?f("indexeddb",!1):(f("indexeddb",!0),s(b,c))},d.onsuccess=function(){f("indexeddb",!0),s(b,c)}}else f("indexeddb",!1)}),w.testAllProps=t,x.addTest("cssanimations",t("animationName","a",!0)),x.addTest("backgroundsize",t("backgroundSize","100%",!0)),x.addTest("borderimage",t("borderImage","url() 1",!0)),x.addTest("borderradius",t("borderRadius","0px",!0)),x.addTest("boxshadow",t("boxShadow","1px 1px",!0)),x.addTest("flexbox",t("flexBasis","1px",!0)),x.addTest("cssreflections",t("boxReflect","above",!0)),x.addTest("csstransforms",function(){return-1===navigator.userAgent.indexOf("Android 2.")&&t("transform","scale(1)",!0)}),x.addTest("csstransforms3d",function(){var a=!!t("perspective","1px",!0),b=x._config.usePrefixes;if(a&&(!b||"webkitPerspective"in y.style)){var c;x.supports?c="@supports (perspective: 1px)":(c="@media (transform-3d)",b&&(c+=",(-webkit-transform-3d)")),c+="{#modernizr{width:7px;height:18px;margin:0;padding:0;border:0}}",O("#modernizr{width:0;height:0}"+c,function(b){a=7===b.offsetWidth&&18===b.offsetHeight})}return a}),x.addTest("csstransitions",t("transition","all",!0)),function(){var a,b,c,e,f,g,h;for(var i in v)if(v.hasOwnProperty(i)){if(a=[],b=v[i],b.name&&(a.push(b.name.toLowerCase()),b.options&&b.options.aliases&&b.options.aliases.length))for(c=0;c<b.options.aliases.length;c++)a.push(b.options.aliases[c].toLowerCase());for(e=d(b.fn,"function")?b.fn():b.fn,f=0;f<a.length;f++)g=a[f],h=g.split("."),1===h.length?x[h[0]]=e:(!x[h[0]]||x[h[0]]instanceof Boolean||(x[h[0]]=new Boolean(x[h[0]])),x[h[0]][h[1]]=e),u.push((e?"":"no-")+h.join("-"))}}(),e(u),delete w.addTest,delete w.addAsyncTest;for(var W=0;W<x._q.length;W++)x._q[W]();a.Modernizr=x}(window,document);

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.