-
Notifications
You must be signed in to change notification settings - Fork 21
/
index.html
150 lines (147 loc) · 5.54 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
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<!DOCTYPE html>
<html lang="en">
<head>
<title>Lander</title>
<meta property="og:title" content="Lander" />
<meta property="og:url" content="https://ehmorris.com/lander/" />
<meta name="description"
content="Can you successfully pilot the lander to the surface? Play instantly from your phone or computer." />
<meta property="og:description" content="Can you successfully pilot the lander to the surface?" />
<meta property="og:image" content="https://ehmorris.com/lander/images/oembed.png" />
<meta property="og:image:width" content="700" />
<meta property="og:image:height" content="700" />
<link rel="icon" type="image/png" href="./images/favicon-16x16.png" sizes="16x16" />
<link rel="icon" type="image/png" href="./images/favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="./images/favicon-180x180.png" sizes="180x180" />
<link rel="icon" type="image/png" href="./images/favicon-270x270.png" sizes="270x270" />
<link rel="apple-touch-icon" href="./images/favicon-270x270.png" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<link rel="stylesheet" type="text/css" href="./style.css" />
</head>
<body>
<div class="game"></div>
<div id="endGameStats" class="fullSizeContainer">
<h1 id="description"></h1>
<div class="scoreContainer">
<span id="score"></span> point <span id="type"></span>
</div>
<div class="meterAndLabel">
<div class="label">Speed</div>
<div class="meter" data-stat-name="speed">
<div class="cursor" data-percent-position="">
<span data-value=""></span><span class="unit"> MPH</span>
</div>
</div>
</div>
<div class="meterAndLabel">
<div class="label">Angle</div>
<div class="meter" data-stat-name="angle">
<div class="cursor" data-percent-position="">
<span data-value=""></span> <span class="unit">°</span>
</div>
</div>
</div>
<div class="statsTable">
<div class="tableRow">
<span class="tableLabel">Time</span>
<span class="tableValue"><span id="duration"></span> seconds</span>
</div>
<div class="tableRow">
<span class="tableLabel">Flips</span>
<span class="tableValue" id="rotations"></span>
</div>
<div class="tableRow">
<span class="tableLabel">Max Speed</span>
<span class="tableValue"><span id="maxSpeed"></span> MPH</span>
</div>
<div class="tableRow">
<span class="tableLabel">Max Height</span>
<span class="tableValue"><span id="maxHeight"></span> FT</span>
</div>
</div>
<div class="buttonContainer">
<div class="button loading" id="tryAgain">
<span id="tryAgainText">Play Again</span>
<svg class="buttonAnimatedBorder">
<rect width="100%" height="100%"></rect>
</svg>
</div>
<div class="button" id="share">
<span>Share</span>
<svg class="buttonBorder">
<rect width="100%" height="100%"></rect>
</svg>
</div>
<div class="button" id="copyText">
<span>Copy Stats</span>
<svg class="buttonBorder">
<rect width="100%" height="100%"></rect>
</svg>
</div>
</div>
</div>
<div id="instructions" class="fullSizeContainer instructions">
<div>
<h1>How to play</h1>
<p> Land on a white landing pad. Pointy end goes up. Try doing a flip. </p>
</div>
<div class="instructionsControls">
<h2>Test the controls</h2>
<div id="forKeyboard">
<ul>
<li id="engineCheck"><input type="checkbox" /> Up arrow (the main engine)</li>
<li id="rightRotationCheck"><input type="checkbox" />Left arrow</li>
<li id="leftRotationCheck"><input type="checkbox" />Right arrow</li>
<li id="engineAndRotationCheck"><input type="checkbox" /> Hold the up arrow while pressing the left or right
arrows</li>
</ul>
</div>
<div id="forTouch">
<ul>
<li id="engineCheck"><input type="checkbox" /> Tap the center of the screen</li>
<li id="rightRotationCheck"><input type="checkbox" /> Tap the left side</li>
<li id="leftRotationCheck"><input type="checkbox" /> Tap the right side</li>
<li id="engineAndRotationCheck"><input type="checkbox" /> Hold down on the center while you tap the sides</li>
</ul>
</div>
</div>
</div>
<div id="cornerChallenge" class="topLeftCorner show"> Daily Challenge <span id="cornerChallengeNumber"></span>
</div>
<div id="tally" class="topRightCorner"> L<span id="landingTotal"></span> C<span id="crashTotal"></span>
</div>
<script src="index.js" type="module"></script>
<script>
(function (h, o, u, n, d) {
h = h[d] = h[d] || {
q: [],
onReady: function (c) {
h.q.push(c);
},
};
d = o.createElement(u);
d.async = 1;
d.src = n;
n = o.getElementsByTagName(u)[0];
n.parentNode.insertBefore(d, n);
})(
window,
document,
"script",
"https://www.datadoghq-browser-agent.com/datadog-rum-v4.js",
"DD_RUM"
);
DD_RUM.onReady(function () {
DD_RUM.init({
clientToken: "pub29b4ec61338ff64383116ae4bf1b2e48",
applicationId: "4c09e9e3-7012-4576-bbeb-9a81a5c7b9e7",
site: "datadoghq.com",
sessionSampleRate: 100,
trackUserInteractions: true,
});
});
</script>
</body>
</html>