PageSourceSearch

https://www.giriksms.com/js/modernizr.js

js giriksms.com collected 2026-09-29 16:24:19 UTC 14,410 bytes, 1 lines download raw bytes

1window.Modernizr=function(e,t,n){var r,o,i,a={},c=t.documentElement,s="modernizr",l=t.createElement(s),u=l.style,f=t.createElement("input"),d=":)",p={}.toString,m=" -webkit- -moz- -o- -ms- ".split(" "),h="Webkit Moz O ms",g=h.split(" "),v=h.toLowerCase().split(" "),y="http://www.w3.org/2000/svg",b={},E={},w={},x=[],S=x.slice,C=function(e,n,r,o){var i,a,l,u,f=t.createElement("div"),d=t.body,p=d||t.createElement("body");if(parseInt(r,10))for(;r--;)(l=t.createElement("div")).id=o?o[r]:s+(r+1),f.appendChild(l);return i=["&#173;",'<style id="s',s,'">',e,"</style>"].join(""),f.id=s,(d?f:p).innerHTML+=i,p.appendChild(f),d||(p.style.background="",p.style.overflow="hidden",u=c.style.overflow,c.style.overflow="hidden",c.appendChild(p)),a=n(f,e),d?f.parentNode.removeChild(f):(p.parentNode.removeChild(p),c.style.overflow=u),!!a},k=(i={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(e,r){r=r||t.createElement(i[e]||"div");var o=(e="on"+e)in r;return o||(r.setAttribute||(r=t.createElement("div")),r.setAttribute&&r.removeAttribute&&(r.setAttribute(e,""),o=N(r[e],"function"),N(r[e],"undefined")||(r[e]=n),r.removeAttribute(e))),r=null,o}),T={}.hasOwnProperty;function j(e){u.cssText=e}function N(e,t){return typeof e===t}function P(e,t){return!!~(""+e).indexOf(t)}function M(e,t){for(var r in e){var o=e[r];if(!P(o,"-")&&u[o]!==n)return"pfx"!=t||o}return!1}function A(e,t,r){var o=e.charAt(0).toUpperCase()+e.slice(1),i=(e+" "+g.join(o+" ")+o).split(" ");return N(t,"string")||N(t,"undefined")?M(i,t):function(e,t,r){for(var o in e){var i=t[e[o]];if(i!==n)return!1===r?e[o]:N(i,"function")?i.bind(r||t):i}return!1}(i=(e+" "+v.join(o+" ")+o).split(" "),t,r)}for(var L in o=N(T,"undefined")||N(T.call,"undefined")?function(e,t){return t in e&&N(e.constructor.prototype[t],"undefined")}:function(e,t){return T.call(e,t)},Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if("function"!=typeof t)throw new TypeError;var n=S.call(arguments,1),r=function(){if(this instanceof r){var o=function(){};o.prototype=t.prototype;var i=new o,a=t.apply(i,n.concat(S.call(arguments)));return Object(a)===a?a:i}return t.apply(e,n.concat(S.call(arguments)))};return r}),b.flexbox=function(){return A("flexWrap")},b.canvas=function(){var e=t.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))},b.canvastext=function(){return!(!a.canvas||!N(t.createElement("canvas").getContext("2d").fillText,"function"))},b.webgl=function(){return!!e.WebGLRenderingContext},b.touch=function(){var n;return"ontouchstart"in e||e.DocumentTouch&&t instanceof DocumentTouch?n=!0:C(["@media (",m.join("touch-enabled),("),s,")","{#modernizr{top:9px;position:absolute}}"].join(""),(function(e){n=9===e.offsetTop})),n},b.geolocation=function(){return"geolocation"in navigator},b.postmessage=function(){return!!e.postMessage},b.websqldatabase=function(){return!!e.openDatabase},b.indexedDB=function(){return!!A("indexedDB",e)},b.hashchange=function(){return k("hashchange",e)&&(t.documentMode===n||t.documentMode>7)},b.history=function(){return!(!e.history||!history.pushState)},b.draganddrop=function(){var e=t.createElement("div");return"draggable"in e||"ondragstart"in e&&"ondrop"in e},b.websockets=function(){return"WebSocket"in e||"MozWebSocket"in e},b.rgba=function(){return j("background-color:rgba(150,255,150,.5)"),P(u.backgroundColor,"rgba")},b.hsla=function(){return j("background-color:hsla(120,40%,100%,.5)"),P(u.backgroundColor,"rgba")||P(u.backgroundColor,"hsla")},b.multiplebgs=function(){return j("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(u.background)},b.backgroundsize=function(){return A("backgroundSize")},b.borderimage=function(){return A("borderImage")}
1,b.borderradius=function(){return A("borderRadius")},b.boxshadow=function(){return A("boxShadow")},b.textshadow=function(){return""===t.createElement("div").style.textShadow},b.opacity=function(){var e,t;return e="opacity:.55",j(m.join(e+";")+(t||"")),/^0.55$/.test(u.opacity)},b.cssanimations=function(){return A("animationName")},b.csscolumns=function(){return A("columnCount")},b.cssgradients=function(){var e="background-image:";return j((e+"-webkit- ".split(" ").join("gradient(linear,left top,right bottom,from(#9f9),to(white));"+e)+m.join("linear-gradient(left top,#9f9, white);"+e)).slice(0,-17)),P(u.backgroundImage,"gradient")},b.cssreflections=function(){return A("boxReflect")},b.csstransforms=function(){return!!A("transform")},b.csstransforms3d=function(){var e=!!A("perspective");return e&&"webkitPerspective"in c.style&&C("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",(function(t,n){e=9===t.offsetLeft&&3===t.offsetHeight})),e},b.csstransitions=function(){return A("transition")},b.fontface=function(){var e;return C('@font-face {font-family:"font";src:url("https://")}',(function(n,r){var o=t.getElementById("smodernizr"),i=o.sheet||o.styleSheet,a=i?i.cssRules&&i.cssRules[0]?i.cssRules[0].cssText:i.cssText||"":"";e=/src/i.test(a)&&0===a.indexOf(r.split(" ")[0])})),e},b.generatedcontent=function(){var e;return C(["#",s,"{font:0/0 a}#",s,':after{content:"',d,'";visibility:hidden;font:3px/1 a}'].join(""),(function(t){e=t.offsetHeight>=3})),e},b.video=function(){var e=t.createElement("video"),n=!1;try{(n=!!e.canPlayType)&&((n=new Boolean(n)).ogg=e.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),n.h264=e.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),n.webm=e.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(e){}return n},b.audio=function(){var e=t.createElement("audio"),n=!1;try{(n=!!e.canPlayType)&&((n=new Boolean(n)).ogg=e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),n.mp3=e.canPlayType("audio/mpeg;").replace(/^no$/,""),n.wav=e.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),n.m4a=(e.canPlayType("audio/x-m4a;")||e.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(e){}return n},b.localstorage=function(){try{return localStorage.setItem(s,s),localStorage.removeItem(s),!0}catch(e){return!1}},b.sessionstorage=function(){try{return sessionStorage.setItem(s,s),sessionStorage.removeItem(s),!0}catch(e){return!1}},b.webworkers=function(){return!!e.Worker},b.applicationcache=function(){return!!e.applicationCache},b.svg=function(){return!!t.createElementNS&&!!t.createElementNS(y,"svg").createSVGRect},b.inlinesvg=function(){var e=t.createElement("div");return e.innerHTML="<svg/>",(e.firstChild&&e.firstChild.namespaceURI)==y},b.smil=function(){return!!t.createElementNS&&/SVGAnimate/.test(p.call(t.createElementNS(y,"animate")))},b.svgclippaths=function(){return!!t.createElementNS&&/SVGClipPath/.test(p.call(t.createElementNS(y,"clipPath")))},b)o(b,L)&&(r=L.toLowerCase(),a[r]=b[L](),x.push((a[r]?"":"no-")+r));return a.input||(a.input=function(n){for(var r=0,o=n.length;r<o;r++)w[n[r]]=!!(n[r]in f);return w.list&&(w.list=!(!t.createElement("datalist")||!e.HTMLDataListElement)),w}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),a.inputtypes=function(e){for(var r,o,i,a=0,s=e.length;a<s;a++)f.setAttribute("type",o=e[a]),(r="text"!==f.type)&&(f.value=d,f.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(o)&&f.style.WebkitAppearance!==n?(c.appendChild(f),r=(i=t.defaultView).getComputedStyle&&"textfield"!==i.getComputedStyle(f,null).WebkitAppearance&&0!==f.offsetHeight,c.removeChild(f)):/^(search|tel)$/.test(o)||(r=/^(url|email)$/.test(o)?f.checkValidity&&!1===f.checkValidity():f.value!=d)),E[e[a]]=!!r;return E}("search tel url email datetime date month week time datetime-local number range color".split(" "))),a.addTest=function(e,t){if("object"==typeof e)for(var r in e)o(e,r)&&a.addTest(r,e[r]);else{if(e=e.toLowerCase(),a[e]!==n)return a;t="function"==typeof t?t():t,c.className+=" "+(t?"":"no-")+e,a[e]=t}return a},j(""),l=f=null,function(e,t){var n,r,o=e.html5||{},i=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,a=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,c="_html5shiv",s=0,l={};function u(){var e=m.elements;return"string"==typeof e?e.split(" "):e}function f(e){var t=l[e[c]];return t||(t={},s++,e[c]=s,l[s]=t),t}function d(e,n,o){return n||(n=t),r?n.createElement(e):(o||(o=f(n)),!(c=o.cache[e]?o.cache[e].cloneNode():a.test(e)?(o.cache[e]=o.createElem(e)).cloneNode():o.createElem(e)).canHaveChildren||i.test(e)||c.tagUrn?c:o.frag.appendChild(c));var c}function p(e){e||(e=t);var o=f(e);return!m.shivCSS||n||o.hasCSS||(o.hasCSS=!!function(e,t){var n=e.createElement("p"),r=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x<style>"+t+"</style>",r.insertBefore(n.lastChild,r.firstChild)}(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{dis
1play:block}mark{background:#FF0;color:#000}template{display:none}")),r||function(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return m.shivMethods?d(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+u().join().replace(/[\w\-]+/g,(function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'}))+");return n}")(m,t.frag)}(e,o),e}!function(){try{var e=t.createElement("a");e.innerHTML="<xyz></xyz>",n="hidden"in e,r=1==e.childNodes.length||function(){t.createElement("a");var e=t.createDocumentFragment();return void 0===e.cloneNode||void 0===e.createDocumentFragment||void 0===e.createElement}()}catch(e){n=!0,r=!0}}();var m={elements:o.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:!1!==o.shivCSS,supportsUnknownElements:r,shivMethods:!1!==o.shivMethods,type:"default",shivDocument:p,createElement:d,createDocumentFragment:function(e,n){if(e||(e=t),r)return e.createDocumentFragment();for(var o=(n=n||f(e)).frag.cloneNode(),i=0,a=u(),c=a.length;i<c;i++)o.createElement(a[i]);return o}};e.html5=m,p(t)}(this,t),a._version="2.8.3",a._prefixes=m,a._domPrefixes=v,a._cssomPrefixes=g,a.hasEvent=k,a.testProp=function(e){return M([e])},a.testAllProps=A,a.testStyles=C,a.prefixed=function(e,t,n){return t?A(e,t,n):A(e,"pfx")},c.className=c.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+" js "+x.join(" "),a}(this,this.document),function(e,t,n){function r(e){return"[object Function]"==g.call(e)}function o(e){return"string"==typeof e}function i(){}function a(e){return!e||"loaded"==e||"complete"==e||"uninitialized"==e}function c(){var e=v.shift();y=1,e?e.t?m((function(){("c"==e.t?d.injectCss:d.injectJs)(e.s,0,e.a,e.x,e.e,1)}),0):(e(),c()):y=0}function s(e,n,r,o,i,s,l){function u(t){if(!p&&a(f.readyState)&&(b.r=p=1,!y&&c(),f.onload=f.onreadystatechange=null,t))for(var r in"img"!=e&&m((function(){w.removeChild(f)}),50),T[n])T[n].hasOwnProperty(r)&&T[n][r].onload()}l=l||d.errorTimeout;var f=t.createElement(e),p=0,g=0,b={t:r,s:n,e:i,a:s,x:l};1===T[n]&&(g=1,T[n]=[]),"object"==e?f.data=n:(f.src=n,f.type=e),f.width=f.height="0",f.onerror=f.onload=f.onreadystatechange=function(){u.call(this,g)},v.splice(o,0,b),"img"!=e&&(g||2===T[n]?(w.insertBefore(f,E?null:h),m(u,l)):T[n].push(f))}function l(e,t,n,r,i){return y=0,t=t||"j",o(e)?s("c"==t?S:x,e,t,this.i++,n,r,i):(v.splice(this.i++,0,e),1==v.length&&c()),this}function u(){var e=d;return e.loader={load:l,i:0},e}var f,d,p=t.documentElement,m=e.setTimeout,h=t.getElementsByTagName("script")[0],g={}.toString,v=[],y=0,b="MozAppearance"in p.style,E=b&&!!t.createRange().compareNode,w=E?p:h.parentNode,x=(p=e.opera&&"[object Opera]"==g.call(e.opera),p=!!t.attachEvent&&!p,b?"object":p?"script":"img"),S=p?"script":x,C=Array.isArray||function(e){return"[object Array]"==g.call(e)},k=[],T={},j={timeout:function(e,t){return t.length&&(e.timeout=t[0]),e}};d=function(e){function t(e,t,n,o,i){var a=function(e){e=e.split("!");var t,n,r,o=k.length,i=e.pop(),a=e.length;for(i={url:i,origUrl:i,prefixes:e},n=0;n<a;n++)r=e[n].split("="),(t=j[r.shift()])&&(i=t(i,r));for(n=0;n<o;n++)i=k[n](i);return i}(e),c=a.autoCallback;a.url.split(".").pop().split("?").shift(),a.bypass||(t&&(t=r(t)?t:t[e]||t[o]||t[e.split("/").pop().split("?")[0]]),a.instead?a.instead(e,t,n,o,i):(T[a.url]?a.noexec=!0:T[a.url]=1,n.load(a.url,a.forceCSS||!a.forceJS&&"css"==a.url.split(".").pop().split("?").shift()?"c":undefined,a.noexec,a.attrs,a.timeout),(r(t)||r(c))&&n.load((function(){u(),t&&t(a.origUrl,i,o),c&&c(a.origUrl,i,o),T[a.url]=2}))))}function n(e,n){function a(e,i){if(e){if(o(e))i||(f=function(){var e=[].slice.call(arguments);d.apply(this,e),p()}),t(e,f,n,0,l);else if(Object(e)===e)for(s in c=function(){var t,n=0;for(t in e)e.hasOwnProperty(t)&&n++;return n}(),e)e.hasOwnProperty(s)&&(!i&&! --c&&(r(f)?f=function(){var e=[].slice.call(arguments);d.apply(this,e),p()}:f[s]=function(e){return function(){var t=[].slice.call(arguments);e&&e.apply(this,t),p()}}
1(d[s])),t(e[s],f,n,s,l))}else!i&&p()}var c,s,l=!!e.test,u=e.load||e.both,f=e.callback||i,d=f,p=e.complete||i;a(l?e.yep:e.nope,!!u),u&&a(u)}var a,c,s=this.yepnope.loader;if(o(e))t(e,0,s,0);else if(C(e))for(a=0;a<e.length;a++)o(c=e[a])?t(c,0,s,0):C(c)?d(c):Object(c)===c&&n(c,s);else Object(e)===e&&n(e,s)},d.addPrefix=function(e,t){j[e]=t},d.addFilter=function(e){k.push(e)},d.errorTimeout=1e4,null==t.readyState&&t.addEventListener&&(t.readyState="loading",t.addEventListener("DOMContentLoaded",f=function(){t.removeEventListener("DOMContentLoaded",f,0),t.readyState="complete"},0)),e.yepnope=u(),e.yepnope.executeStack=c,e.yepnope.injectJs=function(e,n,r,o,s,l){var u,f,p=t.createElement("script");o=o||d.errorTimeout;for(f in p.src=e,r)p.setAttribute(f,r[f]);n=l?c:n||i,p.onreadystatechange=p.onload=function(){!u&&a(p.readyState)&&(u=1,n(),p.onload=p.onreadystatechange=null)},m((function(){u||(u=1,n(1))}),o),s?p.onload():h.parentNode.insertBefore(p,h)},e.yepnope.injectCss=function(e,n,r,o,a,s){var l;o=t.createElement("link"),n=s?c:n||i;for(l in o.href=e,o.rel="stylesheet",o.type="text/css",r)o.setAttribute(l,r[l]);a||(h.parentNode.insertBefore(o,h),m(n,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};

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.