D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
oems
/
wp-content
/
plugins
/
qi-blocks
/
assets
/
dist
/
Filename :
icon-with-text-script.js
back
Copy
(()=>{"use strict";document.addEventListener("DOMContentLoaded",function(){t.init()});const t={init:function(e){this.holder=document.querySelectorAll(".qi-block-icon-with-text"),this.holder.length&&[...this.holder].map(o=>{t.initItem(o,e)})},getRealCurrentItem:function(t){return"string"==typeof t&&""!==t&&(t=qiBlocksEditor.qodefGetCurrentBlockElement.get(t)),t},initItem:(e,o)=>{if(!(e=t.getRealCurrentItem(e)))return;let i=(r=10,n=400,Math.floor(Math.random()*(n-r)+r)),a=void 0!==e.getAttribute("data-appear-delay")&&null!==e.getAttribute("data-appear-delay")?e.getAttribute("data-appear-delay"):"";var r,n;const d="object"!=typeof qiBlocksEditor?qiBlocks:qiBlocksEditor;o&&e.classList.remove("qodef--appeared"),a=a?"random"===a?i:a:0,d.qodefIsInViewport.check(e,()=>{e.classList.contains("qodef--appeared")||setTimeout(function(){e.classList.add("qodef--appeared")},a)})}}})();