midsomer
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
596e3cc464
commit
0816ca9812
|
@ -124,8 +124,17 @@ Whether you're a licensed ham or just a loyal viewer, add your name and help us
|
||||||
document.addEventListener("DOMContentLoaded", () => {
|
document.addEventListener("DOMContentLoaded", () => {
|
||||||
const iframe = document.getElementById("namninsamling-lista");
|
const iframe = document.getElementById("namninsamling-lista");
|
||||||
if (iframe) {
|
if (iframe) {
|
||||||
const now = Date.now(); // eller new Date().getTime()
|
const timestamp = Date.now();
|
||||||
iframe.src = `/data/namnlista.html?t=${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>
|
</script>
|
||||||
|
@ -134,7 +143,8 @@ Whether you're a licensed ham or just a loyal viewer, add your name and help us
|
||||||
<iframe
|
<iframe
|
||||||
id="namninsamling-lista"
|
id="namninsamling-lista"
|
||||||
width="100%"
|
width="100%"
|
||||||
height="300px"
|
style="border: none;"
|
||||||
|
scrolling="no"
|
||||||
></iframe>
|
></iframe>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue