-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
61 lines (61 loc) · 2.09 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
<!DOCTYPE html>
<html lang="pt-BR">
<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 href="./css/styles.css" rel="stylesheet">
<title>TIC-TAC-TOE</title>
</head>
<body>
<div id="menu-container">
<div class="player-container">
<div class="player-subname">PLAYER</div>
<div id="player1-name"></div>
<div id="player1-piece-container"></div>
</div>
<div id="player-turn">
<input
type="button"
id="start-game"
value="START"
onclick="startGame(this)"
/>
<div id="game-msg"></div>
<input
type="button"
id="reset-game"
value="RESTART"
hidden="true"
onclick="resetGame(this)"
/>
</div>
<div class="player-container">
<div class="player-subname">PLAYER</div>
<div id="player2-name"></div>
<div id="player2-piece-container"></div>
</div>
</div>
<div id="game-container">
<div id="title">TIC-TAC-TOE</div>
<div>
<div class="line">
<div id="00" class="position" onclick="playerPlayed(this)"></div>
<div id="01" class="position" onclick="playerPlayed(this)"></div>
<div id="02" class="position" onclick="playerPlayed(this)"></div>
</div>
<div class="line">
<div id="10" class="position" onclick="playerPlayed(this)"></div>
<div id="11" class="position" onclick="playerPlayed(this)"></div>
<div id="12" class="position" onclick="playerPlayed(this)"></div>
</div>
<div class="line">
<div id="20" class="position" onclick="playerPlayed(this)"></div>
<div id="21" class="position" onclick="playerPlayed(this)"></div>
<div id="22" class="position" onclick="playerPlayed(this)"></div>
</div>
</div>
</div>
</body>
<script src="./js/script.js"></script>
</html>