PageSourceSearch

https://cdn.halsnaes.dk/Assets/GoBasic/Applications/Release/popUpFrame.min.js

js halsnaes.dk collected 2026-10-02 07:47:18 UTC 2,337 bytes, 1 lines download raw bytes

1(()=>{(function(){let o={modal:"popup-window",span:"close-frame",frame:"popup-frame",header:"header",head:"head",footer:"footer",container:"iframe-container",tools:".tool-section"},d=!1,i=document.getElementById("body"),c=null,m=null,p=null,a=null,r="";function s(){c=document.getElementById(o.modal),m=document.getElementById(o.container),p=document.getElementById(o.span),a=document.getElementById(o.frame),p.onclick=function(){y()},window.onclick=function(e){e.target===c&&y()}}function g(){let e=document.createElement("div");e.id="popup-window",e.setAttribute("role","dialog"),e.className="iframe-modal";let t=document.createElement("div");t.className="iframe-modal-content";let n=document.createElement("span");n.id="close-frame";let l=document.createElement("div");l.id="iframe-container";let u=document.createElement("iframe");u.id="popup-frame",u.name="popupFrame",l.appendChild(u),t.appendChild(n),t.appendChild(l),e.appendChild(t),document.body.appendChild(e),s()}function f(e,t){g(),s();let n=e,l=n.indexOf("#");r=l!==-1?n.substring(l+1):"",c.style.display="block",d=!0,i.style.overflow="hidden",t&&a.setAttribute("title",t),a.setAttribute("src",n)}document.querySelectorAll("a[target='popupFrame']").forEach(function(e){e.addEventListener("click",function(t){t.preventDefault(),t.stopPropagation();let n=e.getAttribute("href"),l=e.getAttribute("data-popupframetitle");f(n,l)})}),document.querySelectorAll("a[target='false']").forEach(function(e){e.removeAttribute("target")}),document.addEventListener("dispatchPopupFrame",function(e){f(e.detail)}),document.getElementById(o.frame)&&document.getElementById(o.frame).addEventListener("load",function(){try{h()}catch{let t=document.getElementById(o.frame);window.location=t.src}});function h(){if(d){let e=a.contentDocument;e.body.classList.add("popup-view"),e.querySelector(o.header).remove(),e.querySelector(o.footer).remove(),e.querySelector(o.tools).remove(),e.querySelector(o.head).insertAdjacentHTML("beforeend",'<base target="_parent">'),m.style.display="block",r&&r!==""&&E()}}function y(){let e=document.getElementById("popup-window");e&&document.body.removeChild(e),i.removeAttribute("style"),d&&(m.style.display="none",d=!1),i.classList.remove("popup-view")}function E(){let e=a.contentDocument.querySelector("[name='"+r+"']");e&&e.scrollIntoView(),r=""}})();})();

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.