Add more error pages and add error.html as a redirect

master
luk3yx 2018-01-10 13:33:17 +13:00
parent 86d8c422eb
commit d37ce57122
3 changed files with 35 additions and 19 deletions

12
418.html Normal file
View File

@ -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>.

22
error.html Normal file
View File

@ -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>

View File

@ -241,31 +241,13 @@ a:hover img {
.title a:hover {
background-color: transparent;
}
#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 {
.noselect, #loadscreen, .forceblur, .blur:not(:hover), .button {
user-select: none;
-moz-user-select: -moz-none;
-khtml-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
}
#gameover h1 {
font-size: 11vw;
color: red;
}
#loadscreen {
background-color: $accent-colour;
position: fixed;