Cloudlog
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
81d3856431
commit
7d6087c965
|
@ -46,8 +46,18 @@ title: Cloudlog
|
||||||
iframe.src = `https://cloudlog.sa6anw.se/visitor/alpha`;
|
iframe.src = `https://cloudlog.sa6anw.se/visitor/alpha`;
|
||||||
}
|
}
|
||||||
const windowWidth = window.innerWidth;
|
const windowWidth = window.innerWidth;
|
||||||
iframe.style.height = windowWidth < 600 ? "2200px" : "1700px";
|
iframe.style.height = windowWidth < 600 ? "2100px" : "1600px";
|
||||||
});
|
});
|
||||||
|
|
||||||
|
document.addEventListener("DOMContentLoaded", () => {
|
||||||
|
const iframe = document.getElementById("cloudlog");
|
||||||
|
if (iframe) {
|
||||||
|
iframe.src = "https://cloudlog.sa6anw.se/visitor/alpha";
|
||||||
|
}
|
||||||
|
setIframeHeight(); // Sätt rätt höjd direkt
|
||||||
|
});
|
||||||
|
|
||||||
|
window.addEventListener("resize", setIframeHeight); // Ändra höjd vid fönsterändring
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div id="cloudlog-wrapper">
|
<div id="cloudlog-wrapper">
|
||||||
|
|
Loading…
Reference in New Issue