Sha256: 13d79ecd47a54fb26019509680cca48fca889cee1cdf91ab5c80e0930acda5a8

Contents?: true

Size: 1.96 KB

Versions: 31

Compression:

Stored size: 1.96 KB

Contents

/*
 # -----------------------------------------------------------------------------
 # ~/assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js
 # Provides JS functions for the MDI Icon Previewer
 #
 # Product/Info:
 # https://jekyll.one
 #
 # Copyright (C) 2021 Juergen Adams
 #
 # J1 Template is licensed under the MIT License.
 # See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
 # -----------------------------------------------------------------------------
*/
(function(){var a={};var d="/assets/data/mdil_icons.json";var e=document.documentElement.lang;var b;function c(){return $.ajax({url:d,success:function(f){if(typeof f=="string"){a=JSON.parse(f)}if(typeof f=="object"){a=f}}})}$.when(c()).done(function(l){a.push({name:"blank",codepoint:"F68C"});var m=function(o){if(e=="en"){b="Copied to Clipboard"}else{if(e=="de"){b="Kopiert zur Zwischenablage"}else{b="Copied to Clipboard"}}var j=document.createElement("textarea");j.setAttribute("style","position:fixed;opacity:0;top:100px;left:100px;");j.value=o;document.body.appendChild(j);j.select();document.execCommand("copy");var i=document.createElement("div");i.setAttribute("class","copied");i.appendChild(document.createTextNode(b));document.body.appendChild(i);setTimeout(function(){document.body.removeChild(j);document.body.removeChild(i)},1500)};for(var f=0;f<a.length;f++){var n=document.createElement("div"),g=document.createElement("i");n.setAttribute("id","mdi-icon");g.className="mdil mdil-2x mdil-"+a[f].name;n.appendChild(g);var k=document.createElement("code");k.appendChild(document.createTextNode("#"+a[f].codepoint));n.appendChild(k);var h=document.createElement("span");h.appendChild(document.createTextNode(a[f].name));n.appendChild(h);g.onmouseup=(function(i){return function(){m(i.name)}})(a[f]);k.onmouseup=(function(i){return function(){m("#"+i.codepoint)}})(a[f]);h.onmouseup=(function(i){return function(){m("mdil-"+i.name)}})(a[f]);document.getElementById("mdil-icons").appendChild(n)}})})();

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
j1-template-2022.0.18 assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js
j1-template-2022.0.17 assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js
j1-template-2022.0.16 assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js
j1-template-2022.0.15 assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js
j1-template-2022.0.14 assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js
j1-template-2022.0.13 assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js
j1-template-2022.0.12 assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js
j1-template-2022.0.11 assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js
j1-template-2022.0.10 assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js
j1-template-2022.0.9 assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js
j1-template-2022.0.8 assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js
j1-template-2022.0.7 assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js
j1-template-2022.0.6 assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js
j1-template-2022.0.5 assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js
j1-template-2022.0.4 assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js
j1-template-2022.0.3 assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js
j1-template-2022.0.2 assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js
j1-template-2022.0.1 assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js
j1-template-2022.0.0 assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js
j1-template-2021.3.2 assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js