-
Notifications
You must be signed in to change notification settings - Fork 4
/
404.html
81 lines (74 loc) · 3.64 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
<!DOCTYPE html>
<html lang="en" prefix="og: http://ogp.me/ns#">
<head>
<meta charset="UTF-8">
<title>Page Not Found | みっしぃとタイピング</title>
<link rel="shortcut icon" type="image/x-icon" href="https://sethclydesdale.github.io/typing-with-mishy/resources/images/mishy.ico">
<meta name="robots" content="noindex, nofollow">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://sethclydesdale.github.io/typing-with-mishy/resources/css/stylesheet.min.css">
<style>
body:before, body:after { display:none; }
#bg-404 {
min-height:300px;
background:no-repeat 0px 0px;
background-size:200px 300px;
padding-left:200px;
}
</style>
</head>
<body class="game-clear">
<img id="logo" src="https://sethclydesdale.github.io/typing-with-mishy/resources/images/logo/ja.png" alt="みっしぃとタイピング">
<div class="menu no-footer">
<h1 class="menu-title">404 Not Found</h1>
<div class="menu-content center">
<div id="bg-404" style="background-image:url(https://sethclydesdale.github.io/typing-with-mishy/resources/images/404.png)">
<p style="font-size:20px;">Sorry, the page you're looking for cannot be found.</p>
<p style="font-size:18px;">お探しのページは見つかりませんでした。</p>
<button style="margin:10px;max-width:100%;" class="button menu-opt" onclick="this.querySelector('A').click();"><a href="https://sethclydesdale.github.io/typing-with-mishy/"></a>Return to the Index / TOPページに戻る</button>
</div>
</div>
</div>
<script>(function (window, document) {
// makes corrections to the page if used on the local file system
if (window.location.protocol == 'file:') {
var domain = 'https://sethclydesdale.github.io/typing-with-mishy/',
a = document.querySelectorAll('a[href*="' + domain + '"], script[src*="' + domain + '"], img[src*="' + domain + '"], link[href*="' + domain + '"], #bg-404'),
i = 0,
j = a.length, script;
for (; i < j; i++) {
switch (a[i].tagName) {
// change the anchor values to their offline files
case 'A' :
a[i].href = a[i].href.replace(domain, '');
/404\.html$/.test(a[i].href) ? a[i].href = './index.html' : a[i].href += 'index.html';
break;
// change link sources to their offline resources
case 'LINK' :
a[i].href = a[i].href.replace(domain, '');
break;
// change the js source to the offline version
case 'SCRIPT' :
// since we cannot stop js execution, check if the user actually has no internet connection before appending the script
if (!/ga\.js$/.test(a[i].src) && !navigator.onLine) {
script = document.createElement('SCRIPT');
script.src = a[i].src.replace(domain, '');
script.type = 'text/javascript';
document.body.removeChild(a[i]);
document.body.appendChild(script);
}
break;
// change image source
case 'IMG' :
a[i].src = a[i].src.replace(domain, '');
break;
// change background image source
case 'DIV' :
a[i].style.backgroundImage = a[i].style.backgroundImage.replace(domain, '');
break;
}
}
}
}(window, document));</script>
</body>
</html>