HEX
Server: Apache
System: Linux webm014.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: circuix (152771)
PHP: 8.0.30
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/circuix/adrRc/wp-content/plugins/essential-blocks/blocks/accordion/frontend/index.js
(()=>{function t(t){var e=t.scrollHeight,a=t.style.transition;t.style.transition="",requestAnimationFrame((function(){t.style.height=e+"px",t.style.transition=a,requestAnimationFrame((function(){t.style.height="0px"}))})),t.setAttribute("data-collapsed","true")}function e(t){var e=t.scrollHeight;t.style.height=e+"px",t.addEventListener("transitionend",(function(e){t.removeEventListener("transitionend",arguments.callee),t.style.height=null})),t.setAttribute("data-collapsed","false")}document.addEventListener("DOMContentLoaded",(function(a){var n=document.querySelectorAll(".eb-accordion-container > .eb-accordion-inner");if(n)for(var r=function(){var a=n[i].parentElement,r=a.children[0].children,l=[];Array.from(r).forEach((function(t){l.push(t.querySelector(".eb-accordion-title-wrapper"))}));var o=[];Array.from(r).forEach((function(t){o.push(t.querySelector(".eb-accordion-content-wrapper"))})),a.classList.add("eb_accdn_loaded");for(var s=0;s<o.length;s++)o[s].style.height="0px";var c=document.createElement("span"),d=a.getAttribute("data-accordion-type"),u=a.getAttribute("data-tab-icon")||"_ _",p=a.getAttribute("data-expanded-icon")||"_ _",f=u.split(" ")[0],h=u.split(" ")[1],b=p.split(" ")[0],g=p.split(" ")[1];function v(t){var e=t.querySelector(".eb-accordion-icon")||c;e.classList.contains(g)?(e.classList.remove(b,g),e.classList.add(f,h)):(e.classList.remove(f,h),e.classList.add(b,g))}for(var A=0;A<r.length;A++)"true"==r[A].getAttribute("data-clickable")?(o[A].setAttribute("data-collapsed","false"),e(o[A]),v(o[A].parentElement.querySelector(".eb-accordion-title-wrapper"))):(o[A].setAttribute("data-collapsed","true"),t(o[A]));function m(){var a=this.nextElementSibling;"true"===a.getAttribute("data-collapsed")?(e(a),a.setAttribute("data-collapsed","false")):(t(a),a.setAttribute("data-collapsed","true")),v(this)}function y(){var n=this.nextElementSibling,r="true"===n.getAttribute("data-collapsed");!function(t,e){for(var a=0;a<t.length;a++)t[a].style.height="0px",t[a].setAttribute("data-collapsed",!0)}(o),function(t){for(var e=t.querySelectorAll(".eb-accordion-icon"),a=0;a<e.length;a++)e[a].classList.contains(g)&&(e[a].classList.remove(b,g),e[a].classList.add(f,h))}(a),r?(e(n),n.setAttribute("data-collapsed","false")):(t(n),n.setAttribute("data-collapsed","true"),v(this)),v(this)}"toggle"===d?function(t){for(var e=0;e<t.length;e++)t[e].addEventListener("click",m)}(l):function(t){for(var e=0;e<t.length;e++)t[e].addEventListener("click",y)}(l)},i=0;i<n.length;i++)r()}))})();