PageSourceSearch

https://www.hotelmanagement-network.com/wp-content/themes/goodlife-wp-B2B/assets/js/modules/GDMCloseModal.js

js hotelmanagement-network.com collected 2026-09-24 18:36:27 UTC 561 bytes, 29 lines download raw bytes

1export default function GDMCloseModal(
2  triggerSelectors,
3  modalSelector,
4  className1,
5  className2
6) {
7
8
9
10  document.querySelectorAll(triggerSelectors).forEach((trigger) => {
11
12    const closeModal = () => {
13      trigger.closest(modalSelector).classList.remove(className1, className2);
14      document.body.classList.remove("freeze-element");
15    }
16
17    trigger.addEventListener("click", () => closeModal());
18
19    window.addEventListener('keyup', (e) => {
20      if(e.key !== 'Escape') return;
21      e.key === 'Escape' && closeModal();
22    });
23
24  });
25
26  
27}
28
29

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.