-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
48 lines (44 loc) · 1.4 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1">
<link type="text/css" rel="stylesheet" href="style.css" />
<script type="text/javascript" src="script.js"></script>
<title>Tic-Tac-Toe</title>
</head>
<body>
<header>
<p>Tic-Tac-Toe Game</p>
</header>
<div class="btndiv">
<input type="button" class="bnt-level active" value="Level1" id="btn-level1" onclick="changeLevel(this)" />
<input type="button" class="bnt-level" value="Level2" id="btn-level2" onclick="changeLevel(this)" />
<input type="button" class="bnt-level" value="Level3" id="btn-level3" onclick="changeLevel(this)" />
</div>
<br />
<p id="message"></p>
<br />
<table id="tab-tic-tac-toe" cellspacing="0">
<tr>
<td id="00" onclick="clickedCell(this)"></td>
<td id="01" onclick="clickedCell(this)"></td>
<td id="02" onclick="clickedCell(this)"></td>
</tr>
<tr>
<td id="10" onclick="clickedCell(this)"></td>
<td id="11" onclick="clickedCell(this)"></td>
<td id="12" onclick="clickedCell(this)"></td>
</tr>
<tr>
<td id="20" onclick="clickedCell(this)"></td>
<td id="21" onclick="clickedCell(this)"></td>
<td id="22" onclick="clickedCell(this)"></td>
</tr>
</table>
<br><br>
<input type="button" class="bnt-restart" style="visibility: hidden;" value="Start playing" id="bnt-restart"
onclick="restartBnt(this)" />
<br />
</body>
</html>