-
Notifications
You must be signed in to change notification settings - Fork 4
/
404.html
100 lines (87 loc) · 2.48 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
---
permalink: 404.html
---
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<style type="text/css" media="screen">
body {
margin: 0;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
#content { margin: 50px auto 40px auto; width: 600px; text-align: center; display: none; }
#loading { margin: 50px auto 40px auto; width: 600px; text-align: center; }
a { color: #4183c4; text-decoration: none; }
a:hover { text-decoration: underline; }
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; line-height: 1.6; }
ul { list-style: none; margin: 25px 0; padding: 0; }
li { display: table-cell; font-weight: bold; width: 1%; }
#suggestions {
margin-top: 35px;
color: #ccc;
}
#suggestions a {
color: #666666;
font-weight: 200;
font-size: 14px;
margin: 0 10px;
}
</style>
</head>
<body>
<div id="content">
<h1>404</h1>
<p><strong>File not found</strong></p>
<p>
The site does not contain the requested file.
</p>
<div id="suggestions">
<a href="/">Front Page</a> —
<a href="/documentation">Documentation</a>
<a href="https://github.com/nzbget/nzbget">GitHub Project</a> —
</div>
</div>
<div id="loading">
<h1> </h1>
<p>Loading...</p>
</div>
</body>
<script language="javascript">
"use strict";
var url = window.location.href;
var re = /^https?:\/\/[a-z0-9\.\-:]*\/(.*)$/;
var m = re.exec(url);
var path = m ? m[1] : null;
var newPath;
if (path && path.indexOf('forum') === 0)
{
// redirect to new forum subdomain
newPath = 'http://forum.nzbget.net/' + path.substr(6);
}
else if (path && path.indexOf('_') > -1)
{
// replace underscores with hyphens
newPath = path.replace(/_/g, '-').toLowerCase();
}
else if (path && path.toLowerCase() !== path)
{
// convert to lower case
newPath = path.toLowerCase();
}
if (newPath)
{
// redirect to new address
window.location.href = newPath;
}
else
{
// show 404 page content
document.body.style.background = '#f1f1f1';
document.getElementById('loading').style.display = 'none';
document.getElementById('content').style.display = 'block';
document.title = 'Page not found :: NZBGet';
}
</script>
</html>