diff options
| author | Fuwn <[email protected]> | 2024-06-12 08:11:16 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-06-12 08:11:16 -0700 |
| commit | dd6c9719ee9090fa4dd074bf57c8ef34c915380f (patch) | |
| tree | 9a51cdc5445582cb5bed5e530b728303f3372b8b | |
| parent | 07ee67c7493479484c33af2b8709d85d03c785b2 (diff) | |
| download | mayu-dd6c9719ee9090fa4dd074bf57c8ef34c915380f.tar.xz mayu-dd6c9719ee9090fa4dd074bf57c8ef34c915380f.zip | |
fix(index.html): only show image after setting
| -rw-r--r-- | index.html | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -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> |