generated from githubsatelliteworkshops/template-workshop
-
Notifications
You must be signed in to change notification settings - Fork 13
/
index.html
59 lines (58 loc) · 1.5 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>TicTacToe</title>
<link href="public/index.css" type="text/css" rel="stylesheet" />
<script src="public/main.js"></script>
</head>
<body>
<div id="app">
<div>
<h2 id="turn">It's <span id="player"></span>'s turn!</h2>
<h2 id="win">
<span id="winner"></span> wins!
<button id="newGame">Play again?</button>
</h2>
</div>
<div id="game">
<table id="tictactoe">
<tr"0">
<td class="0 0"></td>
<td class="0 1"></td>
<td class="0 2"></td>
</tr>
<tr>
<td class="1 0"></td>
<td class="1 1"></td>
<td class="1 2"></td>
</tr>
<tr>
<td class="2 0"></td>
<td class="2 1"></td>
<td class="2 2"></td>
</tr>
</table>
<div id="score">
<h2>Score</h2>
<table>
<thead>
<tr>
<th id="p1Name"></th>
<th id="p2Name"></th>
</tr>
</thead>
<tbody>
<tr>
<td id="p1Score">0</td>
<td id="p2Score">0</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</body>
</html>