PageSourceSearch

https://www.orkincanada.ca/drive/themes/orkin/assets/dist/js/modernizr.js

js orkincanada.ca collected 2026-09-24 21:58:21 UTC 4,542 bytes, 1 lines download raw bytes

1!function(e,t,n){function o(e,t){return typeof e===t}function r(e,t){return!!~(""+e).indexOf(t)}function s(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):g?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function i(){var e=t.body;return e||(e=s(g?"svg":"body"),e.fake=!0),e}function a(e,n,o,r){var a,l,u,f,c="modernizr",d=s("div"),p=i();if(parseInt(o,10))for(;o--;)u=s("div"),u.id=r?r[o]:c+(o+1),d.appendChild(u);return a=s("style"),a.type="text/css",a.id="s"+c,(p.fake?p:d).appendChild(a),p.appendChild(d),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(t.createTextNode(e)),d.id=c,p.fake&&(p.style.background="",p.style.overflow="hidden",f=y.style.overflow,y.style.overflow="hidden",y.appendChild(p)),l=n(d,e),p.fake?(p.parentNode.removeChild(p),y.style.overflow=f,y.offsetHeight):d.parentNode.removeChild(d),!!l}function l(e){return e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function u(t,n,o){var r;if("getComputedStyle"in e){r=getComputedStyle.call(e,t,n);var s=e.console;if(null!==r)o&&(r=r.getPropertyValue(o));else if(s){var i=s.error?"error":"log";s[i].call(s,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}}else r=!n&&t.currentStyle&&t.currentStyle[o];return r}function f(t,o){var r=t.length;if("CSS"in e&&"supports"in e.CSS){for(;r--;)if(e.CSS.supports(l(t[r]),o))return!0;return!1}if("CSSSupportsRule"in e){for(var s=[];r--;)s.push("("+l(t[r])+":"+o+")");return s=s.join(" or "),a("@supports ("+s+") { #modernizr { position: absolute; } }",function(e){return"absolute"==u(e,null,"position")})}return n}function c(e){return e.replace(/([a-z])-([a-z])/g,function(e,t,n){return t+n.toUpperCase()}).replace(/^-/,"")}function d(e,t,i,a){function l(){d&&(delete C.style,delete C.modElem)}if(a=!o(a,"undefined")&&a,!o(i,"undefined")){var u=f(e,i);if(!o(u,"undefined"))return u}for(var d,p,m,h,v,y=["modernizr","tspan","samp"];!C.style&&y.length;)d=!0,C.modElem=s(y.shift()),C.style=C.modElem.style;for(m=e.length,p=0;p<m;p++)if(h=e[p],v=C.style[h],r(h,"-")&&(h=c(h)),C.style[h]!==n){if(a||o(i,"undefined"))return l(),"pfx"!=t||h;try{C.style[h]=i}catch(e){}if(C.style[h]!=v)return l(),"pfx"!=t||h}return l(),!1}var p=[],m={_version:"3.5.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){p.push({name:e,fn:t,options:n})},addAsyncTest:function(e){p.push({name:null,fn:e})}},h=function(){};h.prototype=m,h=new h;var v=[],y=t.documentElement,g="svg"===y.nodeName.toLowerCase(),S={elem:s("modernizr")};h._q.push(function(){delete S.elem});var C={style:S.elem.style};h._q.unshift(function(){delete C.style});m.testProp=function(e,t,o){return d([e],n,t,o)};h.addTest("svg",!!t.createElementNS&&!!t.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect);var w=m._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];m._prefixes=w;var b=m.testStyles=a;h.addTest("touchevents",function(){var n;if("ontouchstart"in e||e.DocumentTouch&&t instanceof DocumentTouch)n=!0;else{var o=["@media (",w.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join("");b(o,function(e){n=9===e.offsetTop})}return n});var x=function(){var t=e.matchMedia||e.msMatchMedia;return t?function(e){var n=t(e);return n&&n.matches||!1}:function(t){var n=!1;return a("@media "+t+" { #modernizr { position: absolute; } }",function(t){n="absolute"==(e.getComputedStyle?e.getComputedStyle(t,null):t.currentStyle).position}),n}}();m.mq=x,h.addTest("mediaqueries",x("only all")),function(){var e,t,n,r,s,i,a;for(var l in p)if(p.hasOwnProperty(l)){if(e=[],t=p[l],t.name&&(e.push(t.name.toLowerCase()),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());for(r=o(t.fn,"function")?t.fn():t.fn,s=0;s<e.length;s++)i=e[s],a=i.split("."),1===a.length?h[a[0]]=r:(!h[a[0]]||h[a[0]]instanceof Boolean||(h[a[0]]=new Boolean(h[a[0]])
vendor: 436 bytes, line 1
1),h[a[0]][a[1]]=r),v.push((r?"":"no-")+a.join("-"))}}(),function(e){var t=y.className,n=h._config.classPrefix||"";if(g&&(t=t.baseVal),h._config.enableJSClass){var o=new RegExp("(^|\\s)"+n+"no-js(\\s|$)");t=t.replace(o,"$1"+n+"js$2")}h._config.enableClasses&&(t+=" "+n+e.join(" "+n),g?y.className.baseVal=t:y.className=t)}(v),delete m.addTest,delete m.addAsyncTest;for(var T=0;T<h._q.length;T++)h._q[T]();e.Modernizr=h}(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.