-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path404.html
94 lines (78 loc) · 3.03 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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; style-src 'unsafe-inline'; img-src data:; connect-src 'self'; script-src 'sha256-vTXsPyiZ6TBGJTnhL2gAcH+WTr8d6N/FEaRobXcoF7w='">
<title>Page not found · Twisted Legacy Documentation Pages</title>
<style type="text/css" media="screen">
body {
background-color: #f1f1f1;
margin: 0;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.container { 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%; }
.logo { display: inline-block; margin-top: 35px; }
.logo-img-2x { display: none; }
@media
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and ( min--moz-device-pixel-ratio: 2),
only screen and ( -o-min-device-pixel-ratio: 2/1),
only screen and ( min-device-pixel-ratio: 2),
only screen and ( min-resolution: 192dpi),
only screen and ( min-resolution: 2dppx) {
.logo-img-1x { display: none; }
.logo-img-2x { display: inline-block; }
}
#suggestions {
margin-top: 35px;
color: #ccc;
}
#suggestions a {
color: #666666;
font-weight: 200;
font-size: 14px;
margin: 0 10px;
}
</style>
</head>
<body>
<div class="container">
<h1>404</h1>
<p><strong>Legacy documentation page not found</strong></p>
<p>
A legacy documentation page don't exist for this URL.
</p>
<p>
You will be redirected to the latest Twisted documentation site.
</p>
<p>
If automatic redirection doesn't work,
<a id="js-redirection-link" href="https://docs.twistedmatrix.com/">click here</a>
to go to the latest <strong>Twisted Documentation Pages</strong>.
</p>
</div>
<script>
// JavaScript Code
function get_latest_url(url) {
var current_page = url.match(new RegExp('/documents/current/(.+)'))
var base_url = 'https://docs.twistedmatrix.com/en/stable/'
if (!current_page) {
// Fallback to default URL.
return base_url
}
return base_url + current_page[1]
}
var new_url = get_latest_url(window.location.href)
if (new_url) {
document.getElementById('js-redirection-link').setAttribute('href', new_url)
window.location = new_url
}
</script>
</body>
</html>