Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: static/dist/js/vendor/respond.js.map

Issue 29624561: Issue 6104 - Minified code in help center repository (Closed) Base URL: https://hg.adblockplus.org/help.eyeo.com
Patch Set: Move all requires to top of gulpfile.js Created Dec. 4, 2017, 2:10 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 {"version":3,"names":[],"mappings":"","sources":["respond.js"],"sourcesContent": ["/*! Respond.js v1.4.2: min/max-width media query polyfill * Copyright 2013 Sco tt Jehl\n * Licensed under https://github.com/scottjehl/Respond/blob/master/LICE NSE-MIT\n * */\n\n! function(a) {\n \"use strict\";\n a.matchMedia = a.matchM edia || function(a) {\n var b, c = a.documentElement,\n d = c.firs tElementChild || c.firstChild,\n e = a.createElement(\"body\"),\n f = a.createElement(\"div\");\n return f.id = \"mq-test-1\", f.style.cs sText = \"position:absolute;top:-100em\", e.style.background = \"none\", e.appen dChild(f),\n function(a) {\n return f.innerHTML = '&shy;<s tyle media=\"' + a + '\"> #mq-test-1 { width: 42px; }</style>', c.insertBefore(e , d), b = 42 === f.offsetWidth, c.removeChild(e), {\n matches: b,\n media: a\n }\n }\n }(a.document)\n} (this),\nfunction(a) {\n \"use strict\";\n\n function b() {\n u(!0)\n }\ n var c = {};\n a.respond = c, c.update = function() {};\n var d = [],\n e = function() {\n var b = !1;\n try {\n b = new a.XMLHttpRequest\n } catch (c) {\n b = new a.ActiveXObjec t(\"Microsoft.XMLHTTP\")\n }\n return function() {\n return b\n }\n }(),\n f = function(a, b) {\n var c = e();\n c && (c.open(\"GET\", a, !0), c.onreadystatechange = functi on() {\n 4 !== c.readyState || 200 !== c.status && 304 !== c.status || b(c.responseText)\n }, 4 !== c.readyState && c.send(null))\n } ;\n if (c.ajax = f, c.queue = d, c.regex = {\n media: /@media[^\\{]+\\ {([^\\{\\}]*\\{[^\\}\\{]*\\})+/gi,\n keyframes: /@(?:\\-(?:o|moz|webkit )\\-)?keyframes[^\\{]+\\{(?:[^\\{\\}]*\\{[^\\}\\{]*\\})+[^\\}]*\\}/gi,\n urls: /(url\\()['\"]?([^\\/\\)'\"][^:\\)'\"]+)['\"]?(\\))/g,\n findSt yles: /@media *([^\\{]+)\\{([\\S\\s]+?)$/,\n only: /(only\\s+)?([a-zA-Z ]+)\\s?/,\n minw: /\\([\\s]*min\\-width\\s*:[\\s]*([\\s]*[0-9\\.]+)(px| em)[\\s]*\\)/,\n maxw: /\\([\\s]*max\\-width\\s*:[\\s]*([\\s]*[0-9\\.]+ )(px|em)[\\s]*\\)/\n }, c.mediaQueriesSupported = a.matchMedia && null !== a.matchMedia(\"only all\") && a.matchMedia(\"only all\").matches, !c.mediaQuerie sSupported) {\n var g, h, i, j = a.document,\n k = j.documentEleme nt,\n l = [],\n m = [],\n n = [],\n o = {},\ n p = 30,\n q = j.getElementsByTagName(\"head\")[0] || k,\n r = j.getElementsByTagName(\"base\")[0],\n s = q.getElementsByTa gName(\"link\"),\n t = function() {\n var a, b = j.createE lement(\"div\"),\n c = j.body,\n d = k.style.f ontSize,\n e = c && c.style.fontSize,\n f = !1 ;\n return b.style.cssText = \"position:absolute;font-size:1em;widt h:1em\", c || (c = f = j.createElement(\"body\"), c.style.background = \"none\") , k.style.fontSize = \"100%\", c.style.fontSize = \"100%\", c.appendChild(b), f && k.insertBefore(c, k.firstChild), a = b.offsetWidth, f ? k.removeChild(c) : c. removeChild(b), k.style.fontSize = d, e && (c.style.fontSize = e), a = i = parse Float(a)\n },\n u = function(b) {\n var c = \"cli entWidth\",\n d = k[c],\n e = \"CSS1Compat\" = == j.compatMode && d || j.body[c] || d,\n f = {},\n o = s[s.length - 1],\n r = (new Date).getTime();\n if (b && g && p > r - g) return a.clearTimeout(h), h = a.setTimeout(u, p) , void 0;\n g = r;\n for (var v in l)\n if (l.hasOwnProperty(v)) {\n var w = l[v],\n x = w.minw,\n y = w.maxw,\n z = null === x,\n A = null === y,\n B = \"em\";\n x && (x = parseFloat(x) * ( x.indexOf(B) > -1 ? i || t() : 1)), y && (y = parseFloat(y) * (y.indexOf(B) > -1 ? i || t() : 1)), w.hasquery && (z && A || !(z || e >= x) || !(A || y >= e)) || (f[w.media] || (f[w.media] = []), f[w.media].push(m[w.rules]))\n }\n for (var C in n) n.hasOwnProperty(C) && n[C] && n[C].parentN ode === q && q.removeChild(n[C]);\n n.length = 0;\n fo r (var D in f)\n if (f.hasOwnProperty(D)) {\n var E = j.createElement(\"style\"),\n F = f[D].join (\"\\n\");\n E.type = \"text/css\", E.media = D, q.insertBe fore(E, o.nextSibling), E.styleSheet ? E.styleSheet.cssText = F : E.appendChild( j.createTextNode(F)), n.push(E)\n }\n },\n v = function(a, b, d) {\n var e = a.replace(c.regex.keyframes, \"\"). match(c.regex.media),\n f = e && e.length || 0;\n b = b.substring(0, b.lastIndexOf(\"/\"));\n var g = function(a) {\n return a.replace(c.regex.urls, \"$1\" + b + \"$2$3\")\n },\n h = !f && d;\n b.length && (b += \"/\"), h && (f = 1);\n for (var i = 0; f > i; i++) {\n var j, k, n, o;\n h ? (j = d, m.push(g(a))) : (j = e[i ].match(c.regex.findStyles) && RegExp.$1, m.push(RegExp.$2 && g(RegExp.$2))), n = j.split(\",\"), o = n.length;\n for (var p = 0; o > p; p++) k = n[p], l.push({\n media: k.split(\"(\")[0].match(c.regex. only) && RegExp.$2 || \"all\",\n rules: m.length - 1,\n hasquery: k.indexOf(\"(\") > -1,\n minw: k.match(c.regex.minw) && parseFloat(RegExp.$1) + (RegExp.$2 || \"\"),\n maxw: k.match(c.regex.maxw) && parseFloat(RegExp.$1) + (RegExp.$2 | | \"\")\n })\n }\n u()\n },\ n w = function() {\n if (d.length) {\n va r b = d.shift();\n f(b.href, function(c) {\n v(c, b.href, b.media), o[b.href] = !0, a.setTimeout(function() {\n w()\n }, 0)\n })\n }\n },\n x = function() {\n for (var b = 0; b < s.length; b++) {\n var c = s[b],\n e = c.href,\n f = c.media,\n g = c.rel && \"stylesheet\" === c.rel.toLowerCase();\n e && g && !o[e] && ( c.styleSheet && c.styleSheet.rawCssText ? (v(c.styleSheet.rawCssText, e, f), o[e ] = !0) : (!/^([a-zA-Z:]*\\/\\/)/.test(e) && !r || e.replace(RegExp.$1, \"\").sp lit(\"/\")[0] === a.location.host) && (\"//\" === e.substring(0, 2) && (e = a.lo cation.protocol + e), d.push({\n href: e,\n media: f\n })))\n }\n w()\n };\n x(), c.update = x, c.getEmValue = t, a.addEventListener ? a.addE ventListener(\"resize\", b, !1) : a.attachEvent && a.attachEvent(\"onresize\", b )\n }\n}(this);"],"file":"respond.js"}
OLDNEW

Powered by Google App Engine
This is Rietveld