-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path404.html
More file actions
43 lines (43 loc) · 1.05 KB
/
404.html
File metadata and controls
43 lines (43 loc) · 1.05 KB
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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>404 - Page not found</title>
<style>
* {
background-color: black;
text-align: center;
color: white;
}
.big {
font-size: 500%;
}
#light {
border-radius: 50%;
width: 20px;
height: 20px;
background-color: yellow;
position: absolute;
left: 90%;
}
</style>
<script>
function light() {
var num;
num = Math.floor(Math.random() * 3) + 1;
if(num == 1) {
document.getElementById("text").style.color = "grey";
document.getElementById("light").style.background = "darkgrey";
}
else {
document.getElementById("text").style.color = "white";
document.getElementById("light").style.background = "yellow";
}
}
</script>
</head>
<body onmouseover="light()">
<span class="big" id="text">404</span>
<div id="light" />
</body>
</html>