midsomer
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Joakim Svensson 2025-07-19 07:44:49 +00:00
parent 596e3cc464
commit 0816ca9812
1 changed files with 13 additions and 3 deletions

View File

@ -124,8 +124,17 @@ Whether you're a licensed ham or just a loyal viewer, add your name and help us
document.addEventListener("DOMContentLoaded", () => {
const iframe = document.getElementById("namninsamling-lista");
if (iframe) {
const now = Date.now(); // eller new Date().getTime()
iframe.src = `/data/namnlista.html?t=${now}`;
const timestamp = Date.now();
iframe.src = `/data/namnlista.html?t=${timestamp}`;
iframe.onload = () => {
try {
const contentHeight = iframe.contentWindow.document.body.scrollHeight;
iframe.style.height = contentHeight + "px";
} catch (e) {
console.warn("Kunde inte mäta höjden på iframen:", e);
}
};
}
});
</script>
@ -134,7 +143,8 @@ Whether you're a licensed ham or just a loyal viewer, add your name and help us
<iframe
id="namninsamling-lista"
width="100%"
height="300px"
style="border: none;"
scrolling="no"
></iframe>
</div>