-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
39 lines (36 loc) · 1.24 KB
/
index.html
File metadata and controls
39 lines (36 loc) · 1.24 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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="index.css">
</head>
<body>
<div class="container">
<div>
<h3>HOME</h3>
<div class="score-holder">
<p id="home-score">0</p>
</div>
<div class="add-points">
<button onclick="addPoints('home', 1)">+1</button>
<button onclick="addPoints('home', 2)">+2</button>
<button onclick="addPoints('home', 3)">+3</button>
</div>
</div>
<div class="game-controls">
<button onclick="resetGame()">New Game</button>
</div>
<div>
<h3>AWAY</h3>
<div class="score-holder">
<p id="away-score">0</p>
</div>
<div class="add-points">
<button onclick="addPoints('away', 1)">+1</button>
<button onclick="addPoints('away', 2)">+2</button>
<button onclick="addPoints('away', 3)">+3</button>
</div>
</div>
</div>
<script src="index.js"></script>
</body>
</html>