-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
37 lines (34 loc) · 1.25 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Tic Tac Toe</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<link rel="stylesheet" href="style.css">
</head>
<body onload="startGame()">
<h1>Tic Tac Toe</h1>
<div id="message">Message here</div>
<table border="1">
<tr>
<td class="square" onclick="nextMove(this)" id="s_1"></td>
<td class="square" onclick="nextMove(this)" id="s_2"></td>
<td class="square" onclick="nextMove(this)" id="s_3"></td>
</tr>
<tr>
<td class="square" onclick="nextMove(this)" id="s_4"></td>
<td class="square" onclick="nextMove(this)" id="s_5"></td>
<td class="square" onclick="nextMove(this)" id="s_6"></td>
</tr>
<tr>
<td class="square" onclick="nextMove(this)" id="s_7"></td>
<td class="square" onclick="nextMove(this)" id="s_8"></td>
<td class="square" onclick="nextMove(this)" id="s_9"></td>
</tr>
</table>
<a id="restart" href="javascript:startGame()">Start over</a>
<script src="common.js"></script>
</body>
</html>