const CAPTIONS = [ "Seealpsee", "K2", "The North Face", "Mount Cook", "Mount Everest", ]; export function home() { const slots = [0, 1, 2, 3, 4] .map( (i) => `
${CAPTIONS[i]}
`, ) .join(""); return `

Selected

`; } export function getMainTargets(rootEl) { const slots = rootEl.querySelectorAll(".slot"); const rects = []; for (let i = 0; i < slots.length; i++) { const r = slots[i].getBoundingClientRect(); rects.push({ x: r.left, y: r.top, w: r.width, h: r.height }); } return rects; }