-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcom-10-pares.html
324 lines (289 loc) · 18.1 KB
/
com-10-pares.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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<!-- Bootstrap -->
<link rel="stylesheet" type="text/css" href="assets/node_modules/bootstrap/compiler/bootstrap.css">
<!-- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous"> -->
<!-- Style CSS -->
<link rel="stylesheet" type="text/css" href="assets/style.css">
<!-- Font Awesome -->
<link rel="stylesheet" href="assets/node_modules/@fortawesome/fontawesome-free/css/fontawesome.css">
<link rel="stylesheet" href="assets/node_modules/@fortawesome/fontawesome-free/css/brands.css">
<link rel="stylesheet" href="assets/node_modules/@fortawesome/fontawesome-free/css/solid.css">
<!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/fontawesome.min.css"
integrity="sha256-CuUPKpitgFmSNQuPDL5cEfPOOJT/+bwUlhfumDJ9CI4=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/brands.min.css"
integrity="sha256-wfbbsQFYKnizQi/WLPXS3wVDu0Dpi2yUQpZBDsb2H1s=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/solid.min.css"
integrity="sha256-pIAzc/BIIo/hSvtNEDIiMTBtR9EfK3COmnH2pt8cPDY=" crossorigin="anonymous" /> -->
<title>Jogo da Memória - 10 Pares</title>
<link rel="icon" type="image/svg+xml" href="logo-default.svg" />
<meta name="description" content="Atividade acadêmica para exercitar conceitos da disciplina Design de Games">
<meta name="robots" content="index, follow">
<meta name="keywords"
content="Jogo, memória, game, memory, acadêmico, faculdade, Design, Games, atividade, html,
javascript, bootstrap, npm, sass, cards">
<meta name="author" content="Bryan Lima">
</head>
<body onload="createGame()">
<!-- NAVBAR -->
<nav class="navbar navbar-expand-md navbar-dark bg-black">
<!-- Nome/Logo -->
<a class="navbar-brand d-md-none mb-0 mx-auto pirulenrg" href="index.html">Jogo da Memória <img src="logo-default.svg" id="logo-navbar-brand"></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSite" aria-controls="navbarSite" aria-expanded="false" aria-label="Alterna navegação">
<span class="navbar-toggler-icon personalizado"></span>
</button>
<!-- Menu colapsado -->
<div class="collapse navbar-collapse" id="navbarSite">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link ml-3" href="index.html"><i class="fas fa-home"></i> Home <span class="sr-only">(página atual)</span></a>
</li>
<li class="nav-item dropdown active">
<a class="nav-link dropdown-toggle ml-3" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="iconify" data-icon="entypo:game-controller" data-width="17px" data-inline="true"></span> Jogos
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item active" href="com-10-pares.html"><span class="iconify" data-icon="vs-question-square" data-width="16px" data-inline="true"></span> Jogo da Memória - 10 pares</a>
<a class="dropdown-item" href="com-15-pares.html"><span class="iconify" data-icon="vs-question-square" data-width="16px" data-inline="true"></span> Jogo da Memória - 15 pares</a>
</div>
</li>
<li class="nav-item">
<a class="nav-link ml-3" href="sobre.html"><i class="fas fa-info-circle"></i> Sobre</a>
</li>
<li class="nav-item">
<!-- Link para GitHub Repo que é exibido quando dimensão da tela é menor que md -->
<a class="nav-link ml-3 d-block d-md-none" href="https://github.com/bryan-lima/memory-game"><i class="fab fa-github"></i> GitHub Repo</a>
</li>
</ul>
</div>
<!-- Link para GitHub Repo que é exibido quando dimensão da tela é igual ou maior que md -->
<a class="btn btn-light d-none d-md-block mb-0 mr-auto" href="https://github.com/bryan-lima/memory-game"><i class="fab fa-github"></i> GitHub Repo</a>
</nav>
<!-- CONTEÚDO PRINCIPAL -->
<div class="container-fluid d-none d-md-block">
<!-- Logo/Título -->
<div class="row bg-gray-dark text-white">
<div class="col-0.5 mb-3 mt-2 mr-0 ml-4 p-0">
<img src="logo-default.svg" height="52" width="52">
</div>
<div class="col my-auto ml-0 p-0">
<h1 class="lead-pirulenrg mb-0">Jogo da</h1>
<h1 class="lead-pirulenrg">Memória</h1>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row mt-2">
<div class="col"></div>
<div class="col-5.5 text-center">
<h1 class="d-none d-md-block mb-0">Jogo com 10 pares</h1>
<h2 class="d-block d-md-none mb-0">Jogo com 10 pares</h2>
<hr class="mt-2 mb-2 bg-gray-light">
<h3 class="d-none d-md-block">Personagens Caverna do Dragão</h3>
<h5 class="d-block d-md-none">Personagens Caverna do Dragão</h5>
</div>
<div class="col"></div>
</div>
<!-- Placar -->
<div class="row justify-content-center mt-2 mb-3">
<div class="container-score">
<div class="score btn-group" role="group">
<button class="btn btn-outline-warning" onclick="restartGame();" id="btn-restart" alt="Reiniciar jogo" title="Restart"><i class="fas fa-sync-alt" id="icon-restart"></i> Restart</button>
</div>
<div class="score btn-group" role="group">
<button type="button" class="btn btn-dark" id="txt-score" alt="Placar do jogo" title="Score">Score:</button>
<button type="button" class="btn btn-primary" id="score" alt="Placar do jogo" title="Score">0</button>
</div>
</div>
</div>
<!-- Jogo da Memória -->
<section class="container-memory-game-10-pairs mb-2">
<!-- Cards -->
<div class="memory-card card-10-pairs" data-name="1">
<img class="front-face" src="assets/resources/10-pares/1.jpg" alt="Card 1">
<img class="back-face" src="assets/resources/10-pares/question.svg" alt="Memory Card">
</div>
<div class="memory-card card-10-pairs" data-name="1">
<img class="front-face" src="assets/resources/10-pares/1.jpg" alt="Card 1">
<img class="back-face" src="assets/resources/10-pares/question.svg" alt="Memory Card">
</div>
<div class="memory-card card-10-pairs" data-name="2">
<img class="front-face" src="assets/resources/10-pares/2.jpg" alt="Card 2">
<img class="back-face" src="assets/resources/10-pares/question.svg" alt="Memory Card">
</div>
<div class="memory-card card-10-pairs" data-name="2">
<img class="front-face" src="assets/resources/10-pares/2.jpg" alt="Card 2">
<img class="back-face" src="assets/resources/10-pares/question.svg" alt="Memory Card">
</div>
<div class="memory-card card-10-pairs" data-name="3">
<img class="front-face" src="assets/resources/10-pares/3.jpg" alt="Card 3">
<img class="back-face" src="assets/resources/10-pares/question.svg" alt="Memory Card">
</div>
<div class="memory-card card-10-pairs" data-name="3">
<img class="front-face" src="assets/resources/10-pares/3.jpg" alt="Card 3">
<img class="back-face" src="assets/resources/10-pares/question.svg" alt="Memory Card">
</div>
<div class="memory-card card-10-pairs" data-name="4">
<img class="front-face" src="assets/resources/10-pares/4.jpg" alt="Card 4">
<img class="back-face" src="assets/resources/10-pares/question.svg" alt="Memory Card">
</div>
<div class="memory-card card-10-pairs" data-name="4">
<img class="front-face" src="assets/resources/10-pares/4.jpg" alt="Card 4">
<img class="back-face" src="assets/resources/10-pares/question.svg" alt="Memory Card">
</div>
<div class="memory-card card-10-pairs" data-name="5">
<img class="front-face" src="assets/resources/10-pares/5.jpg" alt="Card 5">
<img class="back-face" src="assets/resources/10-pares/question.svg" alt="Memory Card">
</div>
<div class="memory-card card-10-pairs" data-name="5">
<img class="front-face" src="assets/resources/10-pares/5.jpg" alt="Card 5">
<img class="back-face" src="assets/resources/10-pares/question.svg" alt="Memory Card">
</div>
<div class="memory-card card-10-pairs" data-name="6">
<img class="front-face" src="assets/resources/10-pares/6.jpg" alt="Card 6">
<img class="back-face" src="assets/resources/10-pares/question.svg" alt="Memory Card">
</div>
<div class="memory-card card-10-pairs" data-name="6">
<img class="front-face" src="assets/resources/10-pares/6.jpg" alt="Card 6">
<img class="back-face" src="assets/resources/10-pares/question.svg" alt="Memory Card">
</div>
<div class="memory-card card-10-pairs" data-name="7">
<img class="front-face" src="assets/resources/10-pares/7.jpg" alt="Card 7">
<img class="back-face" src="assets/resources/10-pares/question.svg" alt="Memory Card">
</div>
<div class="memory-card card-10-pairs" data-name="7">
<img class="front-face" src="assets/resources/10-pares/7.jpg" alt="Card 7">
<img class="back-face" src="assets/resources/10-pares/question.svg" alt="Memory Card">
</div>
<div class="memory-card card-10-pairs" data-name="8">
<img class="front-face" src="assets/resources/10-pares/8.jpg" alt="Card 8">
<img class="back-face" src="assets/resources/10-pares/question.svg" alt="Memory Card">
</div>
<div class="memory-card card-10-pairs" data-name="8">
<img class="front-face" src="assets/resources/10-pares/8.jpg" alt="Card 8">
<img class="back-face" src="assets/resources/10-pares/question.svg" alt="Memory Card">
</div>
<div class="memory-card card-10-pairs" data-name="9">
<img class="front-face" src="assets/resources/10-pares/9.jpg" alt="Card 9">
<img class="back-face" src="assets/resources/10-pares/question.svg" alt="Memory Card">
</div>
<div class="memory-card card-10-pairs" data-name="9">
<img class="front-face" src="assets/resources/10-pares/9.jpg" alt="Card 9">
<img class="back-face" src="assets/resources/10-pares/question.svg" alt="Memory Card">
</div>
<div class="memory-card card-10-pairs" data-name="10">
<img class="front-face" src="assets/resources/10-pares/10.jpg" alt="Card 10">
<img class="back-face" src="assets/resources/10-pares/question.svg" alt="Memory Card">
</div>
<div class="memory-card card-10-pairs" data-name="10">
<img class="front-face" src="assets/resources/10-pares/10.jpg" alt="Card 10">
<img class="back-face" src="assets/resources/10-pares/question.svg" alt="Memory Card">
</div>
</section>
</div>
<!-- RODAPÉ -->
<div class="container-fluid">
<div class="row bg-gray-dark">
<!-- Logo/Nome -->
<div class="col-sm-12 col-md-4 mb-2 my-auto text-white">
<div class="row mt-4 mb-1 justify-content-center">
<div class="col-5.5">
<img class="float-left" src="logo-gray.svg" height="75" width="61">
</div>
<div class="col-6.5 my-2 ml-1">
<h1 class="lead2-pirulenrg text-gray-light">Jogo da</h1>
<h1 class="lead2-pirulenrg text-gray-light">Memória</h1>
</div>
</div>
</div>
<!-- Navbar vertical -->
<div class="col-sm-12 col-md-4 mt-0 mb-2 text-white">
<hr class="bg-gray-light">
<h6 class="lead"><strong>Menu</strong></h6>
<nav class="nav flex-column">
<a class="nav-link text-light" href="index.html"><i class="fas fa-home"></i> Home</a>
<a class="nav-link dropdown-toggle text-light" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="iconify" data-icon="entypo:game-controller" data-width="17px" data-inline="true"></span> Jogos
</a>
<div class="dropdown-menu active" aria-labelledby="navbarDropdown">
<a class="dropdown-item active" href="com-10-pares.html"><span class="iconify" data-icon="vs-question-square" data-width="16px" data-inline="true"></span> Jogo da Memória - 10 pares</a>
<a class="dropdown-item" href="com-15-pares.html"><span class="iconify" data-icon="vs-question-square" data-width="16px" data-inline="true"></span> Jogo da Memória - 15 pares</a>
</div>
<a class="nav-link text-light" href="sobre.html"><i class="fas fa-info-circle"></i> Sobre</a>
</nav>
</div>
<!-- Repositórios GitHub -->
<div class="col-sm-12 col-md-4 mt-0 mb-2 text-white">
<hr class="bg-gray-light">
<h6 class="lead"><strong>GitHub</strong></h6>
<nav class="nav flex-column">
<a class="nav-link text-light" href="https://github.com/bryan-lima"><i class="fab fa-github"></i> Perfil</a>
<a class="nav-link text-light" href="https://github.com/bryan-lima/memory-game"><i class="fab fa-github"></i> Projeto</a>
</nav>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row bg-black">
<footer class="col-12">
<p class="text-center mt-3 text-white">
© 2020 · Desenvolvido por Bryan Lima
</p>
</footer>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="modal-end-game" tabindex="-1" role="dialog">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<!-- Cabeçalho modal -->
<div class="modal-header">
<h4 class="modal-title">Fim de Jogo!</h4>
<button type="button" class="close" data-dismiss="modal">
<span>x</span>
</button>
</div>
<!-- Corpo modal -->
<div class="modal-body">
<div class="container-fluid">
<div class="row">
<div class="col">
<div class="btn-group" role="group">
<button type="button" class="btn btn-dark" id="modal-end-game-txt-score" alt="Placar do jogo" title="Score">Seu Score:</button>
<button type="button" class="btn btn-primary" id="modal-end-game-score" alt="Placar do jogo" title="Score">0</button>
</div>
</div>
</div>
</div>
</div>
<!-- Rodapé modal -->
<div class="modal-footer">
<button type="button" class="btn btn-outline-warning" data-dismiss="modal" onclick="restartGame();" id="modal-btn-restart"><i class="fas fa-sync-alt" id="modal-icon-restart"></i> Restart Game</button>
<button type="button" class="btn btn-outline-dark" data-dismiss="modal">Fechar</button>
</div>
</div>
</div>
</div>
<!-- Scripts -->
<script type="text/javascript" src="assets/node_modules/jquery/dist/jquery.min.js"></script>
<!-- <script src="https://code.jquery.com/jquery-3.4.1.slim.min.js"
integrity="sha256-pasqAKBDmFT4eHoN2ndd6lN370kFiGUFyTiUHWhU7k8=" crossorigin="anonymous"></script> -->
<script src="assets/node_modules/popper.js/dist/umd/popper.min.js"></script>
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"
integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script> -->
<script src="assets/node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"
integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script> -->
<script src="assets/icons/iconify.min.js"></script>
<!-- <script src="https://code.iconify.design/1/1.0.5/iconify.min.js"></script> -->
<script src="assets/script.js"></script>
</body>
</html>