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", () => {
|
||||
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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue