-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
40 lines (40 loc) · 1.45 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
<!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.0" />
<link rel="stylesheet" href="index.css" />
<title>Tic Tac Toe</title>
</head>
<body>
<div id="main">
<h1>T</h1>
<p>
Tap on the box to start the game <br /><br />First player starts
<br /><br />
<b> "0"</b><br />And<br />
<b> "X"</b>
</p>
<br />
<br />
<input type="text" id="b1" onclick="myFunc1(); checkWin()" readonly />
<input type="text" id="b2" onclick="myFunc2(); checkWin()" readonly />
<input type="text" id="b3" onclick="myFunc3(); checkWin()" readonly />
<br />
<br />
<input type="text" id="b4" onclick="myFunc4(); checkWin()" readonly />
<input type="text" id="b5" onclick="myFunc5(); checkWin()" readonly />
<input type="text" id="b6" onclick="myFunc6(); checkWin()" readonly />
<br /><br />
<input type="text" id="b7" onclick="myFunc7(); checkWin()" readonly />
<input type="text" id="b8" onclick="myFunc8(); checkWin()" readonly />
<input type="text" id="b9" onclick="myFunc9(); checkWin()" readonly />
<br /><br /><br />
<button id="reset-el" onclick="myFuncReset()">RESET</button>
<br /><br />
<p id="print"></p>
<script src="index.js"></script>
</div>
</body>
</html>