PageSourceSearch

https://www.pridecc.org/wp-content/themes/education-zone/js/modal-accessibility.min.js?ver=1.3.9

js pridecc.org collected 2026-10-05 11:38:44 UTC 6,226 bytes, 2 lines download raw bytes

1/*! education-zone 1.3.9 2026-02-04 5:08:01 PM */
2var educationzone=educationzone||{};function educationzoneDomReady(e){if("function"==typeof e)return"interactive"===document.readyState||"complete"===document.readyState?e():void document.addEventListener("DOMContentLoaded",e,!1)}function educationzoneToggleAttribute(e,t,o,n){void 0===o&&(o=!0),void 0===n&&(n=!1),e.getAttribute(t)!==o?e.setAttribute(t,o):e.setAttribute(t,n)}function educationzoneFindParents(e,o){var n=[];return function e(t){t=t.parentNode;t instanceof HTMLElement&&(t.matches(o)&&n.push(t),e(t))}(e),n}educationzone.createEvent=function(e){var t;return"function"==typeof window.Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!1),t},educationzone.coverModals={init:function(){document.querySelector(".cover-modal")&&(this.onToggle(),this.closeOnEscape(),this.hideAndShowModals(),this.keepFocusInModal())},onToggle:function(){document.querySelectorAll(".cover-modal").forEach(function(e){e.addEventListener("toggled",function(e){var e=e.target,t=document.body;e.classList.contains("active")?t.classList.add("showing-modal"):(t.classList.remove("showing-modal"),t.classList.add("hiding-modal"),setTimeout(function(){t.classList.remove("hiding-modal")},500))})})},closeOnEscape:function(){document.addEventListener("keydown",function(e){27===e.keyCode&&(e.preventDefault(),document.querySelectorAll(".cover-modal.active").forEach(function(e){this.untoggleModal(e)}.bind(this)))}.bind(this))},hideAndShowModals:function(){var c=document,l=window,e=c.querySelectorAll(".cover-modal"),r=c.documentElement.style,s=c.querySelector("#wpadminbar");function d(e){var t,o=l.pageYOffset;return s?(t=o+s.getBoundingClientRect().height,e?-t:t):0===o?0:-o}function u(){return{"overflow-y":l.innerHeight>c.documentElement.getBoundingClientRect().height?"hidden":"scroll",position:"fixed",width:"100%",top:d(!0)+"px",left:0}}e.forEach(function(i){i.addEventListener("toggle-target-before-inactive",function(e){var t=u(),o=l.pageYOffset,n=Math.abs(d())-o+"px",a=l.matchMedia("(max-width: 600px)");e.target===i&&(Object.keys(t).forEach(function(e){r.setProperty(e,t[e])}),l.educationzone.scrolled=parseInt(t.top,10),s&&(c.body.style.setProperty("padding-top",n),a.matches)&&(o>=d()?i.style.setProperty("top",0):i.style.setProperty("top",d()-o+"px")),i.classList.add("show-modal"))}),i.addEventListener("toggle-target-after-inactive",function(e){e.target===i&&setTimeout(function(){var e=educationzone.toggles.clickedEl;i.classList.remove("show-modal"),Object.keys(u()).forEach(function(e){r.removeProperty(e)}),s&&(c.body.style.removeProperty("padding-top"),i.style.removeProperty("top")),!1!==e&&(e.focus(),e=!1),l.scrollTo(0,Math.abs(l.educationzone.scrolled+d())),l.educationzone.scrolled=0},500)})})},untoggleModal:function(e){var t,o=!1;e.dataset.modalTargetString&&(t=e.dataset.modalTargetString,o=document.querySelector('*[data-toggle-target="'+t+'"]')),o?o.trigger("click"):e.classList.remove("active")},keepFocusInModal:function(){var r=document;r.addEventListener("keydown",function(e){var t,o,n,a,i,c,l=educationzone.toggles.clickedEl;l&&r.body.classList.contains("showing-modal")&&(l=l.dataset.toggleTarget,i="input, a, button",a=r.querySelector(l),t=a.querySelectorAll(i),t=Array.prototype.slice.call(t),".menu-modal"===l&&(o=(o=window.matchMedia("(min-width: 768px)").matches)?".expanded-menu":".mobile-menu",(t=t.filter(function(e){return null!==e.closest(o)&&null!==e.offsetParent})).unshift(r.querySelector(".close-nav-toggle")),n=r.querySelector(".menu-bottom > nav"))&&n.querySelectorAll(i).forEach(function(e){t.push(e)}),".main-menu-modal"===l&&(o=(o=window.matchMedia("(min-width: 1025px)").matches)?".expanded-menu":".mobile-menu",(t=t.filter(function(e){return null!==e.closest(o)&&null!==e.offsetParent})).unshift(r.querySelector(".close-main-nav-toggle")),n=r.querySelector(".menu-bottom > nav"))&&n.querySelectorAll(i).forEach(function(e){t.push(e)}),a=t[t.length-1],l=t[0],n=r.activeElement,i=9===e.keyCode,!(c=e.shiftKey)&&i&&a===n&&(e.preventDefault(),l.focus()),c)&&i&&l===n&&(e.preventDefault(),a.focus())})}},educationzone.modalMenu={init:function(){this.expandLevel()},expandLevel:function(){document.querySelectorAll(".modal-menu").forEach(function(e){e=e.querySelector(".current-menu-item");e&&educationzoneFindParents(e,"li").forEach(function(e){e=e.querySelector(".submenu-toggle");e&&educationzone.toggles.performToggle(e,!0)})})}},educationzone.toggles={clickedEl:!1,init:function(){this.toggle()},performToggle:function(e,o){var n,a,i=this,c=document,l=e,r=l.dataset.toggleTarget,s="active";c.querySelectorAll(".show-modal").length||(i.clickedEl=c.activeElement),(n="next"===r?l.nextSibling:c.querySelector(r)).classList.contains(s)?n.dispatchEvent(educationzone.createEvent("toggle-target-before-active")):n.dispatchEvent(educationzone.createEvent("toggle-target-before-inactive")),a=l.dataset.classToToggle||s,e=0,n.classList.contains("cover-modal")&&(e=10),setTimeout(function(){var e=n.classList.contains("sub-menu")?l.closest(".menu-item").querySelector(".sub-menu"):n,t=l.dataset.toggleDuration;"slidetoggle"!==l.dataset.toggleType||o||"0"===t?e.classList.toggle(a):educationzoneMenuToggle(e,t),("next"===r||n.classList.contains("sub-menu")?l:c.querySelector('*[data-toggle-target="'+r+'"]')).classList.toggle(s),educationzoneToggleAttribute(l,"aria-expanded","true","false"),i.clickedEl&&-1!==l.getAttribute("class").indexOf("close-")&&educationzoneToggleAttribute(i.clickedEl,"aria-expanded","true","false"),l.dataset.toggleBodyClass&&c.body.classList.toggle(l.dataset.toggleBodyClass),l.dataset.setFocus&&
2(e=c.querySelector(l.dataset.setFocus))&&(n.classList.contains(s)?e.focus():e.blur()),n.dispatchEvent(educationzone.createEvent("toggled")),n.classList.contains(s)?n.dispatchEvent(educationzone.createEvent("toggle-target-after-active")):n.dispatchEvent(educationzone.createEvent("toggle-target-after-inactive"))},e)},toggle:function(){var o=this;document.querySelectorAll("*[data-toggle-target]").forEach(function(t){t.addEventListener("click",function(e){e.preventDefault(),o.performToggle(t)})})}},educationzoneDomReady(function(){educationzone.toggles.init(),educationzone.coverModals.init()});

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.