-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
43 lines (43 loc) · 1.32 KB
/
index.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, height=device-height, initial-scale=0.5, maximum-scale=1.0, user-scalable=0"
/>
<link rel="stylesheet" type="text/css" href="index.css" />
<link
rel="icon"
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 10 10%22><text y=%228%22 font-size=%228%22>🧙</text></svg>"
/>
<title>Emoji Quest</title>
</head>
<body>
<noscript>
<h1>🧙♂️💻</h1>
<p>
Confoundèd contraption! What in the names of all the venerable emojis is
<em>JavaScript‽</em>
</p>
</noscript>
<script>
(() => {
const debugElement = document.createElement('div');
debugElement.className = 'debug';
debugElement.style.display = 'none';
document.body.appendChild(debugElement);
let lead = '';
window.debug = (...text) => {
debugElement.innerText += lead + text.join(' ');
debugElement.scrollTop = debugElement.scrollHeight;
if (lead === '') {
debugElement.style.display = 'block';
lead = '\n';
}
};
})();
</script>
<script type="module" src="./index.js"></script>
</body>
</html>