-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnew_game.php
59 lines (59 loc) · 2.35 KB
/
new_game.php
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Basketball Scoreboard by MMSGI</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<main class="scoreboard">
<section id="time"></section>
<section class="scores">
<div class="home">
<h1 id="home-header">
<?php
if(isset($_POST['player1'])) {
echo $_POST['player1'];
}else{
echo "No Name";
}
?>
</h1>
<div id="home-score"></div>
<div class="buttons">
<button id="home-one" onclick="homePoints(1)">+1</button>
<button id="home-two" onclick="homePoints(2)">+2</button>
<button id="home-three" onclick="homePoints(3)">+3</button>
</div>
</div>
<div class="period-div">
<h3>Period</h3>
<div id="period">1</div>
</div>
<div class="guest">
<h1 id="guest-header">
<?php
if(isset($_POST['player2'])) {
echo $_POST['player2'];
}else{
echo "No Name";
}
?>
</h1>
<div id="guest-score"></div>
<div class="buttons">
<button id="guest-one" onclick="guestPoints(1)">+1</button>
<button id="guest-two" onclick="guestPoints(2)">+2</button>
<button id="guest-three" onclick="guestPoints(3)">+3</button>
</div>
</div>
</section>
<section class="button_game">
<button id="new-game" onclick="newGame()">New game</button>
<button id="start-game" onclick="startGame()">Start game</button>
<button id="pause-game" onclick="pauseGame()">Pause game</button>
</section>
</main>
<script src="index.js"></script>
</body>
</html>