Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
70 lines (66 loc) · 2 KB
/
Copy pathindex.html
File metadata and controls
70 lines (66 loc) · 2 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Tic Tac Toe</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous"> </head>
<link rel="stylesheet" href="style.css">
<body>
<center>
<br>
<h1>Welcome to the JavaScript Tic Tac Toe</h1>
<div class="scoreboard">
<div id="timer">
--:--:--
</div>
<div id="winner">
<span style="color:red;">No Winner Yet</span>
</div>
</div>
<div>
<h3 id="turn">click start to play</h3>
</div>
</center>
<div class="container-cell">
<div class="cell" id="c1">
<h1 class="the-play"></h1>
</div>
<div class="cell" id="c2">
<h1 class="the-play"></h1>
</div>
<div class="cell" id="c3">
<h1 class="the-play"></h1>
</div>
<div class="cell" id="c4">
<h1 class="the-play"></h1>
</div>
<div class="cell" id="c5">
<h1 class="the-play"></h1>
</div>
<div class="cell" id="c6">
<h1 class="the-play"></h1>
</div>
<div class="cell" id="c7">
<h1 class="the-play"></h1>
</div>
<div class="cell" id="c8">
<h1 class="the-play"></h1>
</div>
<div class="cell" id="c9">
<h1 class="the-play"></h1>
</div>
</div>
<br>
<br>
<form id="game-form">
<div>
<input type="radio" name="gameMode" id="gameMode" value="pvp" checked>
<label for="pvp">Player Vs. Player</label>
<input type="radio" name="gameMode" id="gameMode" value="pvc">
<label for="pvc">Player Vs. Computer</label>
</div>
<button type="button" name="start" id="startBtn">start</button>
</form>
<script src="main.js"></script>
</body>
</html>