PageSourceSearch

https://www.pam.fi/wp-content/plugins/pam-blocks/build/blocks/accordion-item/view.js?ver=f09711f7899f78f05e71

js pam.fi collected 2026-10-02 04:51:45 UTC 993 bytes, 1 lines download raw bytes

1!function(){let e=!1;window.addEventListener("DOMContentLoaded",(()=>{e||(e=!0,t())}));const t=()=>{[...document.querySelectorAll(".js-accordion-item")].forEach(n)},n=e=>{const t=i(e);t.on("click",t.toggle);const n=()=>o(e)&&t.open();n(),window.addEventListener("hashchange",n,!1)},i=e=>{const t=e.querySelector(".js-accordion-controller"),n=e.querySelector(".js-accordion-content");t.setAttribute("aria-controls",n.getAttribute("id")),t.setAttribute("aria-expanded","false"),n.setAttribute("aria-hidden","true");const i=()=>{e.classList.add("is-open"),t.setAttribute("aria-expanded","true"),n.setAttribute("aria-hidden","false")},o=()=>{e.classList.remove("is-open"),t.setAttribute("aria-expanded","false"),n.setAttribute("aria-hidden","true")},r=()=>e.classList.contains("is-open");return{open:i,close:o,isOpen:r,toggle(){r()?o():i()},on:(e,n)=>(t.addEventListener(e,n),()=>t.removeEventListener(e,n))}},o=e=>{const t=window.location.hash.replace("#","");return e.getAttribute("id")===t}}();

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.