-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
100 lines (97 loc) · 2.05 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
<head>
<style>
* {
box-sizing: border-box;
}
</style>
</head>
<body>
<!-- Red Container div-->
<div style="position: relative; display: inline-block">
<!-- Smaller Red Container div-->
<div
style="
position: absolute;
display: flex;
width: 100%;
align-items: center;
padding: 20px;
"
>
<!-- Player Health -->
<div
style="
position: relative;
height: 30px;
width: 100%;
display: flex;
justify-content: flex-end;
"
>
<div style="background-color: yellow; height: 30px; width: 100%"></div>
<div
id="playerHealth"
style="
position: absolute;
background: blue;
top: 0;
right: 0;
bottom: 0;
width: 100%;
"
></div>
</div>
<!-- Timer -->
<div
id="timer"
style="
background-color: red;
height: 100px;
width: 100px;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
"
>
10
</div>
<!-- Enemy Health -->
<div style="position: relative; height: 30px; width: 100%">
<div style="background-color: yellow; height: 30px"></div>
<div
id="enemyHealth"
style="
position: absolute;
background: blue;
top: 0;
right: 0;
bottom: 0;
left: 0;
"
></div>
</div>
<div></div>
</div>
<div
id="displayText"
style="
position: absolute;
color: white;
align-items: center;
justify-content: center;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: none;
"
>
Tie
</div>
<canvas></canvas>
</div>
<script src="js/utils.js"></script>
<script src="js/classes.js"></script>
<script src="index.js"></script>
</body>