Sha256: 6a09e7edf5a31c0bc94c77ef6c46b3fc66d28fc22406b050d826869e876cf708
Contents?: true
Size: 707 Bytes
Versions: 3
Compression:
Stored size: 707 Bytes
Contents
EasyGem.dynamic = { jsTag: function (src) { var jsScript = document.createElement("script"); jsScript.setAttribute("src", src); jsScript.setAttribute("defer", "true"); document.head.appendChild(jsScript); }, cssTag: function (src) { var link = document.createElement('link'); link.rel = "stylesheet"; link.type = "text/css"; link.href = src; link.media = "all"; document.head.appendChild(link); }, jsTags: function (array, plugin) { for (var i = 0; i < array.length; i++) { this.jsTag(array[i], plugin); } }, cssTags: function (array, plugin) { for (var i = 0; i < array.length; i++) { this.cssTag(array[i], plugin); } } };
Version data entries
3 entries across 3 versions & 1 rubygems