|
12 | 12 | <link rel="stylesheet" href="index.css" /> |
13 | 13 | </head> |
14 | 14 | <body> |
15 | | - <h1 class="title white center upperCase">Basketball Scoreboard</h1> |
16 | | - <div class="wrapper"> |
17 | | - <div class="board"> |
18 | | - <div class="player blue"> |
19 | | - <h2 class="player__title center upperCase">Home</h2> |
20 | | - <div class="box"> |
21 | | - <p class="score" id="HomeScore">0</p> |
22 | | - </div> |
| 15 | + <div class="container"> |
| 16 | + <h1 class="title white center upperCase">Basketball Scoreboard</h1> |
| 17 | + <div class="wrapper"> |
| 18 | + <div class="board"> |
| 19 | + <div class="player blue"> |
| 20 | + <h2 class="player__title center upperCase">Home</h2> |
| 21 | + <div class="box"> |
| 22 | + <output class="score" id="HomeScore">0</output> |
| 23 | + </div> |
23 | 24 |
|
24 | | - <div class="addition"> |
25 | | - <button class="addition__minus white" onclick="homeSubtractOne()">-</button> |
26 | | - <button class="addition__plusOne white" onclick="homeAddOne()">+1</button> |
27 | | - <button class="addition__plusTwo white" onclick="homeAddTwo()">+2</button> |
28 | | - <button class="addition__plusThree white" onclick="homeAddThree()">+3</button> |
| 25 | + <div class="addition"> |
| 26 | + <button class="addition__minus white" onclick="homeSubtractOne()">-</button> |
| 27 | + <button class="addition__plusOne white" onclick="homeAddOne()">+1</button> |
| 28 | + <button class="addition__plusTwo white" onclick="homeAddTwo()">+2</button> |
| 29 | + <button class="addition__plusThree white" onclick="homeAddThree()">+3</button> |
| 30 | + </div> |
29 | 31 | </div> |
30 | | - </div> |
31 | 32 |
|
32 | | - <div class="player"> |
33 | | - <h2 class="player__title center upperCase red border--red">Guest</h2> |
34 | | - <div class="box border--red"> |
35 | | - <p class="score red" id="GuestScore"></p> |
36 | | - </div> |
37 | | - <div class="addition"> |
38 | | - <button class="addition__minus white border--red" onclick="guestSubtractOne()"> |
39 | | - - |
40 | | - </button> |
41 | | - <button class="addition__plusOne white border--red" onclick="guestAddOne()">+1</button> |
42 | | - <button class="addition__plusTwo white border--red" onclick="guestAddTwo()">+2</button> |
43 | | - <button class="addition__plusThree white border--red" onclick="guestAddThree()"> |
44 | | - +3 |
45 | | - </button> |
| 33 | + <div class="player"> |
| 34 | + <h2 class="player__title center upperCase red border--red">Guest</h2> |
| 35 | + <div class="box border--red"> |
| 36 | + <output class="score red" id="GuestScore">0</output> |
| 37 | + </div> |
| 38 | + <div class="addition"> |
| 39 | + <button class="addition__minus white border--red" onclick="guestSubtractOne()"> |
| 40 | + - |
| 41 | + </button> |
| 42 | + <button class="addition__plusOne white border--red" onclick="guestAddOne()"> |
| 43 | + +1 |
| 44 | + </button> |
| 45 | + <button class="addition__plusTwo white border--red" onclick="guestAddTwo()"> |
| 46 | + +2 |
| 47 | + </button> |
| 48 | + <button class="addition__plusThree white border--red" onclick="guestAddThree()"> |
| 49 | + +3 |
| 50 | + </button> |
| 51 | + </div> |
46 | 52 | </div> |
47 | 53 | </div> |
48 | | - </div> |
49 | 54 |
|
50 | | - <hr /> |
| 55 | + <hr /> |
51 | 56 |
|
52 | | - <button class="reset white" onclick="reset()">Reset</button> |
| 57 | + <button class="reset white" onclick="reset()" tabindex="-1">Reset</button> |
| 58 | + </div> |
53 | 59 | </div> |
54 | 60 |
|
55 | 61 | <script defer src="index.js"></script> |
|
0 commit comments