-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path404.html
52 lines (42 loc) · 1.55 KB
/
404.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="shortcut icon" type="image/x-icon" href="Assets/Random.png">
<title>Unkown webpage</title>
<style>
body {
margin: 0px;
font-family: sans-serif;
background-color: rgb(200, 200, 200);
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
#Home {
padding: 10px;
}
</style>
</head>
<body>
<h1 style="font-size: 100px; margin: 0px"><strong>What</strong></h1>
<p>I don't know what happened, the url doesn't exist...</p>
<button type="button" id="Home">Click me to go home</button>
<script>
document.body.style.height = window.innerHeight + "px";
var Button = document.getElementById("Home");
Button.style.borderRadius = Button.getBoundingClientRect().height + "px";
Button.addEventListener("mouseenter", function (e) {
Button.style.backgroundColor = "rgb(200, 200, 200)";
});
Button.addEventListener("mouseleave", function (e) {
Button.style.backgroundColor = "rgb(255, 255, 255)";
});
Button.addEventListener("click", function (e) {
window.location = "https://falling10fruit.github.io/Random";
});
</script>
</body>
</html>