PageSourceSearch

https://www.asla.org/js/index.B8HyMTXB.js

js asla.org collected 2026-10-01 09:08:09 UTC 1,554 bytes, 1 lines download raw bytes

1const u="asla:account-dropdown-ready";function d(s){!s||s.dataset.accountDropdownReady==="true"||(s.dataset.accountDropdownReady="true",document.dispatchEvent(new CustomEvent(u,{detail:{dropdown:s}})))}function y(s=document){s.querySelectorAll("[data-account-dropdown]").forEach(n=>{const c=n.querySelector("[data-account-trigger]"),e=n.querySelector("[data-account-menu]"),r=n.querySelector("[data-account-icon]"),l=e.classList.contains("opacity-100")&&e.classList.contains("visible");let a=l;function o(t){a=t,c.setAttribute("aria-expanded",t),t?(e.classList.remove("opacity-0","invisible","translate-y-2"),e.classList.add("opacity-100","visible","translate-y-0"),r.classList.remove("rotate-180")):(e.classList.add("opacity-0","invisible","translate-y-2"),e.classList.remove("opacity-100","visible","translate-y-0"),r.classList.add("rotate-180"))}l||n.closest("[data-mobile-top-buttons]")||e.querySelector('[role="alert"]')&&o(!0),c.addEventListener("click",t=>{t.stopPropagation(),o(!a)}),document.addEventListener("click",t=>{!n.contains(t.target)&&a&&o(!1)}),e.addEventListener("click",t=>{t.stopPropagation()}),e.addEventListener("keydown",t=>{t.key==="Escape"&&a&&(t.preventDefault(),t.stopPropagation(),o(!1),c.focus())}),c.addEventListener("keydown",t=>{switch(t.key){case"Escape":a&&(t.preventDefault(),t.stopPropagation(),o(!1),c.focus());break;case"Enter":case" ":t.preventDefault(),o(!a);break;case"ArrowDown":if(a){t.preventDefault();const i=e.querySelector("a, button");i==null||i.focus()}break}}),d(n)})}
1export{y as initAccountDropdown};

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.