-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
79 lines (71 loc) · 2.39 KB
/
Copy path404.html
File metadata and controls
79 lines (71 loc) · 2.39 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
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
73
74
75
76
77
78
79
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>404 - Kernel Panic | Page Not Found</title>
<script>
if (localStorage.getItem('theme') === 'light') {
document.documentElement.classList.add('light-mode');
}
</script>
<link rel="stylesheet" href="./css/style.css">
<link rel="icon" type="image/png" href="./assets/favicon.png" />
<style>
.corrupt-text {
font-family: monospace;
word-break: break-all;
opacity: 0.9;
}
.btn-home {
display: inline-block;
margin-top: 1.5rem;
padding: 0.6rem 1.2rem;
border: 1px solid currentColor;
text-decoration: none;
font-family: monospace;
transition: background-color 0.2s, color 0.2s;
}
.btn-home:hover {
background-color: currentColor;
color: #000;
}
</style>
</head>
<body>
<header class="hero page-head">
<div class="wrap">
<div class="prompt-line">
<span>$ error --code 404 --status PAGE_NOT_FOUND</span>
<span class="cursor"></span>
</div>
<h1 class="kw">404: </<span><span id="corrupt-title">KER</span></span>></h1>
<p class="lede">
<strong>How Did We Get Here?: Segfault at address 0x00000<span><span id="corrupt-er" class="corrupt-text">404</span></span>.</strong><br>
<span id="corrupt-desc" class="corrupt-text"></span>
</p>
<a href="/" class="btn-home">< Return to Safety /></a>
</div>
</header>
<script>
const glyphs = '!@#$%^&*()_+-=[]{}|;:,.<>?/░▒▓█~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
const titleEl = document.getElementById('corrupt-title');
const descEl = document.getElementById('corrupt-desc');
const errEl = document.getElementById('corrupt-er');
function generateGibberish(length) {
let result = '';
for (let i = 0; i < length; i++) {
result += glyphs.charAt(Math.floor(Math.random() * glyphs.length));
}
return result;
}
setInterval(() => {
if (titleEl) titleEl.textContent = generateGibberish(8);
if (descEl) descEl.textContent = generateGibberish(260);
if (errEl) errEl.textContent = generateGibberish(3);
}, 67);
</script>
<script type="module" src="./js/404.js"></script>
<script src="./js/boot-type.js"></script>
</body>
</html>