Repository navigation
Expand file tree
/
Copy path404.html
More file actions
99 lines (99 loc) · 4.41 KB
/
Copy path404.html
File metadata and controls
99 lines (99 loc) · 4.41 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
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
87
88
89
90
91
92
93
94
95
96
97
98
99
<!DOCTYPE html>
<html lang="en">
<head>
<title>404</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="stylesheet" href="styles.css" />
<!-- Google analytics tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-Q919W0VJ1S"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-Q919W0VJ1S');
</script>
</head>
<body>
<nav>
<button type="button" class="nav-btn nav-home-btn" onclick="location.href='start.html'">
<img src="favicon.ico" width="40px" height="40px" alt="Home">
</button>
<button type="button" class="nav-btn" onclick="window.location.href='select.html'">
<img src="media/nav-buttons/game.svg" width="40px" height="40px">
</button>
<button type="button" class="nav-btn" onclick="location.href='search.html'">
<img src="media/nav-buttons/search.svg" width="40px" height="40px">
</button>
<button type="button" class="nav-btn" onclick="location.href='tools.html'">
<img src="media/nav-buttons/tools.svg" width="40px" height="40px">
</button>
<button type="button" class="nav-btn" onclick="location.href='settings.html'">
<img src="media/nav-buttons/settings.svg" width="40px" height="40px">
</button>
<button type="button" class="nav-btn" onclick="location.href='disclaimer.html'">
<img src="media/nav-buttons/disclaimer.svg" width="40px" height="40px">
</button>
</nav>
<div id="games">
<main>
<img src="media/error.webp" width="200" height="200" style="display:block;margin:0 auto;">
<h1>OH NOES!</h1>
<h3>You've entered a page that is broken or non-existent!</h3>
<h3>If you got here from a game, tool, or anything that is supposed to work, press <a href="https://github.com/DotLYHiyou/DotGUI/issues">here</a> to report the problem on the Github repository.</h3>
<button type="button" onclick="location.href='start.html'">Return to Home</button>
</main>
</div>
<script>
// dotgui-panic: global panic key, guards typing
document.addEventListener('keydown', function(e) {
var t = e.target;
if (t && (t.tagName === 'INPUT' || t.tagName === 'TEXTAREA' || t.tagName === 'SELECT' || t.isContentEditable)) return;
var key = '';
try { key = localStorage.getItem('dotgui_panic_key') || 'k'; } catch (err) { key = 'k'; }
if ((e.key || '').toLowerCase() !== (key || '').toLowerCase() || !key) return;
try {
document.title = 'Google';
var f = document.querySelector("link[rel~='icon']");
if (f) f.href = 'https://www.google.com/favicon.ico';
} catch (err) {}
var go = true, url = 'https://classroom.google.com';
try {
go = (localStorage.getItem('dotgui_panic_redirect') || 'true') === 'true';
url = localStorage.getItem('dotgui_panic_url') || url;
} catch (err) {}
if (go && url) window.location.href = url;
});
</script>
</body>
<script>
// Tab cloaker script for all pages except search
(function() {
const value = localStorage.getItem('tabCloaker') || 'default';
const favicon = document.querySelector("link[rel~='icon']") || (() => {
const link = document.createElement('link');
link.rel = 'icon';
document.head.appendChild(link);
return link;
})();
if (value === 'google') {
document.title = 'Google';
favicon.href = 'https://www.google.com/favicon.ico';
} else if (value === 'vocab') {
document.title = 'My Learning | Vocabulary.com';
favicon.href = 'https://www.vocabulary.com/favicon.ico';
} else if (value === 'canvas') {
document.title = 'Canvas';
favicon.href = 'https://canvas.instructure.com/favicon.ico';
} else if (value === 'drive') {
document.title = 'Google Drive';
favicon.href = 'https://drive.google.com/favicon.ico';
} else if (value === 'docs') {
document.title = 'Google Docs';
favicon.href = 'https://docs.google.com/favicon.ico';
} else {
favicon.href = 'favicon.ico';
}
})();
</script>
</html>