PageSourceSearch

https://langelandbibliotek.dk/themes/custom/novel/assets/dpl-design-system/js/footer-accordions.js?tm81ze

js langelandbibliotek.dk collected 2026-10-04 05:34:57 UTC 656 bytes, 21 lines download raw bytes

1document.addEventListener("DOMContentLoaded", () => {
2  const accordions = document.querySelector("[data-footer-accordions]");
3
4  accordions.addEventListener("click", (e) => {
5    const btn = e.target.closest("[data-footer-accordion-trigger]");
6
7    if (!btn) return;
8
9    const isOpen = btn.getAttribute("aria-expanded") === "true";
10    const target = btn.parentNode.nextElementSibling;
11
12    btn.setAttribute("aria-expanded", String(!isOpen));
13
14    // Toggle the class based on the isOpen value
15    if (isOpen) {
16      target.classList.add("footer__content--hidden");
17    } else {
18      target.classList.remove("footer__content--hidden");
19    }
20  });
21});

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.