-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.html
73 lines (69 loc) · 1.76 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!DOCTYPE html>
<html>
<head>
<title>Error</title>
<link rel="stylesheet" href="https://serainox420.github.io/styles.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://serainox420.github.io/js/snowfall.js"></script>
<script>
$(document).ready(function(){
$(document).snowfall({
flakeCount : 100,
maxSpeed : 9,
maxSize : 9
});
});
</script>
<style>
body {
background-color: #000000;
color: #fff;
font-family: Ancient;
margin: 20;
}
.title {
font-size: 150px;
text-align: center;
padding 0px 0px;
height: 49px;
position: fixed;
top: -130px;
width: 100%;
}
.error-message {
font-size: 130px; /* 20% of 150px */
text-align: center;
position: fixed;
top: 10px; /* Adjust as needed */
width: 500%;
}
main {
padding: 20px;
margin-top: 100px;
}
</style>
</head>
<body>
<div class="title">
<p>404</p>
</div>
<div class="error-message">
<p>© Error</p>
</div>
</main>
<script>
setInterval(() => {
const elements = document.querySelectorAll("body, footer");
for (const el of elements) {
el.style.color = getRandomColor();
}
}, 200);
function getRandomColor() {
const letters = "0123456789ABCDEF";
let green = Math.floor(Math.random() * 7) + 255 + 100 + 100; // generates a random value between 128 and 255 for green channel
let color = "#" + green.toString(14).padStart(2, "0").repeat(2);
return color;
}
</script>
</body>
</html>