-
Notifications
You must be signed in to change notification settings - Fork 73
/
404.html
49 lines (40 loc) · 1.67 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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Page not found · CUGOS</title>
<style type="text/css" media="screen">
body {
background: #f1f1f1;
font-family: "HelveticaNeue", Helvetica, Arial, sans-serif;
text-rendering: optimizeLegibility;
margin: 0; }
.container { margin: 50px auto 40px auto; width: 600px; text-align: center; }
a { color: #4183c4; text-decoration: none; }
a:visited { color: #4183c4 }
a:hover { text-decoration: none; }
h1 { width: 800px; position:relative; left: -100px; letter-spacing: -1px; line-height: 60px; font-size: 60px; font-weight: 100; margin: 0px 0 50px 0; text-shadow: 0 1px 0 #fff; }
p { color: rgba(0, 0, 0, 0.5); margin: 20px 0 40px; }
ul { list-style: none; margin: 25px 0; padding: 0; }
li { display: table-cell; font-weight: bold; width: 1%; }
.divider { border-top: 1px solid #d5d5d5; border-bottom: 1px solid #fafafa;}
</style>
</head>
<body>
<script>
if (window.location.search !== '?ref=404redirect') {
var url = window.location.pathname;
var items = url.split('/');
console.log(items);
window.location = '/' + items[1] + '/' + items[2] + '-' + items[3] + '-' + items[4] + '/?ref=404redirect';
} else {
document.body.innerHTML = '<div class="container">\
<center><img src="/image/base/cugos_404.png"></center>\
<h1>404</h1>\
<p><strong>There isn\'t a CUGOS Page here.</strong></p>\
<p><a href="http://cugos.org/">Head back to cugos.org</a></p>\
</div>';
}
</script>
</body>
</html>