⭐ Moe-Counter Compatible Website Hit Counter Written in Gleam mayu.due.moe
hit-counter svg moe

fix(index.html): only show image after setting

fuwn.net 31befc12 c859a509

verified
+3 -6
+3 -6
index.html
··· 171 171 margin: 0; 172 172 border-radius: 0; 173 173 z-index: -1; 174 + display: none; 174 175 } 175 176 } 176 177 </style> ··· 230 231 </div> 231 232 </main> 232 233 233 - <img 234 - src="https://i.imgur.com/efamPLp.png" 235 - alt="Mascot" 236 - class="mascot" 237 - title="Mascot" 238 - /> 234 + <img src="" alt="Mascot" class="mascot" title="Mascot" /> 239 235 240 236 <script> 241 237 let inputTimeout; ··· 309 305 document.querySelector(".mascot").src = randomMascot.image; 310 306 document.querySelector(".mascot").alt = randomMascot.name; 311 307 document.querySelector(".mascot").title = randomMascot.name; 308 + document.querySelector(".mascot").style.display = "block"; 312 309 </script> 313 310 </body> 314 311 </html>