PageSourceSearch

https://www.hotelcasadelmar.com/app/themes/azds-default/assets/scripts/blocks/faq.js?ver=1790884669

js hotelcasadelmar.com collected 2026-10-03 21:39:14 UTC 1,273 bytes, 2 lines download raw bytes

1!function(){const e="faq__item--open";function t(t,r,a){t.classList.remove(e),a.setAttribute("aria-expanded","false"),r.toggleAttribute("inert",!0),r.style.maxHeight=null}function r(e,t,r){const a=Array.from(e),n=a.indexOf(t);"prev"===r?(a[n-1]??a[a.length-1]).focus():(a[n+1]??a[0]).focus()}document.querySelectorAll("[data-faq]").forEach(a=>{const n=a.querySelectorAll(".faq__trigger");a.querySelectorAll("[data-faq-item]").forEach(c=>{const o=c.querySelector(".faq__trigger"),s=c.querySelector("[data-faq-answer]");o&&s&&(o.addEventListener("click",()=>{const r=c.classList.contains(e);!function(r,a){r.querySelectorAll("[data-faq-item]").forEach(r=>{if(r===a)return;if(!r.classList.contains(e))return;const n=r.querySelector(".faq__trigger"),c=r.querySelector("[data-faq-answer]");n&&c&&t(r,c,n)})}(a,c),r?t(c,s,o):function(t,r,a){t.classList.add(e),a.setAttribute("aria-expanded","true"),r.toggleAttribute("inert",!1),r.style.maxHeight=`${r.scrollHeight}px`}(c,s,o)}),o.addEventListener("keydown",e=>{switch(e.key){case"ArrowDown":e.preventDefault(),r(n,o,"next");break;case"ArrowUp":e.preventDefault(),r(n,o,"prev");break;case"Home":e.preventDefault(),n[0]?.focus();break;case"End":e.preventDefault(),n[n.length-1]?.focus()}}))})})}();
2//# sourceMappingURL=faq.js.map

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.