Sha256: 61e89f8111a6a8bf379ebb9a7735f3e6ba09913f40068deb66a903f9ed6e1f53

Contents?: true

Size: 1.96 KB

Versions: 40

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) 2022 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

40 entries across 40 versions & 1 rubygems

Version Path
j1-template-2022.6.3 assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js
j1-template-2022.6.2 assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js
j1-template-2022.6.1 assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js
j1-template-2022.6.0 assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js
j1-template-2022.5.3 assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js
j1-template-2022.5.2 assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js
j1-template-2022.5.1 assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js
j1-template-2022.5.1.rc1 assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js
j1-template-2022.5.1.rc0 assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js
j1-template-2022.5.0 assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js
j1-template-2022.5.0.rc4 assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js
j1-template-2022.5.0.rc3 assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js
j1-template-2022.5.0.rc2 assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js
j1-template-2022.5.0.rc1 assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js
j1-template-2022.5.0.rc0 assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js
j1-template-2022.3.0.rc1 assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js
j1-template-2022.3.0.rc0 assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js
j1-template-2022.4.10 assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js
j1-template-2022.4.9 assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js
j1-template-2022.4.8 assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js