-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhost.html
More file actions
455 lines (453 loc) · 15.1 KB
/
host.html
File metadata and controls
455 lines (453 loc) · 15.1 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
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="keywords" content="tackle tanks, tanks, io, games, tank game" />
<meta
name="Tackle Tanks"
content="Play tackletanks.io for free! Epic tank battles, up to 100 players can join. 15 tanks to choose from with different skills and powerups! Play with your freinds!"
/>
<link rel="icon" type="image/png" href="HTML_images/Favicon.png" />
<link rel="stylesheet" href="Sources/CSS/host.css" />
<link rel="stylesheet" href="Sources/CSS/Background.css" />
<title>Tackle Tanks - Online Tank PvP</title>
</head>
<body>
<button
class="close"
type="button"
onclick="changePage('lobby.html')"
onmouseover="this.style.cursor='pointer'"
>
<img class="icon" src="HTML_images/Close.svg" alt="Settings" />
</button>
<div class="BACKGROUND">
<div class="bgrid">
<div class="bitem"></div>
<div class="bitem"></div>
<div class="bitem"></div>
<div class="bitem"></div>
<div class="bitem"></div>
<div class="bitem"></div>
<div class="bitem"></div>
<div class="bitem"></div>
<div class="bitem"></div>
</div>
<img
id="background"
class="TreeCorner1"
src="HTML_images/TreeCorner1.svg"
alt="Trees"
/>
<img
id="background"
class="TreeCorner2"
src="HTML_images/TreeCorner2.svg"
alt="Trees"
/>
<img
id="background"
class="TreeCorner3"
src="HTML_images/TreeCorner3.svg"
alt="Trees"
/>
<img
id="background"
class="TreeCorner4"
src="HTML_images/TreeCorner4.svg"
alt="Trees"
/>
</div>
<section class="host">
<div class="selector container">
<div class="container title">
<h2>HOST A GAME</h2>
<h3>
Make sure your device can handle multiple calculations and
rendering. Low-end processers may result in lag for you and your
players.
</h3>
</div>
<div class="edit grid">
<div>
<h4>MAP:</h4>
<div class="grid2">
<h5>Change of Map:</h5>
<select class="selection" id="mapvote">
<option value="mapvote">Map Vote</option>
<option value="random">Random</option>
<option value="grasslands">Grasslands Only</option>
<option value="mudlands">Mudlands Only</option>
<option value="desert">Desert Only</option>
<option value="tropical">Tropical Only</option>
<option value="shipyard">Shipyard Only</option>
<option value="nighttime">Nighttime Only</option>
</select>
</div>
<div class="grid2">
<h5>Map Size:</h5>
<select class="selection" id="mapsize">
<option value="small">Small</option>
<option value="medium">Medium</option>
<option value="large">Large</option>
</select>
</div>
<div class="grid2">
<h5>Starting Map:</h5>
<select class="selection" id="startmap">
<option value="grasslands">Grasslands</option>
<option value="mudlands">Mudlands</option>
<option value="desert">Desert</option>
<option value="tropical">Tropical</option>
<option value="shipyard">Shipyard</option>
<option value="nighttime">Nighttime</option>
</select>
</div>
</div>
<img
id="select"
class="select"
src="HTML_images/grasslands.png"
alt="Map"
/>
</div>
<div class="edit">
<div>
<h4>GAMEMODE:</h4>
<div class="grid2">
<h5>Gamemode:</h5>
<select class="selection" id="gamemode">
<option value="teamdeathmatch">Team Deathmatch</option>
<option value="capturebases">Capture the Bases</option>
<option value="miniarena">Mini Arena</option>
<option value="zombies">Zombies</option>
</select>
</div>
<div class="grid2">
<h5>Time Limit:</h5>
<input
type="number"
id="time-limit"
class="numbers"
step="1"
value="2"
min="1"
max="60"
/>
</div>
</div>
</div>
<div class="edit">
<div>
<h4>TANKS:</h4>
<div class="grid2">
<h5>Number of Players:</h5>
<input
type="number"
id="numofplayers"
class="numbers"
step="1"
value="50"
min="1"
max="100"
/>
</div>
<div class="grid2">
<h5>Number of Bots:</h5>
<input
type="number"
id="numofbots"
class="numbers"
step="1"
value="5"
min="0"
max="20"
/>
</div>
<div class="grid2">
<h5>
Select your tank:<br />(Players can select their tank. If
disabled, a random tank is assigned to them.)
</h5>
<button
class="setEdit"
id="syt"
type="button"
onmouseover="this.style.cursor='pointer'"
onclick="clicked('syt')"
>
<h4>Enabled</h4>
</button>
</div>
<div class="grid2">
<h5>
Allowed Tanks:<br /><br />(Green highlighted tanks are the tanks
allowed in-game)
</h5>
<div class="grid3x5">
<input
onchange="handleChange(this);"
type="checkbox"
id="cb0"
class="checkBox"
checked
/>
<label class="cbox" for="cb0">
<img
class="tank_images"
src="HTML_images/Tank_Icons/t1.png"
/>
</label>
<input
onchange="handleChange(this);"
type="checkbox"
id="cb1"
class="checkBox"
checked
/>
<label class="cbox" for="cb1">
<img
class="tank_images"
src="HTML_images/Tank_Icons/t2.png"
/>
</label>
<input
onchange="handleChange(this);"
type="checkbox"
id="cb2"
class="checkBox"
checked
/>
<label class="cbox" for="cb2">
<img
class="tank_images"
src="HTML_images/Tank_Icons/t3.png"
/>
</label>
<input
onchange="handleChange(this);"
type="checkbox"
id="cb3"
class="checkBox"
checked
/>
<label class="cbox" for="cb3">
<img
class="tank_images"
src="HTML_images/Tank_Icons/t4.png"
/>
</label>
<input
onchange="handleChange(this);"
type="checkbox"
id="cb4"
class="checkBox"
checked
/>
<label class="cbox" for="cb4">
<img
class="tank_images"
src="HTML_images/Tank_Icons/t5.png"
/>
</label>
<input
onchange="handleChange(this);"
type="checkbox"
id="cb5"
class="checkBox"
checked
/>
<label class="cbox" for="cb5">
<img
class="tank_images"
src="HTML_images/Tank_Icons/t6.png"
/>
</label>
<input
onchange="handleChange(this);"
type="checkbox"
id="cb6"
class="checkBox"
checked
/>
<label class="cbox" for="cb6">
<img
class="tank_images"
src="HTML_images/Tank_Icons/t7.png"
/>
</label>
<input
onchange="handleChange(this);"
type="checkbox"
id="cb7"
class="checkBox"
checked
/>
<label class="cbox" for="cb7">
<img
class="tank_images"
src="HTML_images/Tank_Icons/t8.png"
/>
</label>
<input
onchange="handleChange(this);"
type="checkbox"
id="cb8"
class="checkBox"
checked
/>
<label class="cbox" for="cb8">
<img
class="tank_images"
src="HTML_images/Tank_Icons/t9.png"
/>
</label>
<input
onchange="handleChange(this);"
type="checkbox"
id="cb9"
class="checkBox"
checked
/>
<label class="cbox" for="cb9">
<img
class="tank_images"
src="HTML_images/Tank_Icons/t10.png"
/>
</label>
<input
onchange="handleChange(this);"
type="checkbox"
id="cb10"
class="checkBox"
checked
/>
<label class="cbox" for="cb10">
<img
class="tank_images"
src="HTML_images/Tank_Icons/t11.png"
/>
</label>
<input
onchange="handleChange(this);"
type="checkbox"
id="cb11"
class="checkBox"
checked
/>
<label class="cbox" for="cb11">
<img
class="tank_images"
src="HTML_images/Tank_Icons/t12.png"
/>
</label>
<input
onchange="handleChange(this);"
type="checkbox"
id="cb12"
class="checkBox"
checked
/>
<label class="cbox" for="cb12">
<img
class="tank_images"
src="HTML_images/Tank_Icons/t13.png"
/>
</label>
<input
onchange="handleChange(this);"
type="checkbox"
id="cb13"
class="checkBox"
checked
/>
<label class="cbox" for="cb13">
<img
class="tank_images"
src="HTML_images/Tank_Icons/t14.png"
/>
</label>
<input
onchange="handleChange(this);"
type="checkbox"
id="cb14"
class="checkBox"
checked
/>
<label class="cbox" for="cb14">
<img
class="tank_images"
src="HTML_images/Tank_Icons/t15.png"
/>
</label>
</div>
</div>
<div class="grid2">
<h5>
Change Tank each Respawn: <br />(If a player is destroyed, their
tanks can change)
</h5>
<button
class="setEdit"
id="changeTanks"
type="button"
onmouseover="this.style.cursor='pointer'"
onclick="clicked('changeTanks')"
>
<h4>Enabled</h4>
</button>
</div>
</div>
<div class="edit shadow">
<h4>ADVANCED:</h4>
<div>
<h5><br />Dedicated Server:</h5>
<h6>
If enabled, this will run the game 24/7 until ended by you. You
will not be able to join the game as a player; you will need
another device. Make sure this device is suitable for running
scripts and making connections 24/7.
</h6>
<button
class="setEdit"
id="ds"
type="button"
onmouseover="this.style.cursor='pointer'"
onclick="clicked('ds')"
>
<h4>Disabled</h4>
</button>
</div>
<div>
<h5><br />Public/Private Game:</h5>
<h6>
If public is selected, anybody can join your game. If private is
selected, players will need a specific url in order to join.
</h6>
<button
class="setEdit"
id="ppg"
type="button"
onmouseover="this.style.cursor='pointer'"
onclick="clickedB('ppg')"
>
<h4>Public</h4>
</button>
</div>
</div>
<button
class="button"
onclick="changePage('play.html')"
type="button"
onmouseover="this.style.cursor='pointer'"
>
HOST GAME
</button>
</div>
</div>
</section>
</body>
<script src="Sources/JS/system.in.js" defer></script>
<script src="Sources/JS/host.js" defer></script>
</html>