-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
35 lines (35 loc) · 1.14 KB
/
404.html
File metadata and controls
35 lines (35 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
<!DOCTYPE html>
<html>
<head>
<title>Redirecting you</title>
<link href="stylesheets/screen.css" rel="stylesheet" />
</head>
<body>
<div class="root">
<div class="header">Redirecting you in less than 1 second... <a href="http://morrow.github.io">go to morrow.github.io</a><a href="https://github.com/morrow">go to github.com/morrow</a>
</div>
</div>
</body>
<script type="text/javascript">
var query = window.location.pathname.toString().toLowerCase();
if(query.match(/css|clock|gif/i)) {
if(query.match(/css/i)) {
var actual = '/css-reference/';
} else if(query.match(/polar|clock) {
var actual = '/polar-clock/';
} else if(query.match(/gif|viewer){
var actual = '/gif-viewer/';
}
if(window.history.replaceState) {
window.history.replaceState({},actual,actual);
window.location.href = actual;
window.location.reload();
}
else {
window.setTimeout('window.location.href = ' + actual, 999)
}
}
else {
window.location.href = 'http://morrow.github.io/#/' + window.location.pathname;
}</script>
</html>