-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
44 lines (39 loc) · 1.76 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
* {
box-sizing: border-box
}
div h1 {
justify-content: center;
align-items: center;
margin-right: 10%;
}
</style>
</head>
<body>
<div style="position: relative; display: inline-block;">
<div style="position: absolute; display: flex; width: 100%; align-items: center; padding: 20px;">
<div style="position: relative; height: 30px; width: 100%; display: flex; justify-content: flex-end;">
<div style="background-color: red; height: 30px; width: 100%;"></div>
<div id="playerHealth"style="position: absolute; background-color: rgb(174, 255, 0); top: 0; right: 0; width:100%; bottom: 0;"></div>
</div>
<div id="timer" style="background-color: red; width: 100px; height: 100px; flex-shrink: 0; display: flex; align-items: center; justify-content: center
;"><h1>10</h1></div>
<div style="position: relative; height: 30px; width: 100%;">
<div style="background-color: red; height: 30px; width: 100%;"></div>
<div id="enemyHealth" style="position: absolute; background-color: rgb(174, 255, 0); top: 0; right: 0; left: 0; bottom: 0;"></div>
</div>
</div>
<div id="result" style="position: absolute; color: white; display: none; align-items: center; justify-content: center; top: 0; right: 0; bottom: 0; left: 0;">Tie</div>
<canvas></canvas>
</div>
<script src="classes.js"></script>
<script src="index.js"></script>
</body>
</html>