forked from ChromeGaming/Spaceship-escort
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
901 lines (808 loc) · 27 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
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
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
<!DOCTYPE html>
<html lang="en" class="notranslate" translate="no">
<head>
<meta charset="utf-8"/>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=UTF-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="theme-color" content="#000000" />
<meta name="google" content="notranslate" />
<link rel="stylesheet" href="style.css">
<script src="script.js"></script>
</head>
<body style="font-family: 'Arial'; font-size:12px; width:100%; height:100%; overflow:visible; padding:0px; margin:0px; background-color:black;">
<div id="mainMenu" style="position:absolute; top:0px; width:100%; height:auto; overflow:visible; z-index:100;">
<div id="Gametitle" class="knockout" style="display:block;">
SpaceShip Escort
</div>
<div style="clear:both; height:20px;"></div>
<div id="botonPlayInfo" style="text-shadow: 0 0 10px #27cfcc, 0 0 30px #27cfcc; display:block; width:90%; max-width:61.50vh; left:5%; font-weight:300; font-size:13px; margin:0 auto; padding:5px; color:#19cfcb; height:auto; background-color:none;">
Year 13 after climate change.<br>
The Earth is uninhabitable.<br><br>
The last space freighter, with 13 million fertilized and cryogenized human ovules, leaves the earth, with 500 tons of Scriptium (Scm),
towards robotic bases built over decades, in anticipation of the climatic catastrophe, on inhabitable planets in the star system SAO215398
in the Phoenix supercluster of galaxies located 5700 Mly away.<br><br>
Scriptium (Scm) is a new synthetic fuel that is necessary for intergalactic travel and also for building defense elements,
and can be extracted from the wreckage of destroyed enemy spacecraft.<br><br>
Once all the Scriptium is over, the space freighter will run out of fuel and the mission will have failed.<br><br>
Your mission, as the commander of the last starfleet, is to escort and defend the space freighter at all costs so that it reaches the bases and human race does not become extinct.<br><br>
It will not be an easy task since other civilizations have conflicting interests.<br>
</div>
<div id="botonPlay" style="text-align:center; width:100%; margin-top:30px;">
<div id="bpTxt" class="blink_me" onclick="play();" style="display:inline-block; text-align:center; padding:6px 20px 6px 20px; font-size:20px; color:#d3fc6f; font-weight:500; box-shadow: 0px 0px 10px 5px #86a145; border-radius:10px; border:3px solid #d3fc6f; background-color:rgba(0,0,0,0.5);">
Start mission
</div>
</div>
</div>
<div id="mainDIV" style="position:relative; margin:0 auto; width:100%; height:100%; overflow:hidden;">
<div id="gameStartMSG" style="position:absolute; width:100%; pointer-events:none; transition: 5s opacity; display:none; top:150px; left:0px; font-size:18px; z-index:100;">
<div style="pointer-events:none; margin:0 auto; width:80%; max-width:61.50vh; font-weight:500; color:#c9af00; ">
✨ Escort the cargo spaceship.
<br><br>
✨ Select battle starships and place them strategically.
<br><br>
✨ Do not spend more Scriptium than neccesary.
</div>
</div>
<div style="position:relative; margin:0 auto; width:61.50vh; height:calc(100% - 140px); max-height:140vw; max-width:100vw; overflow:visible;">
<div id="gameMSG" style="position:absolute; top:150px; left:5%; width:84%; text-align:center; pointer-events:none; opacity:0; transition: 2s opacity; color:orange; border-radius:20px; font-size:12px; padding:3%; background-color:rgba(25,25,25,0.7); z-index:1000;">
</div>
<div id="config" style="position:absolute; display:none; top:150px; left:5%; width:84%; text-align:center; color:silver; border-radius:20px; font-size:12px; padding:3%; background-color:rgba(25,25,25,0.9); z-index:1000;">
<br><br>
Set game volume
<br>
<input id="vol" type="range" min="0" max="1" step="0.01" value="0.5" oninput="zzfxV=this.value;" onchange="zzfxV=this.value;">
<br><br><br><br>
<div onclick="localStorage.setItem('SpaceEscort13kbGame2', 1+' '+help);location.reload();"
style="display:inline-block; color:orange; padding:15px; width:150px; text-align:center; border-radius:10px; background-color:rgba(255,255,255,0.2);">
Reset game to wave 1
</div>
<br><br><br><br>
<div onclick="document.getElementById('config').style.display='none';"
style="display:inline-block; color:lime; padding:15px; width:50px; text-align:center; border-radius:10px; background-color:black">
OK
</div>
<br><br>
</div>
<div id="helpD" style="position:absolute; display:none; bottom:100px; width:100%; text-align:center; color:yellow; font-size:14px; z-index:1000;">
<div class="a1" style="left:2%;">
select one of the starship
<div class="a2" style="bottom:-130px; left:10%; font-size:150px;">
↳
</div>
</div>
<div class="a1" style="left:35%;">
this is your Scriptium<br>(money, life, ...)
<div class="a2" style="bottom:-40px; left:10%; font-size:60px;">
⇩
</div>
</div>
<div class="a1" style="left:68%;">
<br><br>
Then tap on the screen to place
<div class="a2" style="top:-100px; left:15%; font-size:120px;">
⇈
</div>
</div>
<div onclick="document.getElementById('helpD').style.display='none';"
style="position:absolute; left:35%; top:-80px; color:lime; padding:15px; width:100px; text-align:center; border-radius:10px; background-color:#333">
Ok, close help
</div>
<br><br>
</div>
<DIV id="canvasDIV" style="position:relative; height:100%; overflow:hidden; background-color:black;">
<canvas id="mycanvas"
onclick="ponerNave(((event.layerX))/CanvasSize , ((event.layerY))/CanvasSize, 0);"
onmousedown="mou=1;"
onmouseup="mou=0;">
</canvas>
</DIV>
<div id="shipMenuDIV" style="position:relative; display:none; width:100%; height:130px; min-height:100px; border-radius:20px 20px 0px 0px; background:linear-gradient(90deg, rgba(20,20,20,1) 0%, rgba(60,60,60,1) 50%, rgba(20,20,20,1) 100%);">
<div id="shipMenuDIVBlink" class="blink_me2" style="position:absolute; display:none; width:100%; height:100%; border-radius:20px 20px 0px 0px; background:linear-gradient(90deg, rgba(20,20,20,1) 0%, #ba2222 50%, rgba(20,20,20,1) 100%);">
</div>
<div style="position:absolute; top:16px; left:7%; width:20%; height:5px; color:gray; text-align:center; box-shadow: 0px 0px 5px 3px #044; font-weight:200; font-size:11px; border-radius:10px 0px 10px 0px; background-color:black;">
<div style="position:absolute; top:-15px; left:0px; width:100%; ">
alert status
</div>
<div id="alertSt" style="position:absolute; top:1px; left:0px; width:1%; max-width:100%; height:4px; border-radius:10px 0px 10px 0px; background-color:red;">
</div>
</div>
<div id="helpb" class="" onclick="document.getElementById('helpD').style.display='block'; this.classList.remove('blink_me2'); this.style.boxShadow='0px 0px 5px 3px #044'; if(!help) localStorage.setItem('SpaceEscort13kbGame2', wave+' '+1);" style="position:absolute; top:5px; right:3%; color:silver; padding:0px 5px 0px 5px; text-align:center; box-shadow: 0px 0px 5px 3px #bf0; font-weight:900; font-size:12px; border-radius:50px; background-color:black;">
?
</div>
<div onclick="if(game_running){game_running=false;this.style.backgroundColor='orange';}else{game_running=true;this.style.backgroundColor='black';}" style="position:absolute; top:5px; right:10%; color:silver; padding:3px 5px 4px 3px; text-align:center; box-shadow: 0px 0px 5px 3px #044; font-weight:900; font-size:7px; border-radius:50px; background-color:black;">
▐▐
</div>
<div onclick="document.getElementById('config').style.display='block';" style="position:absolute; top:5px; right:18%; color:silver; padding:0px 4px 1px 3px; text-align:center; box-shadow: 0px 0px 5px 3px #044; font-weight:900; font-size:13px; border-radius:50px; background-color:black;">
⚙
</div>
<div style="position:relative; margin:0 auto; width:35%; text-align:center; font-weight:500; font-size:12px; border-radius:0px 0px 10px 10px; padding:3px 10px 4px 10px; height:17px; max-height:17px; color:#00b0b0; background-color:rgba(0,0,0,.5);">
<span id="pasta" style="font-size:14px; color:cyan; height:16px; max-height:16px; transition:font-size .5s ease, color .2s ease;">500</span> Scm (tons)
</div>
<div style="position:relative; clear:both; margin-top:7px; text-align:center; width:100%; height:auto; color:cyan; background-color:none;">
<div class="menuDivs">
<div class="menuShips" style="background-position:0% -3%;" onclick="AAtype=2; AAsubtipo=1; selectShipmenu(this);">
<div class="nam">garbage<br>meteor</div>
</div>
<br>5<br>
</div>
<div class="menuDivs">
<div id="dflt" class="menuShips" style="background-position:14.2% 3%;border:2px solid #d3fc6f; box-shadow:0px 0px 10px 2px #d3fc6f;" onclick="AAtype=2; AAsubtipo=2; selectShipmenu(this);" >
<div class="nam">Light<br>figther</div>
</div>
<br>10
</div>
<div class="menuDivs">
<div class="menuShips" style="background-position:28.5% 2%;" onclick="AAtype=2; AAsubtipo=3; selectShipmenu(this);">
<div class="nam">trident<br>figther</div>
</div>
<br>20
</div>
<div class="menuDivs">
<div class="menuShips" style="background-position:42.8% -5%;" onclick="AAtype=2; AAsubtipo=4; selectShipmenu(this);">
<div class="nam">spread<br>figther</div>
</div>
<br>30
</div>
<div class="menuDivs">
<div class="menuShips" style="background-position:56.9% -5%;" onclick="AAtype=2; AAsubtipo=5; selectShipmenu(this);">
<div class="nam">ionic<br>cannon</div>
</div>
<br>40
</div>
<div class="menuDivs">
<div class="menuShips" style="background-position:71.3% -2%;" onclick="AAtype=2; AAsubtipo=6; selectShipmenu(this);">
<div class="nam">hammer<br>ironclad</div>
</div>
<br>50
</div>
<div class="menuDivs">
<div class="menuShips" style="background-position:85.6% -5%;" onclick="AAtype=2; AAsubtipo=7; selectShipmenu(this);">
<div class="nam">neutrino<br>mine</div>
</div>
<br>60
</div>
</div>
</div>
</div>
</div>
</body>
<head>
<meta charset="utf-8" />
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<meta
name="viewport"
content="width=device-width, minimum-scale=1.0, maximum-scale=1.0"
/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="theme-color" content="#000000" />
<meta name="google" content="notranslate" />
<link rel="stylesheet" href="style.css" />
</head>
=======
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/png" href="img/favicon-32x32.png">
<title>SpaceShip Escort</title>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<meta
name="viewport"
content="width=device-width, minimum-scale=1.0, maximum-scale=1.0"
/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="theme-color" content="#000000" />
<meta name="google" content="notranslate" />
<link rel="stylesheet" href="style.css" />
<!-- Preloader Style-->
<style>
.preloader{
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: black;
transition: opacity 5s, visibility 5s;
z-index: 1000;
}
.preloader--hidden{
opacity: 0;
visibility: hidden;
}
.preloader img{
height: 200px;
width: 200px;
border-radius: 1000px;
}
</style>
</head>
<body
onload="let pause = document.getElementById('pause');"
style="
font-family: 'Arial';
font-size: 12px;
width: 100%;
height: 100%;
overflow: visible;
padding: 0px;
margin: 0px;
background-color: black;
"
>
<div class="preloader">
<img src="rocket.gif" alt="" class="center">
</div>
<script>
window.addEventListener("load", () => {
const loader = document.querySelector(".preloader");
loader.classList.add("preloader--hidden");
loader.addEventListener("transitionend", () => {
document.body.removeChild(loader);
});
});
</script>
<div
id="mainMenu"
style="
position: absolute;
top: 0px;
width: 100%;
height: auto;
overflow: visible;
z-index: 100;
"
>
<div id="Gametitle" class="knockout" style="display: block">
SpaceShip Escort
</div>
<div style="clear: both; height: 20px"></div>
<div
id="botonPlayInfo"
style="
text-shadow: 0 0 10px #27cfcc, 0 0 30px #27cfcc;
display: block;
width: 90%;
max-width: 61.5vh;
left: 5%;
font-weight: 300;
font-size: 13px;
margin: 0 auto;
padding: 5px;
color: #19cfcb;
height: auto;
background-color: none;
"
>
Year 13 after climate change.<br />
The Earth is uninhabitable.<br /><br />
The last space freighter, with 13 million fertilized and cryogenized
human ovules, leaves the earth, with 500 tons of Scriptium (Scm),
towards robotic bases built over decades, in anticipation of the
climatic catastrophe, on inhabitable planets in the star system
SAO215398 in the Phoenix supercluster of galaxies located 5700 Mly
away.<br /><br />
Scriptium (Scm) is a new synthetic fuel that is necessary for
intergalactic travel and also for building defense elements, and can be
extracted from the wreckage of destroyed enemy spacecraft.<br /><br />
Once all the Scriptium is over, the space freighter will run out of fuel
and the mission will have failed.<br /><br />
Your mission, as the commander of the last starfleet, is to escort and
defend the space freighter at all costs so that it reaches the bases and
human race does not become extinct.<br /><br />
It will not be an easy task since other civilizations have conflicting
interests.<br />
</div>
<div
id="botonPlay"
style="text-align: center; width: 100%; margin-top: 30px"
>
<div
id="bpTxt"
class="blink_me"
onclick="play();"
style="
display: inline-block;
text-align: center;
padding: 6px 20px 6px 20px;
font-size: 20px;
color: #d3fc6f;
font-weight: 500;
box-shadow: 0px 0px 10px 5px #86a145;
border-radius: 10px;
border: 3px solid #d3fc6f;
background-color: rgba(0, 0, 0, 0.5);
cursor: pointer;
"
>
Start mission
</div>
</div>
</div>
<div
id="mainDIV"
style="
position: relative;
margin: 0 auto;
width: 100%;
height: 100%;
overflow: hidden;
"
>
<div
id="gameStartMSG"
style="
position: absolute;
width: 100%;
pointer-events: none;
transition: 5s opacity;
display: none;
top: 150px;
left: 0px;
font-size: 18px;
z-index: 100;
"
>
<div
style="
pointer-events: none;
margin: 0 auto;
width: 80%;
max-width: 61.5vh;
font-weight: 500;
color: #c9af00;
"
>
✨ Escort the cargo spaceship.
<br /><br />
✨ Select battle starships and place them strategically.
<br /><br />
✨ Do not spend more Scriptium than neccesary.
</div>
</div>
<div
style="
position: relative;
margin: 0 auto;
width: 61.5vh;
height: calc(100% - 140px);
max-height: 140vw;
max-width: 100vw;
overflow: visible;
"
>
<div
id="gameMSG"
style="
position: absolute;
top: 150px;
left: 5%;
width: 84%;
text-align: center;
pointer-events: none;
opacity: 0;
transition: 2s opacity;
color: orange;
border-radius: 20px;
font-size: 12px;
padding: 3%;
background-color: rgba(25, 25, 25, 0.7);
z-index: 1000;
"
></div>
<div
id="config"
style="
position: absolute;
display: none;
top: 150px;
left: 5%;
width: 84%;
text-align: center;
color: silver;
border-radius: 20px;
font-size: 12px;
padding: 3%;
background-color: rgba(25, 25, 25, 0.9);
z-index: 1000;
"
>
<br /><br />
Set game volume
<br />
<input
id="vol"
type="range"
min="0"
max="1"
step="0.01"
value="0.5"
oninput="zzfxV=this.value;"
onchange="zzfxV=this.value;"
/>
<br /><br /><br /><br />
<div
onclick="localStorage.setItem('SpaceEscort13kbGame2', 1+' '+help);location.reload();"
style="
display: inline-block;
color: orange;
padding: 15px;
width: 150px;
text-align: center;
border-radius: 10px;
background-color: rgba(255, 255, 255, 0.2);
"
>
Reset game to wave 1
</div>
<br /><br /><br /><br />
<div
onclick="document.getElementById('config').style.display='none';if(!game_running){game_running=true;pause.style.backgroundColor='black';pause.style.color='silver';pause.innerHTML='▐▐';}"
style="
display: inline-block;
color: lime;
padding: 15px;
width: 50px;
text-align: center;
border-radius: 10px;
background-color: black;
"
>
OK
</div>
<br /><br />
</div>
<div id="home-button" class="HB"
onclick="localStorage.setItem('SpaceEscort13kbGame2', 1+' '+help);location.reload();">
<img style="height: 20px;" src="img/home-button-svgrepo-com.svg">
<div class="tooltip">
Home
</div>
</div>
<script>
const startMissionButton = document.getElementById('bpTxt');
const homeButton = document.getElementById('home-button');
homeButton.style.display = 'none';
startMissionButton.addEventListener('click', () => {
homeButton.style.display = 'inline-block';
});
</script>
<div
id="helpD"
style="
position: absolute;
display: none;
bottom: 100px;
width: 100%;
text-align: center;
color: yellow;
font-size: 14px;
z-index: 1000;
"
>
<div class="a1" style="left: 2%">
select one of the starship
<div class="a2" style="bottom: -130px; left: 10%; font-size: 150px">
↳
</div>
</div>
<div class="a1" style="left: 35%">
this is your Scriptium<br />(money, life, ...)
<div class="a2" style="bottom: -40px; left: 10%; font-size: 60px">
⇩
</div>
</div>
<div class="a1" style="left: 68%">
<br /><br />
Then tap on the screen to place
<div class="a2" style="top: -100px; left: 15%; font-size: 120px">
⇈
</div>
</div>
<div
onclick="document.getElementById('helpD').style.display='none';if(!game_running){game_running=true;pause.style.backgroundColor='black';pause.style.color='silver';pause.innerHTML='▐▐';}"
style="
position: absolute;
left: 35%;
top: -80px;
color: lime;
padding: 15px;
width: 100px;
text-align: center;
border-radius: 10px;
background-color: #333;
"
>
Ok, close help
</div>
<br /><br />
</div>
<div
id="canvasDIV"
style="
position: relative;
height: 100%;
overflow: hidden;
background-color: black;
"
>
<canvas
id="mycanvas"
onclick="ponerNave(((event.layerX))/CanvasSize , ((event.layerY))/CanvasSize, 0);"
onmousedown="mou=1;"
onmouseup="mou=0;"
>
</canvas>
</div>
<div
id="shipMenuDIV"
style="
position: relative;
display: none;
width: 100%;
height: 130px;
min-height: 100px;
border-radius: 20px 20px 0px 0px;
background: linear-gradient(
90deg,
rgba(20, 20, 20, 1) 0%,
rgba(60, 60, 60, 1) 50%,
rgba(20, 20, 20, 1) 100%
);
"
>
<div
id="shipMenuDIVBlink"
class="blink_me2"
style="
position: absolute;
display: none;
width: 100%;
height: 100%;
border-radius: 20px 20px 0px 0px;
background: linear-gradient(
90deg,
rgba(20, 20, 20, 1) 0%,
#ba2222 50%,
rgba(20, 20, 20, 1) 100%
);
"
></div>
<div
style="
position: absolute;
top: 16px;
left: 7%;
width: 20%;
height: 5px;
color: gray;
text-align: center;
box-shadow: 0px 0px 5px 3px #044;
font-weight: 200;
font-size: 11px;
border-radius: 10px 0px 10px 0px;
background-color: black;
"
>
<div style="position: absolute; top: -15px; left: 0px; width: 100%">
alert status
</div>
<div
id="alertSt"
style="
position: absolute;
top: 1px;
left: 0px;
width: 1%;
max-width: 100%;
height: 4px;
border-radius: 10px 0px 10px 0px;
background-color: red;
"
></div>
</div>
<div
id="helpb"
class=""
onclick="document.getElementById('helpD').style.display='block'; this.classList.remove('blink_me2'); this.style.boxShadow='0px 0px 5px 3px #044'; if(!help) localStorage.setItem('SpaceEscort13kbGame2', wave+' '+1);if(game_running){game_running=false;pause.style.backgroundColor='orange';pause.style.color='black';pause.style.paddingLeft = '5px';pause.innerHTML='▶';}"
style="
position: absolute;
top: 5px;
right: 3%;
color: silver;
padding: 0px 5px 0px 5px;
text-align: center;
box-shadow: 0px 0px 5px 3px #bf0;
font-weight: 900;
font-size: 12px;
border-radius: 50px;
background-color: black;
cursor: pointer;
"
>
?
</div>
<!-- The below div changes include the Pause button padding to appear it as the original shape -->
<div
onclick="if(game_running){game_running=false;this.style.backgroundColor='orange';this.style.color='black';this.style.paddingLeft = '5px';this.innerHTML='▶';}else{game_running=true;this.style.backgroundColor='black';this.style.color='silver';this.style.paddingLeft = '2px';this.innerHTML='▐▐';}"
style="
position: absolute;
top: 5px;
right: 10%;
color: silver;
padding: 3px 5px 4px 3px;
text-align: center;
box-shadow: 0px 0px 5px 3px #044;
font-weight: 900;
font-size: 7px;
border-radius: 50px;
background-color: black;
cursor: pointer;
"
id="pause"
>
▐▐
</div>
<div
onclick="document.getElementById('config').style.display='block';if(game_running){game_running=false;pause.style.backgroundColor='orange';pause.style.color='black';pause.style.paddingLeft = '5px';pause.innerHTML='▶';}"
style="
position: absolute;
top: 5px;
right: 18%;
color: silver;
padding: 0px 4px 1px 3px;
text-align: center;
box-shadow: 0px 0px 5px 3px #044;
font-weight: 900;
font-size: 13px;
border-radius: 50px;
background-color: black;
cursor: pointer;
"
id="setting"
>
⚙
</div>
<script>
//CHANGES : Help and setting button to be not visible at same moment!
const helpButton = document.getElementById('helpb');
const setting = document.getElementById('setting');
const PlayPause = document.getElementById('pause');
setting.addEventListener('click', () => {
helpD.style.display = 'none';
config.style.display = 'inline-block';
});
helpButton.addEventListener('click', () => {
helpD.style.display = 'inline-block';
config.style.display = 'none';
});
PlayPause.addEventListener('click', () => {
helpD.style.display = 'none';
config.style.display = 'none';
});
</script>
<div
style="
position: relative;
margin: 0 auto;
width: 35%;
text-align: center;
font-weight: 500;
font-size: 12px;
border-radius: 0px 0px 10px 10px;
padding: 3px 10px 4px 10px;
height: 17px;
max-height: 17px;
color: #00b0b0;
background-color: rgba(0, 0, 0, 0.5);
"
>
<span
id="pasta"
style="
font-size: 14px;
color: cyan;
height: 16px;
max-height: 16px;
transition: font-size 0.5s ease, color 0.2s ease;
"
>500</span
>
Scm (tons)
</div>
<div
style="
position: relative;
clear: both;
margin-top: 7px;
text-align: center;
width: 100%;
height: auto;
color: cyan;
background-color: none;
"
>
<div class="menuDivs">
<div
class="menuShips"
style="background-position: 0% -3%"
onclick="AAtype=2; AAsubtipo=1; selectShipmenu(this);"
>
<div class="nam">garbage<br />meteor</div>
</div>
<br />5<br />
</div>
<div class="menuDivs">
<div
id="dflt"
class="menuShips"
style="
background-position: 14.2% 3%;
border: 2px solid #d3fc6f;
box-shadow: 0px 0px 10px 2px #d3fc6f;
"
onclick="AAtype=2; AAsubtipo=2; selectShipmenu(this);"
>
<div class="nam">Light<br />figther</div>
</div>
<br />10
</div>
<div class="menuDivs">
<div
class="menuShips"
style="background-position: 28.5% 2%"
onclick="AAtype=2; AAsubtipo=3; selectShipmenu(this);"
>
<div class="nam">trident<br />figther</div>
</div>
<br />20
</div>
<div class="menuDivs">
<div
class="menuShips"
style="background-position: 42.8% -5%"
onclick="AAtype=2; AAsubtipo=4; selectShipmenu(this);"
>
<div class="nam">spread<br />figther</div>
</div>
<br />30
</div>
<div class="menuDivs">
<div
class="menuShips"
style="background-position: 56.9% -5%"
onclick="AAtype=2; AAsubtipo=5; selectShipmenu(this);"
>
<div class="nam">ionic<br />cannon</div>
</div>
<br />40
</div>
<div class="menuDivs">
<div
class="menuShips"
style="background-position: 71.3% -2%"
onclick="AAtype=2; AAsubtipo=6; selectShipmenu(this);"
>
<div class="nam">hammer<br />ironclad</div>
</div>
<br />50
</div>
<div class="menuDivs">
<div
class="menuShips"
style="background-position: 85.6% -5%"
onclick="AAtype=2; AAsubtipo=7; selectShipmenu(this);"
>
<div class="nam">neutrino<br />mine</div>
</div>
<br />60
</div>
</div>
</div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>