-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathindex.html
More file actions
115 lines (108 loc) · 4.14 KB
/
index.html
File metadata and controls
115 lines (108 loc) · 4.14 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
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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="https://code.responsivevoice.org/responsivevoice.js"></script>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@700&family=Inter:wght@400;700&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="style.css" />
<title>JS Game</title>
</head>
<body>
<div id="background-parallax"></div>
<div class="container">
<div class="container__conteudo">
<div class="container__informacoes">
<div class="highscore-badge">
🏆 Record: <span id="record"></span>
</div>
<div class="container__controles">
<select
id="select-idioma"
class="container__select-idioma"
onchange="mudarIdioma(this.value)"
>
<option value="pt-BR">🇧🇷 Português</option>
<option value="en-US">🇺🇸 English</option>
</select>
<select
id="select-dificuldade"
class="container__select-dificuldade"
onchange="mudarDificuldade(this.value)"
>
<option value="10">🟢 Fácil (1-10)</option>
<option value="50">🟡 Médio (1-50)</option>
<option value="100">🔴 Difícil (1-100)</option>
</select>
</div>
<div class="container__texto">
<h1></h1>
<p class="texto__paragrafo"></p>
</div>
<input
type="number"
min="1"
max="10"
id="input-numero"
class="container__input"
/>
<div class="chute container__botoes">
<button
onclick="verificarChute()"
id="btn-chutar"
class="container__botao"
></button>
<button
onclick="reiniciarJogo()"
id="reiniciar"
class="container__botao"
disabled
></button>
<a id="share-twitter" class="container__botao" style="display: none;" target="_blank">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" ><path d="M24 4.557c-.883.392-1.832.656-2.828.775 1.017-.609 1.798-1.574 2.165-2.724-.951.564-2.005.974-3.127 1.195-.897-.957-2.178-1.555-3.594-1.555-3.179 0-5.515 2.966-4.797 6.045-4.091-.205-7.719-2.165-10.148-5.144-1.29 2.213-.669 5.108 1.523 6.574-.806-.026-1.566-.247-2.229-.616v.064c0 2.298 1.634 4.214 3.791 4.649-.69.188-1.452.23-2.224.084.626 1.956 2.444 3.379 4.6 3.419-2.07 1.623-4.678 2.348-7.29 2.04 2.179 1.397 4.768 2.212 7.548 2.212 9.142 0 14.307-7.721 13.995-14.646.962-.695 1.797-1.562 2.457-2.549z"/></svg>
<span>Share</span>
</a>
</div>
<button
onclick="toggleModalCreditos()"
class="container__botao-creditos"
>
Créditos
</button>
</div>
<img
src="./img/ia.png"
alt="Uma pessoa olhando para a esquerda"
class="container__imagem-pessoa"
/>
</div>
</div>
<!-- Modal de Créditos -->
<div id="modal-creditos" class="modal">
<div class="modal-conteudo">
<span class="fechar" onclick="toggleModalCreditos()">×</span>
<h2>Créditos</h2>
<p>Obrigado a todos que tornaram este projeto possível!</p>
<ul class="lista-creditos">
<li><strong>Adalberto Brant</strong> (Mantenedor)</li>
<li>Comunidade Open Source</li>
<li>Contribuidores do Hacktoberfest 2025</li>
</ul>
</div>
</div>
<script src="locale.js" defer></script>
<script src="app.js" defer></script>
<script>
function mudarIdioma(novoIdioma) {
idiomaAtual = novoIdioma;
localStorage.setItem("idioma", novoIdioma);
exibirMensagemInicial();
}
</script>
</body>
</html>