-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
37 lines (33 loc) · 1.11 KB
/
404.html
File metadata and controls
37 lines (33 loc) · 1.11 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Not Found Redirect for GitHub Pages</title>
<script type="text/javascript">
function simpleRedirectTo(keyword) {
if (window.location.pathname.includes(keyword)) {
window.location.replace(`https://veltiosoft.dev/${keyword}/`);
return true;
}
return false;
}
function sinkRedirectTo() {
var pathname = window.location.pathname
if (pathname.includes('sink')) {
var where = pathname.includes('logs') ? 'logs'
: pathname.includes('settings') ? 'settings'
: pathname.includes('policy') ? 'policy'
: 'tracker';
window.location.replace(`https://veltiosoft.dev/sink/#/${where}`);
return true;
}
return false;
}
sinkRedirectTo()
|| simpleRedirectTo('helloworld')
|| window.location.replace('https://twitter.com/veltiosoft');
</script>
</head>
<body>
</body>
</html>