-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
70 lines (54 loc) · 1.99 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
<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>Assingment</title>
<link rel="stylesheet" href="style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=bangers&display=swap" rel="stylesheet">
</head>
<body>
<div id="gameTitle">Shooting Arena</div>
<div class="arena">
<!-- Player 1 -->
<div id="p1banner">
<h2>Player 1</h2>
</div>
<div id="p1">
<img src="pngegg (2).png"Player 1" height="80px" width="110px">
</div>
<div id="p1banner23">
<img src="fb1 (2).png" height="90px" width="130px" alt="p1Fire"> <span id="p1FireScore"></span>
</div>
<!-- Player 2 -->
<div id="p2banner">
<h2>Player 2</h2>
</div>
<div id="p2">
<img src="pngegg (1).png" alt="Player 1" height="80px" width="110px">
</div>
<div id="p2banner24">
<img src="fb1.png" height="90px" width="130px" alt="p2Fire"> <span id="p2FireScore"></span>
</div>
</div>
<!-- Assigning Buttons -->
<br>
<Button id="ShootBtn" onclick="shootBtn()">Shoot</Button>
<span>
<button id="resetBtn" onclick="resetBtn()">Reset Button</button>
</span>
<br><br>
<div class="Score-Board">
<div class="grid-item" id="grid-item-1">Player 1</div>
<div class="grid-item" id="grid-item-3">Win</div>
<div class="grid-item" id="grid-item-4">0</div>
<div class="grid-item" id="grid-item-5">Player 2</div>
<div class="grid-item" id="grid-item-7">Win</div>
<div class="grid-item" id="grid-item-8">0</div>
</div>
<div class="result">
<div class="result-item" id="grid-item-9"></div>
</div>
<script src="script.js"></script>
</body>