-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.html
44 lines (39 loc) · 1.19 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
<!doctype html>
<html lang="en" class="dark-theme">
<head>
<meta charset="utf-8">
<title>Redirecting...</title>
<style>
body {
background-color: #2b2b2b;
font-family: Arial, serif;
}
p {
color: #fff;
font-size: 2em;
padding: 0.5em;
text-align: center;
}
a {
color: #fff;
}
</style>
<script>
let loc
if (window.location.href.includes("?p=")) {
//Prevent infinite redirect incase of issue
} else {
loc = window.location.origin + "?p=" + window.location.pathname;
window.location.href = loc
}
function onLoad() {
document.getElementById('text').innerHTML = `If you are not redirected, <a href='${loc}'>Click Here</a>`
}
</script>
</head>
<body onload="onLoad()">
<p id="text">
If you are seeing this page, you have JavaScript disabled. This site requires JavaScript to function properly.
</p>
</body>
</html>