-
Notifications
You must be signed in to change notification settings - Fork 1
/
404.html
57 lines (48 loc) · 1.42 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Rivers.run - 404 Not Found</title>
<!--Favicon-->
</head>
<body>
<style>
h1, p{
text-align:center
}
html, body{
height:100%;
}
@media (prefers-color-scheme:dark) {
html, body {
background-color: black;
color: white;
}
}
</style>
<script src="packages/allPages.js"></script>
<h1>404 - Not Found</h1>
<p style="font-size:18px">
The file you are looking for was not found.<br><br>
I could have turned on the dam early, getting the file stuck in a hydraulic.<br>
You could have paddled down the wrong river.<br>
The file could have made a wrong turn on the shuttle.<br><br>
If you think the dam needs to be turned off, please email <a href="mailto:[email protected]">[email protected]</a>.<br><Br>
You can see the main page below, and navigate around.</p>
<iframe style="width:100%;height:100%" id="homepage"></iframe>
<script>
//window.root defined in allPages.js
let iframe = document.getElementById("homepage")
iframe.src = window.root
iframe.addEventListener("load", function() {
//If the user clicks on a link, to rivers.run, redirect the whole page there.
iframe.contentDocument.addEventListener("click", function(e) {
if (e.srcElement.href && e.srcElement.href.includes(window.root)) {
window.location = e.srcElement.href
}
else {
console.log(e.srcElement.href)
}
})
})
</script>
</body>