Add more error pages and add error.html as a redirect
parent
86d8c422eb
commit
d37ce57122
|
@ -0,0 +1,12 @@
|
||||||
|
---
|
||||||
|
layout: error
|
||||||
|
title: 418 error
|
||||||
|
---
|
||||||
|
|
||||||
|
<h1>418</h1>
|
||||||
|
|
||||||
|
<p><strong>I'm a teapot!</strong></p>
|
||||||
|
|
||||||
|
|
||||||
|
<p>The requested entity body is short and stout.<br/>You may want to
|
||||||
|
<a href="https://google.com/teapot">tip me over and pour me out</a>.
|
|
@ -0,0 +1,22 @@
|
||||||
|
---
|
||||||
|
layout: compress
|
||||||
|
---
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<title>Redirecting...</title>
|
||||||
|
<h1>Redirecting...</h1>
|
||||||
|
<p>If you are not redirected, please make sure JavaScript is enabled.</p>
|
||||||
|
<script>
|
||||||
|
switch(window.location.hash) {
|
||||||
|
case '#404':
|
||||||
|
case '#e404':
|
||||||
|
a = '404.html';
|
||||||
|
case '#410':
|
||||||
|
case '#e410':
|
||||||
|
a = '410.html';
|
||||||
|
case '#gameover':
|
||||||
|
a = 'gameover.html';
|
||||||
|
default:
|
||||||
|
a = '418.html';
|
||||||
|
}
|
||||||
|
window.location.href = a;
|
||||||
|
</script>
|
20
style.scss
20
style.scss
|
@ -241,31 +241,13 @@ a:hover img {
|
||||||
.title a:hover {
|
.title a:hover {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
|
.noselect, #loadscreen, .forceblur, .blur:not(:hover), .button {
|
||||||
#gameover {
|
|
||||||
background-color: black;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
z-index: 99;
|
|
||||||
position: fixed;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#gameover, .noselect, #loadscreen, .forceblur, .blur:not(:hover), .button {
|
|
||||||
user-select: none;
|
user-select: none;
|
||||||
-moz-user-select: -moz-none;
|
-moz-user-select: -moz-none;
|
||||||
-khtml-user-select: none;
|
-khtml-user-select: none;
|
||||||
-webkit-user-select: none;
|
-webkit-user-select: none;
|
||||||
-ms-user-select: none;
|
-ms-user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#gameover h1 {
|
|
||||||
font-size: 11vw;
|
|
||||||
color: red;
|
|
||||||
}
|
|
||||||
#loadscreen {
|
#loadscreen {
|
||||||
background-color: $accent-colour;
|
background-color: $accent-colour;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
|
Loading…
Reference in New Issue