-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path404.html
86 lines (82 loc) · 2.6 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto Sans Math">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto Sans">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto Emoji">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto Sans Symbols">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto Sans Symbols 2">
<style>
html {
box-sizing: border-box;
font-family: "Arial Unicode", "Note Sans Math", "Note Emoji", "Noto Sans Symbols", "Noto Sans Symbols 2", "Note Sans";
background: white; color: black
}
*, *:before, *:after {
box-sizing: inherit;
font: inherit;
}
</style>
<title>TTY</title>
</head>
<body>
<script>
(function() {
function detectLocationBase(location) {
if (!location) location = window.location;
if (/http/.test(location.protocol)) {
if (/github\.io/i.test(location.host) || location.host.toLowerCase() === 'oyin.bo') {
return {
source: 'path',
path: location.pathname.slice(0, location.pathname.indexOf('/', 1) + 1),
encoded: '/' + location.pathname.slice(location.pathname.indexOf('/', 1) + 1)
};
} else if (/\.vscode/i.test(location.host)) {
var matchIndexHtml = /\/(index|404)\.html\b/i.exec(location.pathname || '');
if (!matchIndexHtml) return {
source: 'hash',
path: location.pathname,
encoded: location.hash.replace(/^#/, '')
};
return {
source: 'hash',
path: location.pathname.slice(0, matchIndexHtml.index + 1),
encoded: location.hash.replace(/^#/, '')
};
} else {
return {
source: 'path',
path: '/',
encoded: location.pathname.replace(/^\//, '')
};
}
} else {
return {
source: 'hash',
path: location.pathname,
encoded: location.hash.replace(/^#/, '')
};
}
}
var bases = detectLocationBase(location);
if (bases.path !== location.pathname) {
document.write('<base href="' + bases.path + '">');
}
})();
</script>
<script src="main.js"></script>
<script src="lib.js"></script>
<script>
if (/file/i.test(location.protocol)) {
['main.js', 'lib.js'].map(function(src) {
var script = document.createElement('script');
script.src = src;
document.body.appendChild(script);
});
}
</script>
</body>
</html>