PageSourceSearch

https://www.duracell.co.uk/app/themes/duracell/js/modernizr.js?ver=1.400.14

js duracell.co.uk collected 2026-10-01 12:16:57 UTC 6,796 bytes, 1 lines download raw bytes

1!function(e,t,n){function r(e,t){return typeof e===t}function o(){var e,t,n,o,i,s,a;for(var l in C)if(C.hasOwnProperty(l)){if(e=[],t=C[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(o=r(t.fn,"function")?t.fn():t.fn,i=0;i<e.length;i++)s=e[i],a=s.split("."),1===a.length?S[a[0]]=o:(!S[a[0]]||S[a[0]]instanceof Boolean||(S[a[0]]=new Boolean(S[a[0]])),S[a[0]][a[1]]=o),T.push((o?"":"no-")+a.join("-"))}}function i(e){var t=P.className,n=S._config.classPrefix||"";if(E&&(t=t.baseVal),S._config.enableJSClass){var r=new RegExp("(^|\\s)"+n+"no-js(\\s|$)");t=t.replace(r,"$1"+n+"js$2")}S._config.enableClasses&&(t+=" "+n+e.join(" "+n),E?P.className.baseVal=t:P.className=t)}function s(e,t){if("object"==typeof e)for(var n in e)_(e,n)&&s(n,e[n]);else{e=e.toLowerCase();var r=e.split("."),o=S[r[0]];if(2==r.length&&(o=o[r[1]]),"undefined"!=typeof o)return S;t="function"==typeof t?t():t,1==r.length?S[r[0]]=t:(!S[r[0]]||S[r[0]]instanceof Boolean||(S[r[0]]=new Boolean(S[r[0]])),S[r[0]][r[1]]=t),i([(t&&0!=t?"":"no-")+r.join("-")]),S._trigger(e,t)}return S}function a(e,t){return!!~(""+e).indexOf(t)}function l(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):E?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function u(){var e=t.body;return e||(e=l(E?"svg":"body"),e.fake=!0),e}function c(e,n,r,o){var i,s,a,c,f="modernizr",d=l("div"),p=u();if(parseInt(r,10))for(;r--;)a=l("div"),a.id=o?o[r]:f+(r+1),d.appendChild(a);return i=l("style"),i.type="text/css",i.id="s"+f,(p.fake?p:d).appendChild(i),p.appendChild(d),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(t.createTextNode(e)),d.id=f,p.fake&&(p.style.background="",p.style.overflow="hidden",c=P.style.overflow,P.style.overflow="hidden",P.appendChild(p)),s=n(d,e),p.fake?(p.parentNode.removeChild(p),P.style.overflow=c,P.offsetHeight):d.parentNode.removeChild(d),!!s}function f(e){return e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function d(t,n,r){var o;if("getComputedStyle"in e){o=getComputedStyle.call(e,t,n);var i=e.console;if(null!==o)r&&(o=o.getPropertyValue(r));else if(i){var s=i.error?"error":"log";i[s].call(i,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}}else o=!n&&t.currentStyle&&t.currentStyle[r];return o}function p(t,r){var o=t.length;if("CSS"in e&&"supports"in e.CSS){for(;o--;)if(e.CSS.supports(f(t[o]),r))return!0;return!1}if("CSSSupportsRule"in e){for(var i=[];o--;)i.push("("+f(t[o])+":"+r+")");return i=i.join(" or "),c("@supports ("+i+") { #modernizr { position: absolute; } }",function(e){return"absolute"==d(e,null,"position")})}return n}function v(e){return e.replace(/([a-z])-([a-z])/g,function(e,t,n){return t+n.toUpperCase()}).replace(/^-/,"")}function m(e,t,o,i){function s(){c&&(delete A.style,delete A.modElem)}if(i=!r(i,"undefined")&&i,!r(o,"undefined")){var u=p(e,o);if(!r(u,"undefined"))return u}for(var c,f,d,m,y,h=["modernizr","tspan","samp"];!A.style&&h.length;)c=!0,A.modElem=l(h.shift()),A.style=A.modElem.style;for(d=e.length,f=0;f<d;f++)if(m=e[f],y=A.style[m],a(m,"-")&&(m=v(m)),A.style[m]!==n){if(i||r(o,"undefined"))return s(),"pfx"!=t||m;try{A.style[m]=o}catch(g){}if(A.style[m]!=y)return s(),"pfx"!=t||m}return s(),!1}function y(e,t){return function(){return e.apply(t,arguments)}}function h(e,t,n){var o;for(var i in e)if(e[i]in t)return n===!1?e[i]:(o=t[e[i]],r(o,"function")?y(o,n||t):o);return!1}function g(e,t,n,o,i){var s=e.charAt(0).toUpperCase()+e.slice(1),a=(e+" "+$.join(s+" ")+s).split(" ");return r(t,"string")||r(t,"undefined")?m(a,t,o,i):(a=(e+" "+q.join(s+" ")+s).split(" "),h(a,t,n))}function w(e,t,r){return g(e,n,n,t,r)}var C=[],b={_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){C.push({name:e,fn:t,options:n})},addAsyncTest:function(e){C.push({name:null,fn:e})}},S=function(){};S.prototype=b,S=new S;var _,T=[],P=t.documentElement,E="svg"===P.nodeName.toLowerCase();!function(){var e={}.hasOwnProperty;_=r(e,"undefined")||r(e.call,"undefined")?function(e,t){return t in e&&r(e.constructor.prototype[t],"undefined")}:function(t,n){return e.call(t,n)}}(),b._l={},b.on=function(e,t){this._l[e]||(this._l[e]=[]),this._l[e].push(t),S.hasOwnProperty(e)&&setTimeout(function(){S._trigger(e,S[e])},0)},b._trigger=function(e,t){if(this._l[e]){var n=this._l[e];setTimeout(function(){var e,r;for(e=0;e<n.length;e++)(r=n[e])(t)},0),delete this._l[e]}},S._q.push(function(){b.addTest=s});var x={elem:l("modernizr")};S._q.push(function(){delete x.elem});var A={style:x.elem.style};S._q.unshift(function(){delete A.style});var z=(b.testProp=function(e,t,r){return m([e],n,t,r)},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 c("@media "+t+" { #modernizr { position: absolute; } }",function(t){n="absolute"==(e.getComputedStyle?e.getComputedStyle(t,null):t.currentStyle).position}),n}}());b.mq=z;var N=function(){function e(e,t){var o;return!!e&&(t&&"string"!=typeof t||(t=l(t||"div")),e="on"+e,o=e in t,!o&&r&&(t.setAttribute||(t=l("div")),t.setAttribute(e,""),o="function"==typeof t[e],t[e]!==n&&(t[e]=n),t.removeAttribute(e)),o)}
1var r=!("onblur"in t.documentElement);return e}();b.hasEvent=N,S.addTest("inputsearchevent",N("search"));var j="Moz O ms Webkit",$=b._config.usePrefixes?j.split(" "):[];b._cssomPrefixes=$;var q=b._config.usePrefixes?j.toLowerCase().split(" "):[];b._domPrefixes=q,b.testAllProps=g,b.testAllProps=w,S.addTest("csstransforms",function(){return navigator.userAgent.indexOf("Android 2.")===-1&&w("transform","scale(1)",!0)}),S.addTest("csstransitions",w("transition","all",!0)),S.addTest("dataset",function(){var e=l("div");return e.setAttribute("data-a-b","c"),!(!e.dataset||"c"!==e.dataset.aB)}),S.addTest("svg",!!t.createElementNS&&!!t.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect),S.addTest("video",function(){var e=l("video"),t=!1;try{t=!!e.canPlayType,t&&(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$/,""),t.vp9=e.canPlayType('video/webm; codecs="vp9"').replace(/^no$/,""),t.hls=e.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/,""))}catch(n){}return t}),S.addTest("hidden","hidden"in l("a")),o(),i(T),delete b.addTest,delete b.addAsyncTest;for(var L=0;L<S._q.length;L++)S._q[L]();e.Modernizr=S}(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.