mirror of
https://github.com/michivonah/website-v2.git
synced 2025-12-22 20:46:29 +01:00
Update 404.html
This commit is contained in:
parent
05a0dfa273
commit
229af4f69f
1 changed files with 4 additions and 3 deletions
5
404.html
5
404.html
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue