-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
69 lines (53 loc) · 1.98 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Balmonte Tic Tac Toe</title>
</head>
<body>
<div class="score-board">
<h3>Scoreboard</h3>
<span class="label">Player 1=</span>
<span id="player1Score">0</span><br>
<span class="label">Player 2=</span>
<span id="player2Score">0</span>
</div>
<div class="main">
<div class="player-1">
<h1>PLAYER 1</h1>
<img src="images/player-1.png" alt="Player 1">
<p id="player-1-result-label" style="font-size: 4em;"></p>
<img id="player-1-result-image" src="images/x-icon.png" alt="">
</div>
<div class="game-table">
<h1>TIC TAC TOE</h1>
<table>
<tr id="r1">
<td id="1" onclick="setMark(this.id)"></td>
<td id="2" onclick="setMark(this.id)"></td>
<td id="3" onclick="setMark(this.id)"></td>
</tr>
<tr id="r2">
<td id="4" onclick="setMark(this.id)"></td>
<td id="5" onclick="setMark(this.id)"></td>
<td id="6" onclick="setMark(this.id)"></td>
</tr>
<tr id="r3">
<td id="7" onclick="setMark(this.id)"></td>
<td id="8" onclick="setMark(this.id)"></td>
<td id="9" onclick="setMark(this.id)"></td>
</tr>
</table>
</div>
<div class="player-2">
<h1>PLAYER 2</h1>
<img src="images/player-2.png" alt="Player 2" width="256" height="256">
<p id="player-2-result-label" style="font-size: 4em;"></p>
<img id="player-2-result-image" src="images/o-icon.png" alt="">
</div>
</div>
<script src="script.js"></script>
</body>
</html>