Update 404.html

This commit is contained in:
Michi 2022-07-03 18:15:10 +02:00 committed by GitHub
parent 05a0dfa273
commit 229af4f69f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,17 +79,18 @@
<script> <script>
// Loading // Loading
window.addEventListener('load', () => { window.addEventListener('load', () => {
// random error image
randomHomeImg();
// hide loadingscreen // hide loadingscreen
document.getElementById('loadingScreen').style.display = "none"; document.getElementById('loadingScreen').style.display = "none";
}); });
function randomHomeImg(){ function randomHomeImg(){
var homeImg = document.getElementById('homeImg'); var homeImg = document.getElementById('homeImg');
var num = Math.floor(Math.random() * (4 - 1) + 1); var num = Math.floor(Math.random() * (4 - 1) + 1);
homeImg.src = "assets/bitmojis/error_" + num + ".png"; homeImg.src = "assets/bitmojis/error_" + num + ".png";
} }
</script> </script>
</body> </body>
</html> </html>