aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-06-12 08:11:16 -0700
committerFuwn <[email protected]>2024-06-12 08:11:16 -0700
commitdd6c9719ee9090fa4dd074bf57c8ef34c915380f (patch)
tree9a51cdc5445582cb5bed5e530b728303f3372b8b
parent07ee67c7493479484c33af2b8709d85d03c785b2 (diff)
downloadmayu-dd6c9719ee9090fa4dd074bf57c8ef34c915380f.tar.xz
mayu-dd6c9719ee9090fa4dd074bf57c8ef34c915380f.zip
fix(index.html): only show image after setting
-rw-r--r--index.html9
1 files changed, 3 insertions, 6 deletions
diff --git a/index.html b/index.html
index 7f18631..32e7cde 100644
--- a/index.html
+++ b/index.html
@@ -171,6 +171,7 @@
margin: 0;
border-radius: 0;
z-index: -1;
+ display: none;
}
}
</style>
@@ -230,12 +231,7 @@
</div>
</main>
- <img
- src="https://i.imgur.com/efamPLp.png"
- alt="Mascot"
- class="mascot"
- title="Mascot"
- />
+ <img src="" alt="Mascot" class="mascot" title="Mascot" />
<script>
let inputTimeout;
@@ -309,6 +305,7 @@
document.querySelector(".mascot").src = randomMascot.image;
document.querySelector(".mascot").alt = randomMascot.name;
document.querySelector(".mascot").title = randomMascot.name;
+ document.querySelector(".mascot").style.display = "block";
</script>
</body>
</html>