-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.htm
78 lines (76 loc) · 3.19 KB
/
index.htm
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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="utf-8">
<title>java-quizz - Seu Jogo de Perguntas e Respostas!</title>
<meta name="description" content="Jogo de perguntas e respostas">
<meta name="author" content="Thiago Paiva">
<link rel="stylesheet" href="https://www.w3schools.com/lib/w3.css"/>
<link rel="stylesheet" href="https://www.w3schools.com/lib/w3-theme-grey.css"/>
<link rel="stylesheet" href="css/css.css"/>
<script src="js/pontuacoes.js"></script>
<script src="js/questionador.js"></script>
<script src="js/js.js"></script>
</head>
<body onload="apareca();">
<div id="painel" class="w3-container w3-content">
<header class="w3-blue-grey">
<h1>java-quizz</h1>
</header>
<div id="login" class="jq-box w3-card-8 w3-padding">
<form onsubmit="javascript:return false;">
<input
type="text"
class="nome w3-input w3-border w3-round-large"
maxlength="25"
size="20"
id="txtJogador"
placeholder="Coloque seu nome aqui."/>
<input type="button"
id="btEnviar"
value="Começar!"
class="w3-btn w3-blue-grey"
onclick="clicar();"/>
</form>
</div>
<div id="jogo" class="jq-box w3-card-8 w3-padding" >
<form name="pergunta" onsubmit="return false;">
<fieldset>
<legend id="pergunta">
</legend>
<input class="w3-radio" type="radio" name="alternativa" value="1" />
<span class="w3-validate alterna" id="alt1"></span><br/>
<input class="w3-radio" type="radio" name="alternativa" value="2" />
<span class="w3-validate alterna" id="alt2"></span><br/>
<input class="w3-radio" type="radio" name="alternativa" value="3" />
<span class="w3-validate alterna" id="alt3"></span><br/>
<input type="hidden" id="correta" value="0"/>
<input class="w3-btn w3-blue-grey" type="button" value="Responda!" id="responder" onclick="conferirResposta();"/>
</fieldset>
</form>
</div>
<div id="acabou" class="jq-box w3-card-8 w3-padding w3-center">
<h1 class="w3-animate-fading w3-teal">Fim de jogo, <span id="finalJogador"></span>!</h1>
<span id="finalPontos" class="w3-badge w3-xxxlarge w3-padding w3-blue-grey">42</span>
<h2 class="jq-dstq w3-tag w3-xlarge w3-padding w3-teal">Recordista:<br> <span id="finalRecordista"></span><br><span id="finalRecorde"></span></h2>
<button onclick="exibeRank();" class="w3-btn w3-blue-grey">Melhores Pontuações</button>
<button class="w3-btn w3-red" onclick="location.reload();">Reiniciar</button>
</div>
</div>
<div id="rank" class="jq-box w3-card-8 w3-padding w3-center">
<table class="w3-table">
<thead>
<tr>
<th>Nome</th><th>Pontos</th>
</tr>
</thead>
<tbody id="pontuacoes">
</tbody>
</table>
<button class="w3-btn w3-red" onclick="location.reload();">Reiniciar</button>
</div>
<footer class="w3-container w3-blue-grey">
<p class="w3-large w3-center">Feito por Thiago Paiva</p>
</footer>
</body>
</html>