-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
59 lines (54 loc) · 1.62 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Spar Star</title>
<link
rel="icon"
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🪱⚔️</text></svg>"
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Balsamiq+Sans&display=swap" rel="stylesheet" />
<style>
body {
overflow: hidden;
background: #232323;
margin: 0;
font-family: "Balsamiq Sans";
}
canvas {
position: absolute;
width: 100%;
height: 100%;
}
#message {
color: green;
position: absolute;
margin-top: 50vh;
margin-left: 50vw;
transform: translate(-50%, -50%);
white-space: nowrap;
opacity: 1;
font-size: 0px;
will-change: font-size, opacity;
}
#message.shown {
opacity: 0;
font-size: 600px;
transition: font-size 2s ease-in, opacity 2s ease-out;
}
</style>
<link rel="stylesheet" href="https://use.typekit.net/kjp5sfv.css" />
</head>
<body onkeydown="keySet(event.which, true)" onkeyup="keySet(event.which, false)">
<canvas id="main-canvas"></canvas>
<canvas id="score-canvas"></canvas>
<canvas id="msg-canvas"></canvas>
<!-- force chrome to load the font before running javascript -->
<div id="message">yeah!</div>
<script src="logic.js"></script>
<!-- GoatCounter analytics -->
<script data-goatcounter="https://gabe-mitnick.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>
</body>
</html>