@@ 3-3 (lines=1) @@ | ||
1 | /*! modernizr 3.5.0 (Custom Build) | MIT * |
|
2 | * https://modernizr.com/download/?-emoji-svg-touchevents-setclasses !*/ |
|
3 | !function(e,t,n){function o(e,t){return typeof e===t}function a(){var e,t,n,a,s,i,r;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(a=o(t.fn,"function")?t.fn():t.fn,s=0;s<e.length;s++)i=e[s],r=i.split("."),1===r.length?Modernizr[r[0]]=a:(!Modernizr[r[0]]||Modernizr[r[0]]instanceof Boolean||(Modernizr[r[0]]=new Boolean(Modernizr[r[0]])),Modernizr[r[0]][r[1]]=a),f.push((a?"":"no-")+r.join("-"))}}function s(e){var t=u.className,n=Modernizr._config.classPrefix||"";if(p&&(t=t.baseVal),Modernizr._config.enableJSClass){var o=new RegExp("(^|\\s)"+n+"no-js(\\s|$)");t=t.replace(o,"$1"+n+"js$2")}Modernizr._config.enableClasses&&(t+=" "+n+e.join(" "+n),p?u.className.baseVal=t:u.className=t)}function i(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):p?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function r(){var e=t.body;return e||(e=i(p?"svg":"body"),e.fake=!0),e}function l(e,n,o,a){var s,l,f,c,d="modernizr",p=i("div"),v=r();if(parseInt(o,10))for(;o--;)f=i("div"),f.id=a?a[o]:d+(o+1),p.appendChild(f);return s=i("style"),s.type="text/css",s.id="s"+d,(v.fake?v:p).appendChild(s),v.appendChild(p),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(t.createTextNode(e)),p.id=d,v.fake&&(v.style.background="",v.style.overflow="hidden",c=u.style.overflow,u.style.overflow="hidden",u.appendChild(v)),l=n(p,e),v.fake?(v.parentNode.removeChild(v),u.style.overflow=c,u.offsetHeight):p.parentNode.removeChild(p),!!l}var f=[],c=[],d={_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})}},Modernizr=function(){};Modernizr.prototype=d,Modernizr=new Modernizr,Modernizr.addTest("svg",!!t.createElementNS&&!!t.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect);var u=t.documentElement,p="svg"===u.nodeName.toLowerCase();Modernizr.addTest("canvas",function(){var e=i("canvas");return!(!e.getContext||!e.getContext("2d"))}),Modernizr.addTest("canvastext",function(){return Modernizr.canvas===!1?!1:"function"==typeof i("canvas").getContext("2d").fillText}),Modernizr.addTest("emoji",function(){if(!Modernizr.canvastext)return!1;var t=e.devicePixelRatio||1,n=12*t,o=i("canvas"),a=o.getContext("2d");return a.fillStyle="#f00",a.textBaseline="top",a.font="32px Arial",a.fillText("🐨",0,0),0!==a.getImageData(n,n,1,1).data[0]});var v=d._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];d._prefixes=v;var m=d.testStyles=l;Modernizr.addTest("touchevents",function(){var n;if("ontouchstart"in e||e.DocumentTouch&&t instanceof DocumentTouch)n=!0;else{var o=["@media (",v.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join("");m(o,function(e){n=9===e.offsetTop})}return n}),a(),s(f),delete d.addTest,delete d.addAsyncTest;for(var h=0;h<Modernizr._q.length;h++)Modernizr._q[h]();e.Modernizr=Modernizr}(window,document); |
|
4 |
@@ 83-145 (lines=63) @@ | ||
80 | ||
81 | /*! modernizr 3.5.0 (Custom Build) | MIT * |
|
82 | * https://modernizr.com/download/?-emoji-svg-touchevents-setclasses !*/ |
|
83 | !function (e, t, n) { |
|
84 | function o(e, t) { |
|
85 | return (typeof e === "undefined" ? "undefined" : _typeof(e)) === t; |
|
86 | }function a() { |
|
87 | var e, t, n, a, s, i, r;for (var l in c) { |
|
88 | if (c.hasOwnProperty(l)) { |
|
89 | 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++) { |
|
90 | e.push(t.options.aliases[n].toLowerCase()); |
|
91 | }for (a = o(t.fn, "function") ? t.fn() : t.fn, s = 0; s < e.length; s++) { |
|
92 | i = e[s], r = i.split("."), 1 === r.length ? Modernizr[r[0]] = a : (!Modernizr[r[0]] || Modernizr[r[0]] instanceof Boolean || (Modernizr[r[0]] = new Boolean(Modernizr[r[0]])), Modernizr[r[0]][r[1]] = a), f.push((a ? "" : "no-") + r.join("-")); |
|
93 | } |
|
94 | } |
|
95 | } |
|
96 | }function s(e) { |
|
97 | var t = u.className, |
|
98 | n = Modernizr._config.classPrefix || "";if (p && (t = t.baseVal), Modernizr._config.enableJSClass) { |
|
99 | var o = new RegExp("(^|\\s)" + n + "no-js(\\s|$)");t = t.replace(o, "$1" + n + "js$2"); |
|
100 | }Modernizr._config.enableClasses && (t += " " + n + e.join(" " + n), p ? u.className.baseVal = t : u.className = t); |
|
101 | }function i() { |
|
102 | return "function" != typeof t.createElement ? t.createElement(arguments[0]) : p ? t.createElementNS.call(t, "http://www.w3.org/2000/svg", arguments[0]) : t.createElement.apply(t, arguments); |
|
103 | }function r() { |
|
104 | var e = t.body;return e || (e = i(p ? "svg" : "body"), e.fake = !0), e; |
|
105 | }function l(e, n, o, a) { |
|
106 | var s, |
|
107 | l, |
|
108 | f, |
|
109 | c, |
|
110 | d = "modernizr", |
|
111 | p = i("div"), |
|
112 | v = r();if (parseInt(o, 10)) for (; o--;) { |
|
113 | f = i("div"), f.id = a ? a[o] : d + (o + 1), p.appendChild(f); |
|
114 | }return s = i("style"), s.type = "text/css", s.id = "s" + d, (v.fake ? v : p).appendChild(s), v.appendChild(p), s.styleSheet ? s.styleSheet.cssText = e : s.appendChild(t.createTextNode(e)), p.id = d, v.fake && (v.style.background = "", v.style.overflow = "hidden", c = u.style.overflow, u.style.overflow = "hidden", u.appendChild(v)), l = n(p, e), v.fake ? (v.parentNode.removeChild(v), u.style.overflow = c, u.offsetHeight) : p.parentNode.removeChild(p), !!l; |
|
115 | }var f = [], |
|
116 | c = [], |
|
117 | d = { _version: "3.5.0", _config: { classPrefix: "", enableClasses: !0, enableJSClass: !0, usePrefixes: !0 }, _q: [], on: function on(e, t) { |
|
118 | var n = this;setTimeout(function () { |
|
119 | t(n[e]); |
|
120 | }, 0); |
|
121 | }, addTest: function addTest(e, t, n) { |
|
122 | c.push({ name: e, fn: t, options: n }); |
|
123 | }, addAsyncTest: function addAsyncTest(e) { |
|
124 | c.push({ name: null, fn: e }); |
|
125 | } }, |
|
126 | Modernizr = function Modernizr() {};Modernizr.prototype = d, Modernizr = new Modernizr(), Modernizr.addTest("svg", !!t.createElementNS && !!t.createElementNS("http://www.w3.org/2000/svg", "svg").createSVGRect);var u = t.documentElement, |
|
127 | p = "svg" === u.nodeName.toLowerCase();Modernizr.addTest("canvas", function () { |
|
128 | var e = i("canvas");return !(!e.getContext || !e.getContext("2d")); |
|
129 | }), Modernizr.addTest("canvastext", function () { |
|
130 | return Modernizr.canvas === !1 ? !1 : "function" == typeof i("canvas").getContext("2d").fillText; |
|
131 | }), Modernizr.addTest("emoji", function () { |
|
132 | if (!Modernizr.canvastext) return !1;var t = e.devicePixelRatio || 1, |
|
133 | n = 12 * t, |
|
134 | o = i("canvas"), |
|
135 | a = o.getContext("2d");return a.fillStyle = "#f00", a.textBaseline = "top", a.font = "32px Arial", a.fillText("🐨", 0, 0), 0 !== a.getImageData(n, n, 1, 1).data[0]; |
|
136 | });var v = d._config.usePrefixes ? " -webkit- -moz- -o- -ms- ".split(" ") : ["", ""];d._prefixes = v;var m = d.testStyles = l;Modernizr.addTest("touchevents", function () { |
|
137 | var n;if ("ontouchstart" in e || e.DocumentTouch && t instanceof DocumentTouch) n = !0;else { |
|
138 | var o = ["@media (", v.join("touch-enabled),("), "heartz", ")", "{#modernizr{top:9px;position:absolute}}"].join("");m(o, function (e) { |
|
139 | n = 9 === e.offsetTop; |
|
140 | }); |
|
141 | }return n; |
|
142 | }), a(), s(f), delete d.addTest, delete d.addAsyncTest;for (var h = 0; h < Modernizr._q.length; h++) { |
|
143 | Modernizr._q[h](); |
|
144 | }e.Modernizr = Modernizr; |
|
145 | }(window, document); |
|
146 | ||
147 | /***/ }) |
|
148 |