-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
263 lines (259 loc) · 7.63 KB
/
index.html
File metadata and controls
263 lines (259 loc) · 7.63 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
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-09RZCC4ZK4"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "G-09RZCC4ZK4");
</script>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=1200"
initial-scale="1.0,"
maximum-scale="1.0,"
user-scalable="no"
/>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-title" content="Rocket Blaster" />
<meta
name="description"
content="You have 10 seconds to fuel a rocket. See how far you can make it blast off!"
/>
<meta
property="og:title"
content="You have 10 seconds to fuel a rocket. See how far you can make it blast off!"
/>
<meta
property="og:url"
content="https://www.codeeverydamnday.com/projects/rocketblaster/index.html"
/>
<meta
property="og:description"
content="You have 10 seconds to fuel a rocket. See how far you can make it blast off!"
/>
<meta property="og:image" content="images/rocketblastercta.png" />
<meta property="og:type" content="website" />
<link rel="icon" href="images/rocketfire.svg" />
<link
rel="apple-touch-icon"
href="../../images/rckt-blstr-media-preview.png"
/>
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link href="style.css" type="text/css" rel="stylesheet" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Nanum+Gothic+Coding:wght@400;700&display=swap"
rel="stylesheet"
/>
<script src="script.js" defer></script>
<title>Rocket Blaster | Code Every Damn Day</title>
</head>
<body id="bodytag">
<div id="overlay" draggable="false">
<div id="overlaytext">
<h1>Rocket Blaster</h1>
<p style="font-size: 16px">
You have
<span
style="
font-weight: bold;
font-size: 20px;
background: #f5e63a;
padding: 0px 5px;
"
>10 SECONDS</span
>
to pump as much fuel into the rocket as you can. See how far you can
make it blast off!
</p>
<br />
<p style="font-size: 16px">
Click the "PUMP" toggle repeatedly to fuel the rocket.
</p>
<p> </p>
<div
id="readytoplaybutton"
style="text-align: center"
style="z-index: 100"
>
<button id="readytoplay" onclick="readyToPlay();">Ready?</button>
<p> </p>
<p>
← Back to
<a href="/index.html">CodeEveryDamnDay.com</a>
</p>
<p> </p>
<div style="text-align: center">
<img
style="width: 40%"
src="../../images/hand-coded-with-love-one-line.png"
alt="Hand-Coded with Love by Planet Katie"
/>
</div>
</div>
</div>
</div>
<!-- End of Instructions Overlay-->
<div id="overlaystartgame" style="display: none" draggable="false"></div>
<!-- <button id="startgame">Start Game</button> -->
<table
style="
display: inline-block;
position: absolute;
left: 350px;
margin-top: 60px;
"
>
<tr>
<td
style="
display: inline-block;
width: 380px;
text-align: center;
padding: 5px 10px 0px 10px;
"
id="gametimerafter"
></td>
</tr>
</table>
<table
style="
display: inline-block;
position: absolute;
position: absolute;
left: 550px;
top: 200px;
transform: translate(-50%, -50%);
z-index: 100;
"
>
<tr>
<td
style="
display: inline-block;
width: 380px;
text-align: center;
padding: 10px 10px 0px 10px;
"
id="gametimerbefore"
>
<button class="displaychange" id="startgame" onclick="startTimer();">
Start Game
</button>
</td>
</tr>
</table>
<div
class="displaychange"
id="overlayend"
style="display: none"
draggable="false"
>
<div id="overlayendtext">
<p
style="
font-size: 36px;
font-weight: bold;
padding: 10px 20px;
width: 250px;
color: white;
background-color: rgb(51, 0, 62);
border-radius: 15px;
"
>
TIME'S UP
</p>
<p> </p>
<p id="finalscore" style="font-size: 40px; font-weight: bold"></p>
<p> </p>
<p>
<button id="newgame" onclick="blastOff();">
Watch it blast off!
</button>
</p>
</div>
<!-- ends overlayendtext-->
</div>
<!-- ends overlayend div-->
<div id="playagain" style="display: none" draggable="false">
<div id="playagaintext">
<p id="level"></p>
<br />
<p>
<button id="playagainbutton" onclick="window.location.reload();">
Play Again?
</button>
</p>
<br />
<p>
← Back to
<a href="/index.html">CodeEveryDamnDay.com</a>
</p>
</div>
<!-- ends overlayendtext-->
</div>
<div id="destinationmessage"></div>
<div id="art">
<img id="nowhere" src="images/tonowhere.svg" />
<img id="moon" src="images/tomoon.svg" />
<img id="mars" src="images/tomars.svg" />
<img id="saturn" src="images/tosaturn.svg" />
<img id="neptune" src="images/toneptune.svg" />
<img id="aliens" src="images/toaliens.svg" />
<img id="rocketfire" src="images/rocketfireright.png" />
<img id="rocketdud" src="images/rocketfire.png" />
<img
draggable="false"
src="images/rocketscene5.svg"
style="position: absolute; left: -30px; top: 10px; z-index: 5"
id="rocketscene"
class="displaychange"
alt="Cartoon scene showing a stick figure pumping rocket fuel from a fuel tank to a rocket"
/>
<div class="displaychange" id="pumpline"></div>
<div class="displaychange" id="arrow1"></div>
<div class="displaychange" id="arrow2"></div>
<div class="displaychange" id="arrow3"></div>
<table>
<tr>
<td class="displaychange" id="clickrepeatedly">
Click<br />Repeatedly!
</td>
</tr>
</table>
<table id="fuellevelcontainer">
<tr>
<td style="vertical-align: bottom; text-align: center">
<div class="displaychange" id="fuellevel"></div>
</td>
</tr>
</table>
<div id="pump">
<img
draggable="false"
src="images/playerpumpup2.svg"
style="position: absolute; left: 450px; top: 140px; z-index: 10"
id="pumpposition"
class="displaychange"
alt="Stick figure pumping what looks like a bike pump"
/>
</div>
<div class="displaychange" id="pumpswitch">
<label class="switch">
<input type="checkbox" id="pumptoggle" onclick="switchitUp()" />
<span class="slider round"></span>
</label>
</div>
</div>
</body>
</html>