-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
233 lines (119 loc) · 5.78 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
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
<!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">
<title>El Juego del Ahorcado</title>
<!-- HTML -->
<!-- FUENTES -->
<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=Oswald:wght@200;700&display=swap" rel="stylesheet">
<link href="http://fonts.cdnfonts.com/css/gagalin" rel="stylesheet">
<!-- Iconos -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- Custom Styles -->
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- reglas del juego -->
<div class="info-oculta" id="informacion">
<div class="icono">
<i id="cerrar-info" class="fa fa-times cerrar"></i>
</div>
<p>
1- Primero debes elegir la modalidad que deseas jugar, <b style="color: rgb(246, 246, 246);
font-size: 15px;" > (Aleatorio o Personalizado) </b> <br>
2- Con el Boton <b style="color: rgb(246, 246, 246); font-size: 15px;" > Aleatorio</b>
jugaras con una palabra <b style="color: rgb(246, 246, 246); font-size: 15px;" > aleatoria. </b> <br>
3- Con el campo <b style="color: rgb(246, 246, 246); font-size: 15px;" > Escoger palabra </b>
jugaras con una palabra <b style="color: rgb(246, 246, 246); font-size: 15px;" > personalizada. </b>
que podras agregar con el boton <b style="color: rgb(246, 246, 246); font-size: 15px;" > Agregar.</b> <br>
4- Tienes <b style="color: rgb(246, 246, 246); font-size: 15px;" > 8 Vidas </b> para lograr adivinar letra por letra la palabra dada.
<br>
5- A continuacion encontraras un campo para ingresar solo 1 letra a la vez. <br>
6- No se admiten numeros, signos de puntuacion ni caracteres especiales.
<br>
7- Con <b style="color: rgb(9, 63, 9); font-size: 30px;" > ☑ </b>
podras verificar si la letra que has introducido en el campo corresponde
a una letra de la palabra <b style="color: rgb(9, 63, 9); font-size: 20px;"
>OCULTA.</b><br>s
8- Si se te acaban las vidas antes de lograr adivinar la palabra, seras eliminado.
<br>
9- Con <b style="color: rgb(9, 63, 9); font-size: 35px;" >↻</b>
podras <b style="color: rgb(9, 63, 9); font-size: 20px;"
>RECARGAR LA PAGINA</b>, reiniciar el juego y elegir tu modalidad de juego.
<P class="nombre">
By: Luis Fernado Cordero Torres © 2021
</P>
</p>
</div>
<!-- HEADER <h1>El Juego del Ahorcado</h1> -->
<header class="encabezado">
<img src="violeta.png" alt="">
<button id="reglas" class="reglas" type="submit">Reglas</button>
<button class="btn-modos alea" id="d">Aleatorio</button>
<div class="personal">
<button class="btn-modos agregar" id="y">Agregar</button>
<input onkeypress="return soloLetras(event)" id="personalizado" class="modo" placeholder="Escoger Palabra" maxlength="12" type="password" >
</div>
</header>
<canvas class="ahorcado" id="lienzo" width="300px" height="350px">
</canvas>
<!-- Contenedor principal -->
<div class="contenedor" id="contenedor">
<!-- Campos y Botones -->
<div class="campos">
<div class="campo-letra" >
<i class="fa fa-question interrogacion"></i>
<input onkeypress="return soloLetras(event)" class="texto" type="text" maxlength="1" name="" id="letra" placeholder="Escriba aqui"/>
</div>
<div class="btn-campos" >
<button class="boton-verificar ab" type="button" name="" id="boton" >
<i class="fa fa-check-square i-btn"></i>
</button>
<button class="boton-verificar-2" type="button" name="" id="btn" >
<i class="fa fa-refresh i-btn"></i>
</button>
</div>
</div>
<!-- Letras verificadas del usuario -->
<div class="contenido-frase" id="contenido-frase">
<h3 id="frase">
</h3>
<div class="contenido-vidas" >
<div class="vidas" id="vida">
</div>
<div class="hearts">
<i id="vida-uno" class="fa fa-heartbeat corazones"></i>
<i id="vida-dos" class="fa fa-heartbeat corazones"></i>
<i id="vida-tres" class="fa fa-heartbeat corazones"></i>
<i id="vida-cuatro" class="fa fa-heartbeat corazones"></i>
<i id="vida-cinco" class="fa fa-heartbeat corazones"></i>
<i id="vida-seis" class="fa fa-heartbeat corazones"></i>
<i id="vida-siete" class="fa fa-heartbeat corazones"></i>
<i id="vida-ocho" class="fa fa-heartbeat corazones"></i>
</div>
</div>
</div>
<!-- mensaje de ganar o perder -->
<div class="result" >
<h3 id="frase2">
</h3>
<div id="resultados">
</div>
<i id="ganar" class="fa fa-star lo"></i>
<i id="perder" class="fa fa-user-times lo"></i>
</div>
</div> <!-- FINAL DE CONTENEDOR PRINCIPAL -->
<!--
<canvas class="ahorcado" id="lienzo" width="300px" height="350px">
</canvas> -->
<!-- Scripts -->
<script src="main.js"></script>
<script src="canva.js"></script>
<script src="validacion.js"></script>
<script src="/imprimir.js"></script>
</body>
</html>