-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
84 lines (73 loc) · 3.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
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
<!DOCTYPE HTML>
<head><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.css">
<meta charset="UTF-8">
<link rel="stylesheet" href="index.css">
<title>Basketball Scoreboard</title>
</head>
<body>
<!-- Main Container -->
<div class="container">
<!-- Scores & Period-->
<div class="score-period">
<div class="scoreboard">
<h3 class="board-title">INT</h3>
<div class="score">
<span class="score-number" id="home-score">0</span>
</div>
<div class="add-points">
<button class="add-btn" onclick="addPoint('home', 1)">+1</button>
<button class="add-btn" onclick="addPoint('home', 2)">+2</button>
<button class="add-btn" onclick="addPoint('home', 3)">+3</button>
</div>
</div>
<div class="period-counter">
<h4 class="period-title">PERIOD</h4>
<div class="period">
<span id="period-number">0</span>
</div>
<div class="add-period">
<button class="period-btn" onclick="addPeriod()">+</button>
</div>
</div>
<div class="scoreboard">
<h3 class="board-title">JUV</h3>
<div class="score">
<span class="score-number" id="guest-score">0</span>
</div>
<div class="add-points">
<button class="add-btn" onclick="addPoint('guest', 1)">+1</button>
<button class="add-btn" onclick="addPoint('guest', 2)">+2</button>
<button class="add-btn" onclick="addPoint('guest', 3)">+3</button>
</div>
</div>
</div>
<!--Fouls Counter-->
<div class="fouls">
<div class="fouls-board">
<h3 class="fouls-title">FOULS</h3>
<div class="fouls-counter">
<span id="foul-home">0</span>
</div>
<div class="foul-btn-set">
<button class="foul-btn" onclick="addFouls('home', 1)">+</button>
<button class="foul-btn" onclick="addFouls('home', 0)">0</button>
</div>
</div>
<div class="new-game-btn">
<button class="game-btn" onclick="newGame()">New Game</button>
</div>
<div class="fouls-board">
<h3 class="fouls-title">FOULS</h3>
<div class="fouls-counter">
<span id="foul-guest">0</span>
</div>
<div class="foul-btn-set">
<button class="foul-btn" onclick="addFouls('guest', 1)">+</button>
<button class="foul-btn" onclick="addFouls('guest', 0)">0</button>
</div>
</div>
</div>
</div>
<script src="index.js"></script>
</body>
</html>