-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
59 lines (56 loc) · 2 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
<!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.0">
<title>Ahorcado</title>
<link rel="stylesheet" href="style.css"/>
</head>
<body>
<header>
<h1>JUEGO DEL AHORCADO</h1>
<p>INTRODUSCA UNA LETRA... EN MAYUSCULA.</p>
</header>
<br>
<div class="box">
<input type="text" maxlength="1" id="letra" placeholder="Ejem: A, B, C... ETC. " onkeyup="this.value=this.value.toUpperCase();" required> <button class="btn" id="evaluar" >Probar letra</button>
<p id="muestra"></p>
</div>
<br>
<div class="box">
<label for=" id: muestra">Letras erradas: </label>
</p><p id="errados"></p>
</div>
<br>
<center>
<div id="img"></div>
</center>
<div class="box" id="añadir">
<p>Ingrese una palabra en MAYUSCULAS y sin espacios</p>
<input type="text" id="nuevaP" placeholder="Ingrese una nuva palabra " maxlength="12" onkeyup="this.value=this.value.toUpperCase();" required> <button class="btn" id="btnnuevo">Añadir nueva palabra</button>
<p id="verificado"></p>
</div>
<script src="coding.js"></script>
<div id="pantallade_inicio">
<h3>Este es el Juego del Ahorcado.</h3>
<h4>punse el boton para comenzar</h4>
<button class="btn" onclick="pantalladeinicio()" >Iniciar Juego</button>
</div>
<div id="ganador">
<p>Felicitaciones</p>
<p>Has ganado!!!</p>
<button class="btn" id="evaluar3" onclick="reiniciar()">Juegar de nuevo</button>
</div>
<div id="perdiste">
<p>Game over</p>
<p>Vuelve a intentar</p>
<button class="btn" id="evaluar2" onclick="reiniciar()">Juegar de nuevo</button>
</div>
<footer>
<div class="grupo-2">
<small>©2022 <b>Russell N.S.R.</b> - Todos los derechos Reservados.</small>
</div>
</footer>
</body>
</html>