PluginProbe
Qi Blocks / trunk
Qi Blocks vtrunk
1.5.3 1.5.2 1.5.1 trunk 1.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1 1.1.1 1.1.2 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 All 45 releases
← All changes | assets/dist/button-script.js +1 -1 1.0.7trunk View file →
@@ -1 +1 @@
1 -!function(){"use strict";document.addEventListener("DOMContentLoaded",(function(){t.init()}));const t={init:function(){this.holder=document.querySelectorAll(".qi-block-button"),this.holder.length&&[...this.holder].map((e=>{t.initItem(e)}))},getRealCurrentItem:function(t){return"string"==typeof t&&""!==t&&(t=qiBlocksEditor.qodefGetCurrentBlockElement.get(t)),t},initItem:function(e){if(!(e=t.getRealCurrentItem(e)))return;const n=e.querySelector(".qodef-m-icon");if(n){let t="auto";e.classList.contains("qodef-type--icon-boxed")&&(t=parseInt(window.getComputedStyle(e).getPropertyValue("height"),10)+"px"),n.style.width=t}}}}();
1 +(()=>{"use strict";document.addEventListener("DOMContentLoaded",function(){t.init()});const t={init:function(){this.holder=document.querySelectorAll(".qi-block-button"),this.holder.length&&[...this.holder].map(e=>{t.initItem(e)})},getRealCurrentItem:function(t){return"string"==typeof t&&""!==t&&(t=qiBlocksEditor.qodefGetCurrentBlockElement.get(t)),t},initItem:function(e){if(!(e=t.getRealCurrentItem(e)))return;const n=e.querySelector(".qodef-m-icon");if(n){let t="auto";e.classList.contains("qodef-type--icon-boxed")&&(t=parseInt(window.getComputedStyle(e).getPropertyValue("height"),10)+"px"),n.style.width=t}}}})();