PageSourceSearch

https://www.redlands.edu/scripts/modal-BsfP0777.js

js redlands.edu collected 2026-10-01 10:27:00 UTC 952 bytes, 2 lines download raw bytes

1import{C as o}from"./vendor-B8v9NfwB.js";class l extends o{setupDefaults(){this.dom={triggers:document.querySelectorAll("[data-modal-trigger]"),close:this.el.querySelector(".modal__close-btn"),modalContainer:this.el.querySelector(".modal__inner")}}addListeners(){var e;this.dom.triggers.length&&[...this.dom.triggers].forEach(t=>{t.dataset.modalTrigger===this.el.dataset.modalId&&t.addEventListener("click",this.openModal.bind(this))}),(e=this.dom.close)==null||e.addEventListener("click",this.closeModal.bind(this)),this.el.addEventListener("click",this.handleOverlay.bind(this)),document.addEventListener("keydown",t=>{t.key==="Escape"&&this.closeModal()})}openModal(){this.el.setAttribute("open","true"),document.body.style.overflow="hidden"}handleOverlay(e){e.target.classList.contains("modal")&&this.closeModal()}closeModal(){this.el.remove(),document.body.style.overflow="auto"}}export{l as default};
2//# sourceMappingURL=modal-BsfP0777.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.