-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
143 lines (118 loc) · 8.97 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
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<!DOCTYPE html>
<html lang="en">
<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>GD | Painel do Mestre</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KyZXEAg3QhqLMpG8r+8fhAXLRk2vvoC2f3B09zVXn8CA5QIVfZOJ3BCsw2P0p/We" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.4/css/all.css">
<link rel="stylesheet" href="./src/assets/css/style.css">
</head>
<body>
<div class="container-fluid">
<div class="row">
<div id="areaDoMapa" class="col-9 p-0 m-0">
<canvas class="m-0" id="mapa" width="200" height="200"></canvas>
<canvas class="m-0" id="tabuleiro" width="200" height="200"></canvas>
<canvas class="m-0" id="jogadores" width="200" height="200"></canvas>
</div>
<div id="menu" class="col-3">
<div class="accordion accordion-flush" id="accordionMenuDoMestre">
<div class="accordion-item">
<h2 class="accordion-header">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#menuMapa" aria-expanded="false" aria-controls="flush-collapseOne">
<i class="far fa-map m-2"></i> Mapa
</button>
</h2>
<div id="menuMapa" class="accordion-collapse collapse" data-bs-parent="#accordionMenuDoMestre">
<div class="accordion-body">
<select id="seletorDeMapas" name="fundo" class="form-select mb-2" onchange="mudarMapa()">
<option value="" selected disabled>Selecione um mapa</option>
<option value="src/assets/fundo/01.jpg" >01</option>
<option value="src/assets/fundo/02.jpg">02</option>
</select>
<button class="btn btn-outline-primary mr-1 mb-1" onclick="mapaParaEsquerda()"><i class="far fa-caret-square-left"></i></button>
<button class="btn btn-outline-primary mr-1 mb-1" onclick="mapaParaDireita()"><i class="far fa-caret-square-right"></i></button>
<button class="btn btn-outline-primary mr-1 mb-1" onclick="mapaParaCima()"><i class="far fa-caret-square-up"></i></button>
<button class="btn btn-outline-primary mr-1 mb-1" onclick="mapaParaBaixo()"><i class="far fa-caret-square-down"></i></button>
<button class="btn btn-outline-primary mr-1 mb-1" onclick="mapaMenosZoom()"><i class="far fa-minus-square"></i></button>
<button class="btn btn-outline-primary mr-1 mb-1" onclick="mapaMaisZoom()"><i class="far fa-plus-square"></i></button>
<button class="btn btn-outline-primary mr-1 mb-1" onclick="rotacionarMapa()"><i class="fas fa-sync-alt"></i></button>
</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#menuTabuleiro" aria-expanded="false" aria-controls="flush-collapseOne">
<i class="fas fa-chess-board m-2"></i> Tabuleiro
</button>
</h2>
<div id="menuTabuleiro" class="accordion-collapse collapse" data-bs-parent="#accordionMenuDoMestre">
<div class="accordion-body">
<button class="btn btn-outline-primary mr-1 mb-1" onclick="aumentaQuadrado()"><i class="fas fa-expand-arrows-alt"></i></button>
<button class="btn btn-outline-primary mr-1 mb-1" onclick="diminuirQuadrado()"><i class="fas fa-compress-arrows-alt"></i></button>
</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#menuJogadores" aria-expanded="false" aria-controls="flush-collapseOne">
<i class="fas fa-chess-pawn m-2"></i> Jogador
</button>
</h2>
<div id="menuJogadores" class="accordion-collapse collapse" data-bs-parent="#accordionMenuDoMestre">
<div class="accordion-body">
<select id="seletorJogadores" name="jogador" class="form-select mb-2" onchange="selecionaJogador()">
</select>
<button class="btn btn-outline-primary mr-1 mb-1" onclick="jogadorParaEsquerta()"><i class="fa fa-caret-left"></i></button>
<button class="btn btn-outline-primary mr-1 mb-1" onclick="jogadorParaDireita()"><i class="fa fa-caret-right"></i></button>
<button class="btn btn-outline-primary mr-1 mb-1" onclick="jogadorParaBaixo()"><i class="fa fa-caret-down"></i></button>
<button class="btn btn-outline-primary mr-1 mb-1" onclick="jogadorParaCima()"><i class="fa fa-caret-up"></i></button>
<label for="fundos">skin</label>
<select id="seletorSkin" name="skin" class="form-select mb-2" onchange="mudarSkin()">
<option value="src/assets/totens/m01.png">Afogado</option>
<option value="src/assets/totens/01.png" selected>Aventureiro 01</option>
<option value="src/assets/totens/cavaleiro_01.png">Cavaleiro 01</option>
<option value="src/assets/totens/tabaxi_01.png">Menina Gato</option>
</select>
<button class="btn btn-outline-primary mr-1 mb-1" onclick="novoJogador()"><i class="fas fa-gamepad"></i></button>
<button class="btn btn-outline-primary mr-1 mb-1" onclick="deletaJogador()"><i class="fas fa-ghost"></i></button>
<input id="checkPodeMoverComMouse" type="checkbox" name="checkPodeMoverComMouse" value="false" onclick="permiteMoverComMouse()">
<label for="checkPodeMoverComMouse"> Pode Move Com Mouse</label><br>
</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#menuChat" aria-expanded="false" aria-controls="flush-collapseOne">
<i class="far fa-comments m-2"></i> Chat
</button>
</h2>
<div id="menuChat" class="accordion-collapse collapse" data-bs-parent="#accordionMenuDoMestre">
<div class="accordion-body">
<p>
<label for="nome">Seu nome: </label>
<input id="nome" type="text" placeholder="Seu nome"/>
</p>
<p>
<label for="input">Sua mensagem: </label>
<input id="input" type="text" placeholder="Sua mensagem"/>
</p>
<hr>
<div id="chat"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="./src/js/main.js" ></script>
<script src="./src/js/chat.js" ></script>
<script src="./src/js/mapa.js" ></script>
<script src="./src/js/tabuleiro.js" ></script>
<script src="./src/js/jogadores.js" ></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-U1DAWAznBHeqEIlVSCgzq+c9gqGAJn5c/t99JyeKa9xxaYpSvHU5awsuZVVFIhvj" crossorigin="anonymous"></script>
</body>
</html>