-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path404.html
35 lines (32 loc) · 1.09 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
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.9.0/css/bulma.min.css">
</head>
<body>
<h1>404 - Not found</h1>
<p>Redirecting to Google search...</p>
<script>
window.onload = function() {
thisUrl = new URL(window.location);
newUrl = new
URL(
'https://www.google.com/search?q=' +
'site%3Adocs.python.org%2F2+OR+' +
'site%3Areadthedocs.io+OR+' +
'site%3Afontlabcom.github.io%2Ffontlab-python-docs%2F+OR+' +
'site%3Ahelp.fontlab.com%2Ffontlab%2F7%2F+' +
thisUrl.pathname
.replace(/^.*\//i, '')
.split('/').join('+').split('-').join('+')
.replace('.html', '') +
'+' +
thisUrl.search
.split('&').join('+').split('=').join('+')
.split('?').join('+') +
'+' + thisUrl.hash.split('#').join('+')
);
window.location = newUrl.toString();
}
</script>
</body>
</html>