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