Server IP : 192.158.238.246 / Your IP : 3.144.126.147 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/7779/task/7779/cwd/plugins/gutenkit-blocks-addon/build/blocks/image-accordion/ |
Upload File : |
(()=>{"use strict";const e=e=>{const t=JSON.parse(e),a="_blank"==t?.target?"_blank":"_self";window.open(t.href,a)},t=t=>{const a=t.target.closest(".gkit-image-accordion-item"),c=a.getAttribute("data-event"),i="gkit-image-accordion-item--active",o=a.getAttribute("data-link");switch(c){case"click":o&&a.classList.contains(i)&&e(o);const t=Array.from(a.parentNode.childNodes).filter((e=>e.nodeType===Node.ELEMENT_NODE&&e!==a));a.classList.contains(i)||(a.classList.add(i),t.map((e=>{e.classList.remove(i)})));break;case"hover":o&&e(o)}};window.addEventListener("load",(()=>{document.querySelectorAll(".gkit-image-accordion").forEach((e=>{e.querySelectorAll(".gkit-image-accordion-item").forEach((e=>{e.addEventListener("click",t)})),Fancybox.bind(e,"[data-fancybox]",{})}))}))})();