Advertisement
Guest User

Untitled

a guest
Feb 26th, 2020
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.04 KB | None | 0 0
  1. window.FontAwesomeKitConfig = {
  2. "asyncLoading": {
  3. "enabled": true
  4. },
  5. "autoA11y": {
  6. "enabled": true
  7. },
  8. "baseUrl": "https://kit-free.fontawesome.com",
  9. "detectConflictsUntil": null,
  10. "license": "free",
  11. "method": "css",
  12. "minify": {
  13. "enabled": true
  14. },
  15. "v4FontFaceShim": {
  16. "enabled": true
  17. },
  18. "v4shim": {
  19. "enabled": true
  20. },
  21. "version": "latest"
  22. };
  23. ! function() {
  24. function r(e) {
  25. var t, n = [],
  26. i = document,
  27. o = i.documentElement.doScroll,
  28. r = "DOMContentLoaded",
  29. a = (o ? /^loaded|^c/ : /^loaded|^i|^c/).test(i.readyState);
  30. a || i.addEventListener(r, t = function() {
  31. for (i.removeEventListener(r, t), a = 1; t = n.shift();) t()
  32. }), a ? setTimeout(e, 0) : n.push(e)
  33. }! function() {
  34. if (!(void 0 === window.Element || "classList" in document.documentElement)) {
  35. var e, t, n, i = Array.prototype,
  36. o = i.push,
  37. r = i.splice,
  38. a = i.join;
  39. d.prototype = {
  40. add: function(e) {
  41. this.contains(e) || (o.call(this, e), this.el.className = this.toString())
  42. },
  43. contains: function(e) {
  44. return -1 != this.el.className.indexOf(e)
  45. },
  46. item: function(e) {
  47. return this[e] || null
  48. },
  49. remove: function(e) {
  50. if (this.contains(e)) {
  51. for (var t = 0; t < this.length && this[t] != e; t++);
  52. r.call(this, t, 1), this.el.className = this.toString()
  53. }
  54. },
  55. toString: function() {
  56. return a.call(this, " ")
  57. },
  58. toggle: function(e) {
  59. return this.contains(e) ? this.remove(e) : this.add(e), this.contains(e)
  60. }
  61. }, window.DOMTokenList = d, e = Element.prototype, t = "classList", n = function() {
  62. return new d(this)
  63. }, Object.defineProperty ? Object.defineProperty(e, t, {
  64. get: n
  65. }) : e.__defineGetter__(t, n)
  66. }
  67.  
  68. function d(e) {
  69. for (var t = (this.el = e).className.replace(/^\s+|\s+$/g, "").split(/\s+/), n = 0; n < t.length; n++) o.call(this, t[n])
  70. }
  71. }();
  72.  
  73. function a(e) {
  74. var t, n, i, o;
  75. prefixesArray = e || ["fa"], prefixesSelectorString = "." + Array.prototype.join.call(e, ",."), t = document.querySelectorAll(prefixesSelectorString), Array.prototype.forEach.call(t, function(e) {
  76. n = e.getAttribute("title"), e.setAttribute("aria-hidden", "true"), i = !e.nextElementSibling || !e.nextElementSibling.classList.contains("sr-only"), n && i && ((o = document.createElement("span")).innerHTML = n, o.classList.add("sr-only"), e.parentNode.insertBefore(o, e.nextSibling))
  77. })
  78. }
  79. var d = function(e, t) {
  80. var n = document.createElement("link");
  81. n.href = e, n.media = "all", n.rel = "stylesheet", n.id = "font-awesome-5-kit-css", t && t.detectingConflicts && t.detectionIgnoreAttr && n.setAttributeNode(document.createAttribute(t.detectionIgnoreAttr)), document.getElementsByTagName("head")[0].appendChild(n)
  82. },
  83. c = function(e, t) {
  84. ! function(e, t) {
  85. var n, i = t && t.before || void 0,
  86. o = t && t.media || void 0,
  87. r = window.document,
  88. a = r.createElement("link");
  89. if (t && t.detectingConflicts && t.detectionIgnoreAttr && a.setAttributeNode(document.createAttribute(t.detectionIgnoreAttr)), i) n = i;
  90. else {
  91. var d = (r.body || r.getElementsByTagName("head")[0]).childNodes;
  92. n = d[d.length - 1]
  93. }
  94. var c = r.styleSheets;
  95. a.rel = "stylesheet", a.href = e, a.media = "only x",
  96. function e(t) {
  97. if (r.body) return t();
  98. setTimeout(function() {
  99. e(t)
  100. })
  101. }(function() {
  102. n.parentNode.insertBefore(a, i ? n : n.nextSibling)
  103. });
  104. var s = function(e) {
  105. for (var t = a.href, n = c.length; n--;)
  106. if (c[n].href === t) return e();
  107. setTimeout(function() {
  108. s(e)
  109. })
  110. };
  111.  
  112. function l() {
  113. a.addEventListener && a.removeEventListener("load", l), a.media = o || "all"
  114. }
  115. a.addEventListener && a.addEventListener("load", l), (a.onloadcssdefined = s)(l)
  116. }(e, t)
  117. },
  118. e = function(e, t, n) {
  119. var i = t && void 0 !== t.autoFetchSvg ? t.autoFetchSvg : void 0,
  120. o = t && void 0 !== t.async ? t.async : void 0,
  121. r = t && void 0 !== t.autoA11y ? t.autoA11y : void 0,
  122. a = document.createElement("script"),
  123. d = document.scripts[0];
  124. a.src = e, void 0 !== r && a.setAttribute("data-auto-a11y", r ? "true" : "false"), i && (a.setAttributeNode(document.createAttribute("data-auto-fetch-svg")), a.setAttribute("data-fetch-svg-from", t.fetchSvgFrom)), o && a.setAttributeNode(document.createAttribute("defer")), n && n.detectingConflicts && n.detectionIgnoreAttr && a.setAttributeNode(document.createAttribute(n.detectionIgnoreAttr)), d.parentNode.appendChild(a)
  125. };
  126.  
  127. function s(e, t) {
  128. var n = t && t.addOn || "",
  129. i = t && t.baseFilename || e.license + n,
  130. o = t && t.minify ? ".min" : "",
  131. r = t && t.fileSuffix || e.method,
  132. a = t && t.subdir || e.method;
  133. return e.baseUrl + "/releases/" + ("latest" === e.version ? "latest" : "v".concat(e.version)) + "/" + a + "/" + i + o + "." + r
  134. }
  135. var t, n, i, o, l;
  136. try {
  137. if (window.FontAwesomeKitConfig) {
  138. var u, f = window.FontAwesomeKitConfig,
  139. m = {
  140. detectingConflicts: f.detectConflictsUntil && new Date <= new Date(f.detectConflictsUntil),
  141. detectionIgnoreAttr: "data-fa-detection-ignore",
  142. detectionTimeoutAttr: "data-fa-detection-timeout",
  143. detectionTimeout: null
  144. };
  145. "js" === f.method && (o = m, l = {
  146. async: (i = f).asyncLoading.enabled,
  147. autoA11y: i.autoA11y.enabled
  148. }, "pro" === i.license && (l.autoFetchSvg = !0, l.fetchSvgFrom = i.baseUrl + "/releases/" + ("latest" === i.version ? "latest" : "v".concat(i.version)) + "/svgs"), i.v4shim.enabled && e(s(i, {
  149. addOn: "-v4-shims",
  150. minify: i.minify.enabled
  151. })), e(s(i, {
  152. minify: i.minify.enabled
  153. }), l, o)), "css" === f.method && function(e, t) {
  154. var n, i = a.bind(a, ["fa", "fab", "fas", "far", "fal", "fad"]);
  155. e.autoA11y.enabled && (r(i), n = i, "undefined" != typeof MutationObserver && new MutationObserver(n).observe(document, {
  156. childList: !0,
  157. subtree: !0
  158. })), e.v4shim.enabled && (e.license, e.asyncLoading.enabled ? c(s(e, {
  159. addOn: "-v4-shims",
  160. minify: e.minify.enabled
  161. }), t) : d(s(e, {
  162. addOn: "-v4-shims",
  163. minify: e.minify.enabled
  164. }), t));
  165. e.v4FontFaceShim.enabled && (e.asyncLoading.enabled ? c(s(e, {
  166. addOn: "-v4-font-face",
  167. minify: e.minify.enabled
  168. }), t) : d(s(e, {
  169. addOn: "-v4-font-face",
  170. minify: e.minify.enabled
  171. }), t));
  172. var o = s(e, {
  173. minify: e.minify.enabled
  174. });
  175. e.asyncLoading.enabled ? c(o, t) : d(o, t)
  176. }(f, m), m.detectingConflicts && ((u = document.currentScript.getAttribute(m.detectionTimeoutAttr)) && (m.detectionTimeout = u), document.currentScript.setAttributeNode(document.createAttribute(m.detectionIgnoreAttr)), t = f, n = m, r(function() {
  177. var e = document.createElement("script");
  178. n && n.detectionIgnoreAttr && e.setAttributeNode(document.createAttribute(n.detectionIgnoreAttr)), n && n.detectionTimeoutAttr && n.detectionTimeout && e.setAttribute(n.detectionTimeoutAttr, n.detectionTimeout), e.src = s(t, {
  179. baseFilename: "conflict-detection",
  180. fileSuffix: "js",
  181. subdir: "js",
  182. minify: t.minify.enabled
  183. }), e.async = !0, document.body.appendChild(e)
  184. }))
  185. }
  186. } catch (e) {}
  187. }();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement