-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
81 lines (71 loc) · 3.34 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
<!DOCTYPE html>
<html lang="es">
<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"> -->
<meta name="viewport" content="initial-scale=1.0">
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/estilos.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" />
<title>Juego Ahorcado - Alura Challenge</title>
</head>
<body>
<header>
<nav>
<img class="logo" src="img/Logo_blanco.png" alt="logotipo alura">
<h1 class="titulo">Juego Ahorcado</h1>
</nav>
</header>
<main>
<!-- MENU PRINCIPAL -->
<section id="menuPrincipal" class="menuPrincipal animate__animated animate__flipInX">
<p class="tituloCentrado">Selecciona una opción:</p>
<div class="botones">
<button onclick="inicioBtn()" class="btn btnInicio">Iniciar Juego</button>
<button onclick="agregarPalabraBtn()" class="btn btnPalabra">Agregar palabra</button>
</div>
</section>
<!-- INICIO JUEGO y PANEL DEL JUEGO -->
<section id="juegoAhorcado" class="juegoAhorcado animate__animated animate__flipInX">
<canvas id = "horca" class = "lienzoAhorcado" width="1054" height="800"></canvas>
<div class="botones">
<button class="btn btnNuevoJuego" onclick="nuevoJuegoBtn()">Nuevo Juego</button>
<button class="btn btnDesistir" onclick="cancelarJuegoBtn()">Salir</button>
</div>
</section>
<!-- AGREGAR PALABRA -->
<section id="agregarPalabra" class="agregarPalabra animate__animated animate__flipInX">
<div class="formulario">
<p class="tituloCentrado">Ingrese una palabra de máximo 8 letras</p>
<input id="inputPalabra" class="palabraInput" type="text" maxlength="8" placeholder="ingresa una palabra">
<div class="botones">
<button class="btn btnGuardar" onclick="guardarPalabra()">Guardar y empezar</button>
<button class="btn btnCerrar" onclick="cerrarPalabraBtn()">Cancelar</button>
</div>
</div>
</section>
<!-- ALERTA MODAL -->
<section id="alertaModal" class="alertaModal overlay1 animate__animated animate__flipInX">
<div class="formulario">
<p id = "tituloAlertaModal" class="tituloCentrado">Titulo del Mensaje</p>
<p id = "msgAlertaModal"> Mensaje de la Alerta </p>
<div class="botones">
<button id= "btnAlertaModal" class="btn btnCerrar" onclick="cerrarModalBtn()">Cerrar</button>
</div>
</div>
</section>
</main>
<footer>
<p>
Osiris Castillo -
<a href="https://github.com/kutzair/encriptador" target="_blank" rel="noopener noreferrer"> <i
class="fa-brands fa-github"></i></a>
</p>
</footer>
<script src="js/ahorcado.js"></script>
<script src="js/logica.js"></script>
<script src="js/graficos.js"></script>
</body>
</html>