Modernizr.custom.js

Developer
Size
5,583 Kb
Views
12,144

How do I make an modernizr.custom.js?

This is generated via modernizr.com/download. What is a modernizr.custom.js? How do you make a modernizr.custom.js? This script and codes were developed by Asakasinsky on 27 December 2022, Tuesday.

Modernizr.custom.js Previews

Modernizr.custom.js - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>modernizr.custom.js</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <ul><li class="backgroundsize">backgroundsize</li><li class="bgsizecover">bgsizecover</li><li class="borderradius">borderradius</li><li class="boxshadow">boxshadow</li><li class="boxsizing">boxsizing</li><li class="checked">checked</li><li class="cookies">cookies</li><li class="cssanimations">cssanimations</li><li class="cssscrollbar">cssscrollbar</li><li class="csstransitions">csstransitions</li><li class="es5array">es5array</li><li class="flexbox">flexbox</li><li class="flexboxlegacy">flexboxlegacy</li><li class="flexboxtweener">flexboxtweener</li><li class="flexwrap">flexwrap</li><li class="fontface">fontface</li><li class="inlinesvg">inlinesvg</li><li class="localstorage">localstorage</li><li class="pagevisibility">pagevisibility</li><li class="postmessage">postmessage</li><li class="queryselector">queryselector</li><li class="rgba">rgba</li><li class="strictmode">strictmode</li><li class="svg">svg</li><li class="websockets">websockets</li><li class="webworkers">webworkers</li><li class="xhrresponsetypejson">xhrresponsetypejson</li><li class="setclasses">setclasses</li></ul> <script src="js/index.js"></script>
</body>
</html>

Modernizr.custom.js - Script Codes CSS Codes

ul{-webkit-column-count: 3;-moz-column-count: 3;column-count: 3;}li{color:green}.no-backgroundsize li.backgroundsize{ color: red; }.no-bgsizecover li.bgsizecover{ color: red; }.no-borderradius li.borderradius{ color: red; }.no-boxshadow li.boxshadow{ color: red; }.no-boxsizing li.boxsizing{ color: red; }.no-checked li.checked{ color: red; }.no-cookies li.cookies{ color: red; }.no-cssanimations li.cssanimations{ color: red; }.no-cssscrollbar li.cssscrollbar{ color: red; }.no-csstransitions li.csstransitions{ color: red; }.no-es5array li.es5array{ color: red; }.no-flexbox li.flexbox{ color: red; }.no-flexboxlegacy li.flexboxlegacy{ color: red; }.no-flexboxtweener li.flexboxtweener{ color: red; }.no-flexwrap li.flexwrap{ color: red; }.no-fontface li.fontface{ color: red; }.no-inlinesvg li.inlinesvg{ color: red; }.no-localstorage li.localstorage{ color: red; }.no-pagevisibility li.pagevisibility{ color: red; }.no-postmessage li.postmessage{ color: red; }.no-queryselector li.queryselector{ color: red; }.no-rgba li.rgba{ color: red; }.no-strictmode li.strictmode{ color: red; }.no-svg li.svg{ color: red; }.no-websockets li.websockets{ color: red; }.no-webworkers li.webworkers{ color: red; }.no-xhrresponsetypejson li.xhrresponsetypejson{ color: red; }.no-setclasses li.setclasses{ color: red; }

Modernizr.custom.js - Script Codes JS Codes

/*! modernizr 3.2.0 (Custom Build) | MIT * * https://modernizr.com/download/?-backgroundsize-bgsizecover-borderradius-boxshadow-boxsizing-checked-cookies-cssanimations-cssscrollbar-csstransitions-es5array-flexbox-flexboxlegacy-flexboxtweener-flexwrap-fontface-inlinesvg-localstorage-pagevisibility-postmessage-queryselector-rgba-strictmode-svg-websockets-webworkers-xhrresponsetypejson-setclasses !*/
!function(e,t,r){function n(e,t){return typeof e===t}function o(){var e,t,r,o,s,i,a;for(var d in x)if(x.hasOwnProperty(d)){if(e=[],t=x[d],t.name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(r=0;r<t.options.aliases.length;r++)e.push(t.options.aliases[r].toLowerCase());for(o=n(t.fn,"function")?t.fn():t.fn,s=0;s<e.length;s++)i=e[s],a=i.split("."),1===a.length?Modernizr[a[0]]=o:(!Modernizr[a[0]]||Modernizr[a[0]]instanceof Boolean||(Modernizr[a[0]]=new Boolean(Modernizr[a[0]])),Modernizr[a[0]][a[1]]=o),v.push((o?"":"no-")+a.join("-"))}}function s(e){var t=w.className,r=Modernizr._config.classPrefix||"";if(T&&(t=t.baseVal),Modernizr._config.enableJSClass){var n=new RegExp("(^|\\s)"+r+"no-js(\\s|$)");t=t.replace(n,"$1"+r+"js$2")}Modernizr._config.enableClasses&&(t+=" "+r+e.join(" "+r),T?w.className.baseVal=t:w.className=t)}function i(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):T?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function a(e){return e.replace(/([a-z])-([a-z])/g,function(e,t,r){return t+r.toUpperCase()}).replace(/^-/,"")}function d(){var e=t.body;return e||(e=i(T?"svg":"body"),e.fake=!0),e}function l(e,r,n,o){var s,a,l,c,f="modernizr",u=i("div"),p=d();if(parseInt(n,10))for(;n--;)l=i("div"),l.id=o?o[n]:f+(n+1),u.appendChild(l);return s=i("style"),s.type="text/css",s.id="s"+f,(p.fake?p:u).appendChild(s),p.appendChild(u),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(t.createTextNode(e)),u.id=f,p.fake&&(p.style.background="",p.style.overflow="hidden",c=w.style.overflow,w.style.overflow="hidden",w.appendChild(p)),a=r(u,e),p.fake?(p.parentNode.removeChild(p),w.style.overflow=c,w.offsetHeight):u.parentNode.removeChild(u),!!a}function c(e,t){return!!~(""+e).indexOf(t)}function f(e,t){return function(){return e.apply(t,arguments)}}function u(e,t,r){var o;for(var s in e)if(e[s]in t)return r===!1?e[s]:(o=t[e[s]],n(o,"function")?f(o,r||t):o);return!1}function p(e){return e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function y(t,n){var o=t.length;if("CSS"in e&&"supports"in e.CSS){for(;o--;)if(e.CSS.supports(p(t[o]),n))return!0;return!1}if("CSSSupportsRule"in e){for(var s=[];o--;)s.push("("+p(t[o])+":"+n+")");return s=s.join(" or "),l("@supports ("+s+") { #modernizr { position: absolute; } }",function(e){return"absolute"==getComputedStyle(e,null).position})}return r}function m(e,t,o,s){function d(){f&&(delete L.style,delete L.modElem)}if(s=n(s,"undefined")?!1:s,!n(o,"undefined")){var l=y(e,o);if(!n(l,"undefined"))return l}for(var f,u,p,m,g,h=["modernizr","tspan"];!L.style;)f=!0,L.modElem=i(h.shift()),L.style=L.modElem.style;for(p=e.length,u=0;p>u;u++)if(m=e[u],g=L.style[m],c(m,"-")&&(m=a(m)),L.style[m]!==r){if(s||n(o,"undefined"))return d(),"pfx"==t?m:!0;try{L.style[m]=o}catch(v){}if(L.style[m]!=g)return d(),"pfx"==t?m:!0}return d(),!1}function g(e,t,r,o,s){var i=e.charAt(0).toUpperCase()+e.slice(1),a=(e+" "+_.join(i+" ")+i).split(" ");return n(t,"string")||n(t,"undefined")?m(a,t,o,s):(a=(e+" "+E.join(i+" ")+i).split(" "),u(a,t,r))}function h(e,t,n){return g(e,r,r,t,n)}var v=[],x=[],b={_version:"3.2.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var r=this;setTimeout(function(){t(r[e])},0)},addTest:function(e,t,r){x.push({name:e,fn:t,options:r})},addAsyncTest:function(e){x.push({name:null,fn:e})}},Modernizr=function(){};Modernizr.prototype=b,Modernizr=new Modernizr,Modernizr.addTest("cookies",function(){try{t.cookie="cookietest=1";var e=-1!=t.cookie.indexOf("cookietest=");return t.cookie="cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT",e}catch(r){return!1}}),Modernizr.addTest("postmessage","postMessage"in e),Modernizr.addTest("queryselector","querySelector"in t&&"querySelectorAll"in t),Modernizr.addTest("svg",!!t.createElementNS&&!!t.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect),Modernizr.addTest("websockets","WebSocket"in e&&2===e.WebSocket.CLOSING),Modernizr.addTest("es5array",function(){return!!(Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray)}),Modernizr.addTest("strictmode",function(){"use strict";return!this}()),Modernizr.addTest("localstorage",function(){var e="modernizr";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(t){return!1}});var w=t.documentElement,T="svg"===w.nodeName.toLowerCase();Modernizr.addTest("rgba",function(){var e=i("a").style;return e.cssText="background-color:rgba(150,255,150,.5)",(""+e.backgroundColor).indexOf("rgba")>-1}),Modernizr.addTest("inlinesvg",function(){var e=i("div");return e.innerHTML="<svg/>","http://www.w3.org/2000/svg"==("undefined"!=typeof SVGRect&&e.firstChild&&e.firstChild.namespaceURI)});var S=b._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):[];b._prefixes=S;var C=function(e){if("undefined"==typeof XMLHttpRequest)return!1;var t=new XMLHttpRequest;t.open("get","/",!0);try{t.responseType=e}catch(r){return!1}return"response"in t&&t.responseType==e};Modernizr.addTest("xhrresponsetypejson",C("json")),Modernizr.addTest("webworkers","Worker"in e);var k=b.testStyles=l;Modernizr.addTest("checked",function(){return k("#modernizr {position:absolute} #modernizr input {margin-left:10px} #modernizr :checked {margin-left:20px;display:block}",function(e){var t=i("input");return t.setAttribute("type","checkbox"),t.setAttribute("checked","checked"),e.appendChild(t),20===t.offsetLeft})});var z=function(){var e=navigator.userAgent,t=e.match(/applewebkit\/([0-9]+)/gi)&&parseFloat(RegExp.$1),r=e.match(/w(eb)?osbrowser/gi),n=e.match(/windows phone/gi)&&e.match(/iemobile\/([0-9])+/gi)&&parseFloat(RegExp.$1)>=9,o=533>t&&e.match(/android/gi);return r||o||n}();z?Modernizr.addTest("fontface",!1):k('@font-face {font-family:"font";src:url("https://")}',function(e,r){var n=t.getElementById("smodernizr"),o=n.sheet||n.styleSheet,s=o?o.cssRules&&o.cssRules[0]?o.cssRules[0].cssText:o.cssText||"":"",i=/src/i.test(s)&&0===s.indexOf(r.split(" ")[0]);Modernizr.addTest("fontface",i)}),k("#modernizr{overflow: scroll; width: 40px; height: 40px; }#"+S.join("scrollbar{width:0px} #modernizr::").split("#").slice(1).join("#")+"scrollbar{width:0px}",function(e){Modernizr.addTest("cssscrollbar",40==e.scrollWidth)});var A="Moz O ms Webkit",_=b._config.usePrefixes?A.split(" "):[];b._cssomPrefixes=_;var R=function(t){var n,o=S.length,s=e.CSSRule;if("undefined"==typeof s)return r;if(!t)return!1;if(t=t.replace(/^@/,""),n=t.replace(/-/g,"_").toUpperCase()+"_RULE",n in s)return"@"+t;for(var i=0;o>i;i++){var a=S[i],d=a.toUpperCase()+"_"+n;if(d in s)return"@-"+a.toLowerCase()+"-"+t}return!1};b.atRule=R;var E=b._config.usePrefixes?A.toLowerCase().split(" "):[];b._domPrefixes=E;var N={elem:i("modernizr")};Modernizr._q.push(function(){delete N.elem});var L={style:N.elem.style};Modernizr._q.unshift(function(){delete L.style}),b.testAllProps=g;var O=b.prefixed=function(e,t,r){return 0===e.indexOf("@")?R(e):(-1!=e.indexOf("-")&&(e=a(e)),t?g(e,t,r):g(e,"pfx"))};Modernizr.addTest("pagevisibility",!!O("hidden",t,!1)),b.testAllProps=h,Modernizr.addTest("cssanimations",h("animationName","a",!0)),Modernizr.addTest("backgroundsize",h("backgroundSize","100%",!0)),Modernizr.addTest("bgsizecover",h("backgroundSize","cover")),Modernizr.addTest("borderradius",h("borderRadius","0px",!0)),Modernizr.addTest("boxshadow",h("boxShadow","1px 1px",!0)),Modernizr.addTest("boxsizing",h("boxSizing","border-box",!0)&&(t.documentMode===r||t.documentMode>7)),Modernizr.addTest("flexbox",h("flexBasis","1px",!0)),Modernizr.addTest("flexboxlegacy",h("boxDirection","reverse",!0)),Modernizr.addTest("flexboxtweener",h("flexAlign","end",!0)),Modernizr.addTest("flexwrap",h("flexWrap","wrap",!0)),Modernizr.addTest("csstransitions",h("transition","all",!0)),o(),s(v),delete b.addTest,delete b.addAsyncTest;for(var j=0;j<Modernizr._q.length;j++)Modernizr._q[j]();e.Modernizr=Modernizr}(window,document);
Modernizr.custom.js - Script Codes
Modernizr.custom.js - Script Codes
Home Page Home
Developer Asakasinsky
Username asakasinsky
Uploaded December 27, 2022
Rating 3
Size 5,583 Kb
Views 12,144
Do you need developer help for Modernizr.custom.js?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Asakasinsky (asakasinsky) Script Codes
Create amazing video scripts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!