PageSourceSearch

https://thei.edu.hk/wp-content/plugins/wp-events-manager/assets//dist/js/frontend/wpems-modal.min.js?ver=2.1.8

js thei.edu.hk collected 2026-09-24 11:13:29 UTC 2,253 bytes, 1 lines download raw bytes

1!function(e,t){"use strict";var n=null;function o(e){return Array.prototype.slice.call(e.querySelectorAll('a[href], area[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), iframe, object, embed, [tabindex]:not([tabindex="-1"]), [contenteditable="true"]')).filter(function(e){return!e.hasAttribute("disabled")&&"true"!==e.getAttribute("aria-hidden")})}function i(){if(n){var o=n;n=null,t.removeEventListener("keydown",o.onKeyDown),o.overlay.classList.remove("event-in"),o.dialog.classList.remove("event-in"),e.setTimeout(function(){o.overlay.parentNode&&o.overlay.parentNode.removeChild(o.overlay)},180),o.previousFocus&&"function"==typeof o.previousFocus.focus&&o.previousFocus.focus(),"function"==typeof o.options.onClose&&o.options.onClose()}}e.WPEMSModal={open:function(a){a=a||{},i();var r=t.createElement("div"),l=t.createElement("div"),s=t.createElement("button"),c=t.activeElement;if(r.className="wpems-modal-overlay event-fade",l.className=(a.mainClass||"event-lightbox-wrap")+" wpems-modal-dialog event-fade",l.setAttribute("role","dialog"),l.setAttribute("aria-modal","true"),l.setAttribute("tabindex","-1"),s.type="button",s.className="wpems-modal-close",s.setAttribute("aria-label","Close"),s.textContent="x",s.addEventListener("click",i),l.appendChild(s),a.content instanceof e.HTMLElement)l.appendChild(a.content);else{var d=t.createElement("div");d.innerHTML=a.content||"",l.appendChild(d)}return r.appendChild(l),t.body.appendChild(r),n={overlay:r,dialog:l,options:a,previousFocus:c,onKeyDown:function(e){if("Escape"===e.key)return e.preventDefault(),void i();!function(e,n){if("Tab"===e.key){var i=o(n);if(!i.length)return e.preventDefault(),void n.focus();var a=i[0],r=i[i.length-1];e.shiftKey&&t.activeElement===a?(e.preventDefault(),r.focus()):e.shiftKey||t.activeElement!==r||(e.preventDefault(),a.focus())}}(e,l)},close:i},r.addEventListener("click",function(e){e.target===r&&i()}),t.addEventListener("keydown",n.onKeyDown),e.requestAnimationFrame(function(){r.classList.add("event-in"),l.classList.add("event-in"),function(e){var t=o(e);t.length?t[0].focus():e.focus()}(l),"function"==typeof a.onOpen&&a.onOpen(l)}),n},close:i,getActive:function(){return n}}}(window,document);

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.