PageSourceSearch

https://aldrigmere.dk/dist/assets/index-BBRc02zu.js

js aldrigmere.dk collected 2026-10-10 01:22:17 UTC 780 bytes, 1 lines download raw bytes

1import{t as l}from"./try-parse-json-PNnY1j55.js";const w=o=>{const n=l(o.dataset.imageMapModel),s=o.querySelector("img"),r=o.querySelector("map"),t=r==null?void 0:r.querySelectorAll("area");if(!n)return console.error("No image map props found for",o);if(!s||!r||!t)return console.error("Image, map or areas not found for",o,"image missing: ",!!s,"map missing: ",!!r,"areas missing: ",!!t);const c=[],d=()=>{const e=n.intrinsicImageWidth,i=s.offsetWidth/e;t.forEach((p,f)=>{var m,g;const u=(g=(m=c[f])==null?void 0:m.map(h=>Math.floor(h*i)))==null?void 0:g.join(",");p.setAttribute("coords",u)})};(()=>{t.forEach(e=>{var i;const a=(i=e.getAttribute("coords"))==null?void 0:i.split(",").map(Number);a&&c.push(a)}),d()})(),window.addEventListener("resize",d)};export{w as ImageMap};

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.