Cloudlog
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
7d6087c965
commit
41f5146561
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue