-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
67 lines (59 loc) · 2.56 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
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.2/css/font-awesome.min.css">
<link rel="shortcut icon" href="jogodavelha.png" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script type="text/javascript" src="js/jogoDaVelha.js"></script>
<title>Jogo da Velha</title>
</head>
<body>
<!-- MENU -->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark static-top">
<div class="container">
<h2 class="navbar-brand mt-3"><img src="jogodavelha.png" style="height:50px; width:50px; margin-right: 10px;" alt="">Jogo da Velha</h2>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
</div>
</nav>
<main class="container"><br><br>
<div id="jogadores">
<h4>Nome dos Jogadores: </h4><br>
<label for="" style="margin-left: 30px;">Jogador 01: </label>
<input type="text" id="jogador1"/><br>
<label for="" style="margin-left: 30px;">Jogador 02: </label>
<input type="text" id="jogador2"/><br>
<input id="botaoIniciar" type="button" value="Iniciar" class="btn btn-outline-secondary" onclick="iniciarJogo();"/>
</div>
<h3 id="jogadorAtual"> </h3>
<div id="game" type="hidden">
<table>
<tr>
<td onclick="setValorCelula(this, 0);"> </td>
<td onclick="setValorCelula(this, 1);"> </td>
<td onclick="setValorCelula(this, 2);"> </td>
</tr>
<tr>
<td onclick="setValorCelula(this, 3);"> </td>
<td onclick="setValorCelula(this, 4);"> </td>
<td onclick="setValorCelula(this, 5);"> </td>
</tr>
<tr >
<td id="ultimo" onclick="setValorCelula(this, 6);"> </td>
<td id="ultimo" onclick="setValorCelula(this, 7);"> </td>
<td id="ultimo" onclick="setValorCelula(this, 8);"> </td>
</tr>
</table>
</div>
</main> <!-- /container -->
<br><hr>
<footer class="container">
<p>©2019 - Mathias Artur Schulz</p>
</footer>
</body>
</html>