PageSourceSearch

https://swoop.com/wp-content/themes/swoop/dist/blocks/accordion/view.js?ver=343b40320f0d3f899404

js swoop.com collected 2026-09-25 20:59:19 UTC 1,722 bytes, 1 lines download raw bytes

1!function(){const t=document.querySelectorAll(".rv-accordion--item-trigger"),e=t=>{t.classList.add("active","transition-in");const e=t.querySelector(".rv-accordion--item-content");let i=e?.querySelector(".rv-accordion--item-content-hidden")||null;i||(i=e),i.style.display="block",i.style.height="auto";const n=`${i.clientHeight}px`;i.style.height="0px",setTimeout((()=>{i.style.height=n,i.setAttribute("aria-hidden","false")}),0),i.addEventListener("transitionend",(()=>{t.classList.remove("transition-in"),t.classList.add("transitioned")}),{once:!0})};window.addEventListener("load",(()=>{if(t){t.forEach((t=>{t.addEventListener("click",(()=>{const i=t.closest(".rv-accordion--item");i.classList.contains("active")?(t=>{const e=t.querySelector(".rv-accordion--item-content");let i=e?.querySelector(".rv-accordion--item-content-hidden")||null;i||(i=e),t.classList.contains("active-on-load")&&(i.style.height=`${i.clientHeight}px`),t.classList.remove("transitioned"),t.classList.add("transition-out"),setTimeout((()=>{i.style.height="0px"}),0),i.addEventListener("transitionend",(()=>{i.style.display="none",i.setAttribute("aria-hidden","true"),t.classList.remove("transition-out"),t.classList.remove("active"),t.classList.contains("active-on-load")&&t.classList.remove("active-on-load")}),{once:!0})})(i):e(i)}))}));const i=window.location.hash,n=document.querySelectorAll('a[href^="#"]');if(i){const t=document.querySelector(i);if(!t||!t.classList.contains("rv-accordion--item"))return;e(t)}n?.forEach((t=>{const i=t.getAttribute("href").replace("#","");if(!i)return;const n=document.getElementById(i);n&&n.classList.contains("rv-accordion--item")&&t.addEventListener("click",(t=>{t.preventDefault(),n&&e(n)}))}))}}))}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.