-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
110 lines (101 loc) · 3.28 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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Challenge ONE - Ahorcado</title>
<!-- Link a google fonts -->
<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=Inter&display=swap" rel="stylesheet">
<!-- CSS -->
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="header">
<div id="logo">
<img src="img/logo.png" alt="Logo ALURA">
</div>
<div id="titulo">
<h1>Ahorcado</h1>
</div>
</div>
<div id="inicio">
<div>
<button class="btn-iniciar" id="iniciar-juego">Iniciar juego</button>
</div>
<div>
<button class="btn" id="nueva-palabra" style="width: 17.5rem;">Agregar palabra</button>
</div>
</div>
<div id="agregar-palabra" class="display-none">
<div class="input">
<input class="text-input" type="text" id="input-nueva-palabra" placeholder="Ingrese una palabra" maxlength="8">
</div>
<div>
<div class="info">
<img src="img/Info.png" style="width: 1rem; height: 1rem;">
<p>Máx. de 8 letras, SIN espacios</p>
</div>
<div>
<button class="btn btn-bg" style="width: 20.75rem; margin: 1rem;" id="guardar">Guardar y empezar</button>
<button class="btn" id="cancelar" style="width: 20.75rem; margin: 1rem;">Cancelar</button>
</div>
</div>
</div>
<div id="juego" class="display-none">
<canvas id="ahorcado" width="600" height="400"></canvas>
<div class="word">
<div class="letter">
<p>P</p>
<img src="img/underline.png">
</div>
<div class="letter">
<p>E</p>
<img src="img/underline.png">
</div>
<div class="letter">
<p>R</p>
<img src="img/underline.png">
</div>
<div class="letter">
<p>D</p>
<img src="img/underline.png">
</div>
<div class="letter">
<p>I</p>
<img src="img/underline.png">
</div>
<div class="letter">
<p>S</p>
<img src="img/underline.png">
</div>
<div class="letter">
<p>T</p>
<img src="img/underline.png">
</div>
<div class="letter">
<p>E</p>
<img src="img/underline.png">
</div>
</div>
<div class="other">
</div>
<div>
<p class="advertencias"></p>
<input class="mobile" type="text" maxlength="1" placeholder="letra">
</div>
<div>
<button class="btn btn-bg" style="width: 20.75rem; margin: 1rem;" id="nuevoJuego">Nuevo juego</button>
<button class="btn" id="desistir" style="width: 20.75rem; margin: 1rem;">Desistir</button>
</div>
</div>
<footer>
<p>Todos los derechos reservados | © Ramiro Porta | 2022</p>
</footer>
<!-- JAVASCRIPT -->
<script type="text/javascript" src="canvas.js"></script>
<script type="text/javascript" src="ahorcado.js"></script>
</body>
</html>