-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
72 lines (52 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
70
71
72
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Tic Tac Toe Game</title>
<link rel="stylesheet" href="./css/styles.css">
<link href="https://fonts.googleapis.com/css?family=Press+Start+2P" rel="stylesheet">
</head>
<body>
<div id = "start_menu">
<h1 id="title">Tic Tac Toe Game</h1>
<button id = "start_btn" onclick = "main()" >Start Game</button>
<div class = "row" id = "user-select" >
<label for = "choice" class="col-sm-6 col-form-label">User 1 Choice : O or X ??</label>
<div class="col-sm-3">
<input type = "text" id = "choice" name = "choice" class = "input-box" required/>
</div>
</div>
</div>
<br>
<h2 id="user_title"></h2>
<h3 id="wrong_title">Please Select Empty Place !!</h3>
<div id="container">
<div class="row">
<div type="button" id="0" class="btn" onclick="clicking(this)">
</div>
<div type="button" id="1" class="btn" onclick="clicking(this)">
</div>
<div type="button" id="2" class="btn" onclick="clicking(this)">
</div>
</div>
<div class="row">
<div type="button" id="3" class="btn" onclick="clicking(this)">
</div>
<div type="button" id="4" class="btn" onclick="clicking(this)">
</div>
<div type="button" id="5" class="btn" onclick="clicking(this)">
</div>
</div>
<div class="row">
<div type="button" id="6" class="btn" onclick="clicking(this)">
</div>
<div type="button" id="7" class="btn" onclick="clicking(this)">
</div>
<div type="button" id="8" class="btn" onclick="clicking(this)">
</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<script src="./js/index.js"></script>
</body>
</html>