-
Notifications
You must be signed in to change notification settings - Fork 0
/
jogo_da_velha.html
111 lines (88 loc) · 3.42 KB
/
jogo_da_velha.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<!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 rel="shortcut icon" href="public/img/favicon.png" type="image/x-icon">
<title>Jogo da velha</title>
<link rel="stylesheet" href="public/css/header_games.css">
<link rel="stylesheet" href="public/css/jogo_da_velha.css">
</head>
<body onload="recomeca()">
<header>
<a href="index.html" id="home">
<ion-icon name="home"></ion-icon>
<p>Home</p>
</a>
<a href="https://chat2-kauamoreno2005.b4a.run/" target="_blank" id="chat">
<ion-icon name="chatbox-ellipses"></ion-icon>
<p>Sala de Bate-Papo</p>
</a>
</header>
<main>
<div id="jogo">
<div class="linha">
<div class="casa" id="casa0" onclick="verifica(0)">
<img alt="" id="img0" />
</div>
<div class="casa" id="casa1" onclick="verifica(1)">
<img alt="" id="img1" />
</div>
<div class="casa" id="casa2" onclick="verifica(2)">
<img alt="" id="img2" />
</div>
</div>
<div class="linha">
<div class="casa" id="casa3" onclick="verifica(3)">
<img alt="" id="img3" />
</div>
<div class="casa" id="casa4" onclick="verifica(4)">
<img alt="" id="img4" />
</div>
<div class="casa" id="casa5" onclick="verifica(5)">
<img alt="" id="img5" />
</div>
</div>
<div class="linha">
<div class="casa" id="casa6" onclick="verifica(6)">
<img alt="" id="img6" />
</div>
<div class="casa" id="casa7" onclick="verifica(7)">
<img alt="" id="img7" />
</div>
<div class="casa" id="casa8" onclick="verifica(8)">
<img alt="" id="img8" />
</div>
</div>
</div>
<div id="resultado">
<!-- <p id="resposta">Resultado: </p> -->
<p class="title_resultado">Resultado: </p>
<br>
<table>
<tr>
<td class="xis">Pontos X:</td>
<td id="xis">0</td>
</tr>
<tr>
<td class="bola">Pontos O:</td>
<td id="bola">0</td>
</tr>
<tr>
<td class="velha">Pontos Velha:</td>
<td id="velha">0</td>
</tr>
</table>
<form>
<input type="button" id="btnNovoJogo" value="NOVO JOGO" onclick="recomeca()">
</form>
</div>
</main>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<!-- IONICONS ------------------------------------------------------------------------------------->
<script type="module" src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.js"></script>
<script src="public/js/jogo_da_velha.js"></script>
</body>
</html>