-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
47 lines (40 loc) · 1.43 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
<!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" />
<title>Jogo da Velha</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<h1>Jogo da Velha</h1>
<div>
<div id="1" class="quadrado" onclick="escolherQuadrado(this.id)">-</div>
<div id="2" class="quadrado" onclick="escolherQuadrado(this.id)">-</div>
<div id="3" class="quadrado" onclick="escolherQuadrado(this.id)">-</div>
</div>
<div>
<div id="4" class="quadrado" onclick="escolherQuadrado(this.id)">-</div>
<div id="5" class="quadrado" onclick="escolherQuadrado(this.id)">-</div>
<div id="6" class="quadrado" onclick="escolherQuadrado(this.id)">-</div>
</div>
<div>
<div id="7" class="quadrado" onclick="escolherQuadrado(this.id)">-</div>
<div id="8" class="quadrado" onclick="escolherQuadrado(this.id)">-</div>
<div id="9" class="quadrado" onclick="escolherQuadrado(this.id)">-</div>
</div>
<div class="jogador">
<label>Jogador:</label>
<label id="jogador-selecionado"></label>
</div>
<div>
<label>Vencedor:</label>
<label id="vencedor-selecionado"></label>
</div>
<div>
<button onclick="reiniciar()">Reiniciar</button>
</div>
<script src="script.js"></script>
</body>
</html>