-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
25 lines (25 loc) · 795 Bytes
/
404.html
File metadata and controls
25 lines (25 loc) · 795 Bytes
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Redirecting...</title>
<script type="text/javascript">
(function() {
var l = window.location;
var segmentCount = 0;
if (l.hostname.endsWith('github.io')) {
segmentCount = 1;
}
var pathSegments = l.pathname.split('/').slice(0, 1 + segmentCount).join('/');
l.replace(
l.protocol + '//' + l.hostname + (l.port ? ':' + l.port : '') +
pathSegments + '/?/' +
l.pathname.slice(1).split('/').slice(segmentCount).join('/') +
l.search.replace(/&/g, '~and~') + l.hash
);
})();
</script>
</head>
<body></body>
</html>