PageSourceSearch

https://cdn.helsingor.dk/Assets/GoBasic/Applications/Release/downloadRestrictions.min.js

js helsingor.dk collected 2026-10-02 04:39:15 UTC 2,119 bytes, 1 lines download raw bytes

1(()=>{function m(){let l=!1;function p(e){return fetch(e,{method:"GET",credentials:"include",headers:{Range:"bytes=0-0"}}).then(function(n){if(!n.ok&&n.status!==206)throw new Error("Request returned "+n.status+" for "+e)})}function y(e){e&&(e.style.opacity="1",e.style.visibility="visible",document.body.style.overflow="hidden",document.body.appendChild(e))}function c(e){e&&(e.remove(),document.body.style.removeProperty("overflow"))}function h(e,n){let t=document.createElement("div");t.className="alert-container",t.style.opacity="0",t.style.visibility="hidden";let o=document.createElement("div");o.className="alert-overlay";let i=document.createElement("div");i.className="alert-modal";let u=document.createElement("h2");u.textContent="Access Denied";let f=document.createElement("p");f.textContent="You don't have permission to access: "+e+".";let a=document.createElement("button");a.type="button",a.className="btn",a.textContent="Close";let C=function(d){d&&d.preventDefault(),n(t)};return a.addEventListener("click",C),o.addEventListener("click",function(d){d&&d.preventDefault(),d.target===o&&n(t)}),i.appendChild(u),i.appendChild(f),i.appendChild(a),t.appendChild(o),t.appendChild(i),t}function w(e,n){let t=document.querySelector(".alert-container");t&&c(t);let o=(n||"").trim()||e,i=h(o,c);y(i)}function v(e){return typeof e=="string"&&e.toLowerCase().includes("media/restricted")}function r(e){let n=e.target.closest('a[type="media"], a[download]');if(!n||e.type==="keydown"&&!(e.key==="Enter"||e.keyCode===13)||(e.preventDefault(),n.dataset.downloadValidating==="true"))return;let t=n.href;if(t){if(!v(t)){s(n,t);return}n.dataset.downloadValidating="true",p(t).then(function(){s(n,t)}).catch(function(){let o=(n.textContent||"").trim();w(t,o)}).finally(function(){delete n.dataset.downloadValidating})}}function s(e,n){let t=e.getAttribute("target")||"_self";t==="_self"?window.location.href=n:window.open(n,t)}function g(){l||(document.addEventListener("click",r),document.addEventListener("keydown",r),l=!0)}g()}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",m):m();})();

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.