-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
89 lines (81 loc) · 3.63 KB
/
index.html
File metadata and controls
89 lines (81 loc) · 3.63 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Normalise -->
<link rel="stylesheet" href="src/css/normalise.css">
<!-- estilo.css -->
<link rel="stylesheet" href="src/css/estilo.css">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="src/bootstrap/css/bootstrap.min.css">
<!-- JS -->
<script src="src/js/jogo.js"></script>
<script>
function iniciarJogo() {
var nivel = document.getElementById('nivel').value;
if ( nivel === '') {
alert('Selecione um nivel para começar o jogo');
return false;
}
window.location.href = 'app.html?' + nivel;
}
</script>
<link rel="icon" href="src/imagens/mosca.png">
<!--[if lt IE 9]>
<script src="src/js/html5shiv.js"></script>
<![endif]-->
<title>Mata musquito</title>
</head>
<!--
Neste caso o onresize está chamando a function ajustaTamanhoPalcoJogo.
Com o onresize é possivel saber as dimenções da janela atualizadas.
-->
<body onresize="ajustaTamanhoPalcoJogo()">
<div class="container">
<div class="row">
<div class="col">
<div class="d-flex justify-content-center">
<img src="src/imagens/game.png" width="45%">
</div>
</div>
</div>
<div class="row">
<div class="col">
<div class="d-flex justify-content-center">
<button type="button" class="btn btn-danger btn-lg" onclick="iniciarJogo()">Iniciar</button>
</div>
</div>
</div>
<div class="row">
<div class="col">
<div class="d-flex justify-content-center">
<div class="mt-2">
<select class="form-control" id="nivel">
<option value="">-- Selecionar o nivel</option>
<option value="normal">Normal</option>
<option value="dificil">Difícil</option>
<option value="sDificio">Super Difícil</option>
</select>
</div>
</div>
<div class="d-flex justify-content-center">
<div class="mt-2">
<div id="instrucao">
<h4>Atenção</h4>
<p>
O objetivo do jogo é matar o máximo de mosquitos sem perder os três corações.
</p>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.14.3/dist/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="src/bootstrap/js/bootstrap.min.js"></script>
</body>
</html>