PageSourceSearch

https://waddenfonds.nl/wp-content/themes/waddenfonds/assets/js/components/modal/modal.js

js waddenfonds.nl collected 2026-10-02 05:59:47 UTC 1,760 bytes, 1 lines download raw bytes

1"use strict";function ModalItem(t){this.id=t,this.el=document.getElementById(this.id),this.active=!1;var e=this;this.show=function(){e.el.setAttribute("aria-hidden","false")},this.hide=function(){e.el.setAttribute("aria-hidden","true"),e.el.querySelectorAll(".modal__content")&&e.el.querySelectorAll(".modal__content")[0]&&(e.el.querySelectorAll(".modal__content")[0].innerHTML=e.el.querySelectorAll(".modal__content")[0].innerHTML)},this.addListeners=function(){var t=this;this.el.querySelectorAll("[data-modal-close]").forEach(function(e){e.addEventListener("click",t.closeModal)})},this.removeListeners=function(){var t=this;this.el.querySelectorAll("[data-modal-close]").forEach(function(e){e.removeEventListener("click",t.closeModal)})},this.closeModal=function(t){null!==t.target.getAttribute("data-modal-close")&&e.hide()},this.addListeners()}function ModalInstance(){this.activeModal=null;var t=this;this.modals=[],this.modalOpen=function(e){e.preventDefault();var i=e.currentTarget,o=i.getAttribute("data-modal-open");o&&t.open(o)},this.open=function(t){if(t){var e=this.modals.filter(function(e){return e.id===t})[0];e&&e.show()}},this.init=function(){var t=this;document.querySelectorAll("[data-modal-open]").forEach(function(e){e.removeEventListener("click",t.modalOpen),e.addEventListener("click",t.modalOpen)}),this.modals.length&&(this.modals.forEach(function(t){t.removeListeners()}),this.modals=[]),document.querySelectorAll("[data-modal]").forEach(function(e){var i=new ModalItem(e.id);t.modals.push(i)})},this.reset=function(){this.init()},this.init()}"NodeList"in window&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(t,e){e=e||window;for(var i=0;i<this.length;i++)t.call(e,this[i],i,this)});var Modal=new ModalInstance;

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.