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

This commit is contained in:
Joakim Svensson 2025-07-21 06:11:08 +00:00
parent 7d6087c965
commit 41f5146561
1 changed files with 6 additions and 10 deletions

View File

@ -20,7 +20,7 @@ title: Cloudlog
<style>
#cloudlog-wrapper {
#max-width: 800px;
max-width: 800px;
border: 2px solid #888;
border-radius: 8px;
background-color: var(--md-default-bg-color);
@ -32,22 +32,19 @@ title: Cloudlog
#cloudlog {
width: 100%;
#height: 300px;
border: none;
display: block;
}
</style>
<script>
document.addEventListener("DOMContentLoaded", () => {
function setIframeHeight() {
const iframe = document.getElementById("cloudlog");
if (iframe) {
const timestamp = Date.now();
iframe.src = `https://cloudlog.sa6anw.se/visitor/alpha`;
}
if (!iframe) return;
const windowWidth = window.innerWidth;
iframe.style.height = windowWidth < 600 ? "2100px" : "1600px";
});
iframe.style.height = windowWidth < 600 ? "2100px" : "1800px";
}
document.addEventListener("DOMContentLoaded", () => {
const iframe = document.getElementById("cloudlog");
@ -68,4 +65,3 @@ title: Cloudlog
scrolling="no"
></iframe>
</div>