PageSourceSearch

https://eventforum-erding.de/site/templates/min/script.js?vers=1788961357

js eventforum-erding.de collected 2026-10-09 18:16:41 UTC 5,857 bytes, 1 lines download raw bytes

1document.addEventListener("DOMContentLoaded",(()=>{var e=document.querySelector(".mehr-anzeigen");e&&e.addEventListener("click",(function(){e.classList.add("mehr-anzeigen--hidden");var t=e.closest(".column-1");t&&t.classList.add("column-1--expanded")})),document.querySelectorAll("a[href], button, input, select, textarea").forEach((e=>{e.hasAttribute("tabindex")||e.setAttribute("tabindex","0")})),function(){const e=document.querySelectorAll('nav.desktop .nav-1 div.nav-1-label[role="button"]'),t=(t=null)=>{e.forEach((e=>{if(e!==t){e.setAttribute("aria-expanded","false");const t=document.getElementById(e.getAttribute("aria-controls"));t?.classList.remove("is-open")}}))},n=e=>{const n=document.getElementById(e.getAttribute("aria-controls"));if(!n)return;const a="true"===e.getAttribute("aria-expanded");t(e),e.setAttribute("aria-expanded",String(!a)),n.classList.toggle("is-open",!a)};e.forEach((e=>{e.addEventListener("click",(t=>{n(e),t.stopPropagation()})),e.addEventListener("keydown",(a=>{"Enter"!==a.key&&" "!==a.key&&"Spacebar"!==a.key||(a.preventDefault(),n(e)),"Escape"===a.key&&(t(),e.focus())}))}));const a=window.matchMedia("(hover: hover)"),r=document.querySelector("nav.desktop");r&&(r.querySelectorAll(".nav-1").forEach((e=>{e.addEventListener("mouseenter",(()=>{a.matches&&t(e.querySelector('div.nav-1-label[role="button"]'))}))})),r.addEventListener("mouseleave",(()=>{a.matches&&t()}))),document.addEventListener("click",(()=>t())),document.addEventListener("focusin",(t=>{e.forEach((e=>{if(!("true"===e.getAttribute("aria-expanded")))return;
1e.closest(".nav-1").contains(t.target)||(e.setAttribute("aria-expanded","false"),document.getElementById(e.getAttribute("aria-controls"))?.classList.remove("is-open"))}))}))}(),document.querySelectorAll("nav.mobile .nav-1 div.nav-1-label").forEach((e=>{e.setAttribute("role","button"),e.setAttribute("tabindex","0"),e.setAttribute("aria-expanded","false");const t=()=>{const t=e.classList.toggle("open");e.setAttribute("aria-expanded",String(t))};e.addEventListener("click",(e=>{t(),e.stopPropagation()})),e.addEventListener("keydown",(e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t())}))})),(()=>{const e=document.querySelector(".nav-toggle"),t=document.getElementById("mobile-nav");if(!e||!t)return;e.setAttribute("aria-controls","mobile-nav"),e.setAttribute("aria-expanded","false");const n=()=>{e.setAttribute("aria-expanded","false"),e.classList.remove("is-open"),t.classList.remove("is-open")};e.addEventListener("click",(a=>{"true"===e.getAttribute("aria-expanded")?n():(e.setAttribute("aria-expanded","true"),e.classList.add("is-open"),t.classList.add("is-open")),a.stopPropagation()})),t.addEventListener("click",(e=>{e.target.closest("a")&&(n(),e.stopPropagation())})),document.addEventListener("mouseup",(a=>{t.contains(a.target)||e.contains(a.target)||n()})),document.addEventListener("keydown",(e=>{"Escape"===e.key&&n()}))})();const t=document.querySelectorAll("button.acc-label");function n(e){"Tab"===e.key&&(document.body.classList.add("user-is-tabbing"),window.removeEventListener("keydown",n),window.addEventListener("mousedown",a))}function a(){document.body.classList.remove("user-is-tabbing"),window.removeEventListener("mousedown",a),window.addEventListener("keydown",n)}t.forEach((e=>{e.addEventListener("click",(()=>{const n=document.getElementById(e.getAttribute("aria-controls")),a="true"===e.getAttribute("aria-expanded");t.forEach((e=>{e.setAttribute("aria-expanded","false"),e.classList.remove("is-open")})),document.querySelectorAll(".accordion-content").forEach((e=>{e.classList.remove("is-open")})),!a&&n&&(e.setAttribute("aria-expanded","true"),e.classList.add("is-open"),n.classList.add("is-open"))}))})),document.querySelectorAll(".js-email").forEach((e=>{const t=parseInt(e.dataset.key,10),n=e.dataset.code||"";if(!n)return;const a=n.split(",").reverse().map((e=>parseInt(e,10))).filter((e=>!isNaN(e))).map((e=>String.fromCharCode(e-t))).join("");e.setAttribute("href","mailto:"+a),"1"===e.dataset.setLabel&&(e.textContent=a)})),window.addEventListener("keydown",n),document.querySelectorAll(".veranstaltung-teasers .veranstaltung-teaser,.raum-teasers .raum-teaser, .news-teasers .news-teaser").forEach((e=>{e.addEventListener("click",(t=>{if(t.target.closest("a"))return;const n=e.querySelector("a.pfeil-verlinkung")?.getAttribute("href");n&&(window.location.href=n)}))}));const r=Array.from(document.querySelectorAll(".veranstaltung-teaser")),s=document.getElementById("mehr-anzeigen");if(!r.length||!s)return;const o=document.getElementById("filter-suche"),d=document.getElementById("filter-eventplus"),i=document.getElementById("monat-alle"),c=Array.from(document.querySelectorAll('input[name="monat"]')).filter((e=>e!==i)),l=Array.from(document.querySelectorAll('input[name="kategorie"]')),u=window.veranstaltungSuche||{},m=null!==o?17:18;let v=m;const p=()=>c.filter((e=>e.checked)).map((e=>e.value));function g(e){e&&(v=m);const t=o?o.value.trim().toLowerCase():"",n=l.filter((e=>e.checked)).map((e=>e.value)),a=p(),i=!!d&&d.checked;let c=0,g=0;r.forEach((e=>{let r=!0;if(t&&!(u[e.dataset.pageId]||"").includes(t)&&(r=!1),r&&n.length){const t=e.dataset.kategorien.split(" ");n.some((e=>t.includes(e)))||(r=!1)}r&&a.length&&!a.includes(e.dataset.month)&&(r=!1),r&&i&&"1"!==e.dataset.eventplus&&(r=!1),r?(g++,e.style.display=c<v?"":"none",c<v&&c++):e.style.display="none"})),s.style.display=g>v?"":"none"}o&&o.addEventListener("input",(()=>g(!0))),d&&d.addEventListener("change",(()=>g(!0))),l.forEach((e=>e.addEventListener("change",(()=>g(!0))))),i&&(i.addEventListener("change",(()=>{i.checked?c.forEach((e=>e.checked=!1)):0===p().length&&(i.checked=!0),g(!0)}
1)),c.forEach((e=>e.addEventListener("change",(()=>{e.checked&&(i.checked=!1),0===p().length&&(i.checked=!0),g(!0)}))))),s.addEventListener("click",(()=>{v+=18,g(!1)})),g(!0)}));

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.