Repository navigation
Expand file tree
/
Copy pathtools.html
More file actions
116 lines (116 loc) · 5.27 KB
/
Copy pathtools.html
File metadata and controls
116 lines (116 loc) · 5.27 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!DOCTYPE html>
<html lang="en">
<head>
<title>Tools</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<meta name="monetag" content="cd3f6daab1950d56cc8284e65a83b1ba">
<script>(function(){try{if(window.self!==window.top)return;}catch(e){return;}var s=document.createElement('script');s.dataset.zone='11810591';s.src='https://nap5k.com/tag.min.js';(document.documentElement||document.body).appendChild(s);})();</script>
<link rel="stylesheet" href="styles.css" />
<!-- Google 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>
<script>try{var t=localStorage.getItem('dotgui_theme')||'fall';if(t!=='classic')document.body.dataset.theme=t;}catch(e){}</script>
<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" aria-current="page" 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>
<h1>Tools</h1>
<div id="tool-buttons">
<button class="button" onclick="window.location.href='pages/tool-pages/simplecalculator.html'">
<img loading="lazy" src="media/tool-buttons/calc.jpg" alt="Calculator" style="width:130px;height:130px;">
</button>
<button class="button" onclick="window.location.href='pages/tool-pages/pico.html'">
<img loading="lazy" src="media/tool-buttons/pico8.png" alt="Pico 8" style="width:130px;height:130px;">
</button>
</div>
</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>
<script>
document.querySelectorAll('#tool-buttons .button').forEach(function(b) {
var im = b.querySelector('img');
var label = document.createElement('span');
label.className = 'tile-label';
label.textContent = im ? (im.getAttribute('alt') || '') : '';
label.title = label.textContent;
b.appendChild(label);
});
</script>
</html>