forked from 1RedOne/1redone.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.html
57 lines (50 loc) · 1.5 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
---
layout: page
---
<style type="text/css" media="screen">
.container {
margin: 10px auto;
/* max-width: 600px; */
text-align: center;
/* background-image: url('/assets/images/highDpiFoxy.png'); */
}
h1 {
margin: 30px 0;
font-size: 4em;
line-height: 1;
letter-spacing: -1px;
}
h3 {
margin: 30px 0;
font-size: 2em;
line-height: 1;
letter-spacing: -1px;
}
</style>
<div class="container">
<h1 id="redirectingFail">404 - Foxes not found</h1>
<div id="redirecting" style="display:none">
<h1 class="redirecting">Redirecting to likely new URL</h3>
<img src="\assets\images\confusedPup.gif">
</div>
<div id="redirectingFail2">
<p><strong>Page not found :(</strong></p>
<p>Try looking outside for your page in a hot air balloons, because I don't know where it went!</p>
</div>
<img src="/assets/images/highDpiFoxy.png">
{% include gitHubLink.html %}
</div>
<Script>
if (window.location.href.endsWith('/')){
console.log("We might have a valid redirect, trying...");
var dontshowh1 = document.getElementById("redirectingFail");
dontshowh1.textContent = "Might have a valid redirect, hold please!"
var dontshowh2 = document.getElementById("redirectingFail2");
dontshowh1.style.display = "none";
var redirecting = document.getElementById("redirecting");
redirecting.style.display = "block";
setTimeout(function () {
window.location.href=(window.location.href.slice(0, -1))
}, 1800);
}
</Script>