PageSourceSearch

https://www1.wdr.de/assets-v5.180.2/js/ExternalLink-Cg1xImxG.js

js wdr.de collected 2026-09-24 07:59:35 UTC 2,129 bytes, 26 lines download raw bytes

1import{B as l}from"./Base-BouCSPYx.js";const o=`
2  <div class="modal">
3    <div
4      id="modal"
5      class="modal-content"
6      role="dialog"
7      aria-modal="true"
8      aria-describedby="modal"
9      aria-labelledby="modal-headline">
10      <button type="button" class="modal-close" aria-label="Schließen"></button>
11      <h2 id="modal-headline">Der Link öffnet eine Internetseite außerhalb des WDR / der ARD.</h2>
12      <p id="modal-content">
13        Der WDR / die ARD ist für den Inhalt externer Seiten nicht verantwortlich. Es kann sich um ein Bezahlangebot
14        handeln.
15      </p>
16      <ul class="modal-actions">
17        <li>
18          <button type="button" class="ok"><span>Seite aufrufen</span></button>
19        </li>
20        <li>
21          <button type="button" class="cancel"><span>Abbrechen</span></button>
22        </li>
23      </ul>
24    </div>
25  </div>
26`;class i extends l{modalEl=null;okButton=null;currentHref=null;currentLink=null;escHandler=null;init(){document.querySelectorAll(".external-link-button").forEach(e=>{e.addEventListener("click",n=>{n.preventDefault(),this.currentHref=e.href,this.currentLink=e,this.showModal()})})}showModal(){if(!this.modalEl){document.body.insertAdjacentHTML("beforeend",o),this.modalEl=document.querySelector(".modal"),this.okButton=this.modalEl?.querySelector(".ok");const t=()=>{this.modalEl.classList.remove("isOpen"),document.removeEventListener("keydown",this.escHandler)};this.modalEl?.querySelector(".cancel")?.addEventListener("click",t),this.modalEl?.addEventListener("click",e=>{e.target===this.modalEl&&t()}),this.modalEl?.querySelector(".modal-close")?.addEventListener("click",t),this.escHandler=e=>{e.key==="Escape"&&this.modalEl?.classList.contains("isOpen")&&t()},document.addEventListener("keydown",this.escHandler)}this.okButton.onclick=()=>{if(!this.currentLink)return;this.currentLink.hasAttribute("data-ctrl-popup")?this.currentLink.dispatchEvent(new CustomEvent("openPopup")):this.currentHref&&window.open(this.currentHref,"_blank","noopener"),this.modalEl.classList.remove("isOpen")},this.modalEl.classList.add("isOpen")}}export{i as default};

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.