-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path404.html
More file actions
37 lines (36 loc) · 1.14 KB
/
404.html
File metadata and controls
37 lines (36 loc) · 1.14 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
<!DOCTYPE html>
<html>
<head>
<style>
body {
margin: 0;
padding: 0;
height: 100%;
}
.viewer {
margin: 0;
padding: 0;
position: absolute;
width: 100%;
height: 100%;
left:0;right:0;bottom:0;top:0;
}
</style>
</head>
<body>
<iframe id="page" style="position: fixed; top: 0px; bottom: 0px; right: 0px; width: 100%; border: none; margin: 0; padding: 0; overflow: hidden; z-index: 999999; height: 100%;" frameborder="0" src="about:blank" class="viewer">
</iframe>
<script>
function spawnErrorPage(){
const dice = Math.random()*21;
const sel = Math.floor(dice);
console.info("Spawning a random error page..."+sel);
var doc = document.getElementById("page");
doc.src = "error-pages/" + sel + ".html";
}
window.onload = function(){
spawnErrorPage();
}
</script>
</body>
</html>