-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
159 lines (155 loc) · 6.79 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
<!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" />
<title>Juego del ahorcado</title>
<link rel="stylesheet" href="../Juego-ahoracado/reset.css" />
<link rel="stylesheet" href="../Juego-ahoracado/normalize.css" />
<link rel="stylesheet" href="../Juego-ahoracado/contenedor.css" />
<link rel="stylesheet" href="../Juego-ahoracado/assets/css/cabecera/cabecera.css" />
<link rel="stylesheet" href="../Juego-ahoracado/assets/css/cabecera/cabecera-logo.css" />
<link rel="stylesheet" href="../Juego-ahoracado/assets/css/main/main.css"/>
<link rel="stylesheet" href="../Juego-ahoracado/assets/css/main/main-button-home.css" />
<link rel="stylesheet" href="../Juego-ahoracado/assets/css/main/main-button-add-word.css" />
<link rel="stylesheet" href="../Juego-ahoracado/assets/css/agregar-nueva-palabra/nueva-palabra.css"/>
<link rel="stylesheet" href="../Juego-ahoracado/assets/css/agregar-nueva-palabra/nueva-palabra-input.css"/>
<link rel="stylesheet" href="../Juego-ahoracado/assets/css/Alert/alert-container.css" />
<link rel="stylesheet" href="../Juego-ahoracado/assets/css/Alert/alert-signal.css" />
<link rel="stylesheet" href="../Juego-ahoracado/assets/css/btn/btn.css" />
<link rel="stylesheet" href="../Juego-ahoracado/assets/css/btn/btn-link.css" />
<link rel="stylesheet" href="../Juego-ahoracado/assets/css/canvas-oculto/canvas-oculto.css" />
<link rel="stylesheet" href="../Juego-ahoracado/assets/css/canvas-oculto/canvas-oculto-field.css"/>
<link rel="stylesheet" href="../Juego-ahoracado/assets/css/canvas-oculto/canvas-oculto-container.css"/>
<link rel="stylesheet" href="../Juego-ahoracado/assets/css/footer/footer.css" />
<link rel="stylesheet" href="../Juego-ahoracado/assets/css/footer/footer-link.css" />
</head>
<body class="contenedor">
<header class="cabecera">
<img class="cabecera__logo" src="../Juego-ahoracado/assets/Img/logo.png" alt="Logo de alura con letra a"/>
</header>
<!----------------PAGINA INICIAL----------------->
<section class="main" id="btn-home">
<a class="main__link" href="#input-lector">
<button class="main__button home" id="btn-inicio" onclick="iniciarJuego()">Iniciar Juego</button></a>
<a class="main__link" href="#nueva-palabra"><button class="main__button home__add__word" id="btn-palabra-nueva" onclick="irPalabra()">Agregar nueva palabra</button></a>
</section>
<!----------------PAGINA AGREGAR PALABRA----------------->
<section class="nuevaPalabra" id="nueva-palabra">
<div class="nuevaPalabra__contenedor">
<input
class="nuevaPalabra__input"
placeholder="Ingrese una palabra"
type="text"
name="input-texto"
id="palabra"
maxlength="8"
size="14"
/>
</div>
<div>
<div class="alert">
<div class="alert__container" title="Max. de 8 letras">
<img
class="alert__signal"
src="../Juego-ahoracado/assets/Img/señal-alerta.png"
alt="señal de alerta"/>
<h2>Max. de 8 letras</h2>
</div>
</div>
<nuevaPalabra class="btn">
<a class="btn__link" href="#input-lector"
><button
class="btn__button primero"
id="btn-agregar-palabra"
onclick="addIrJuego()"
onclick="iniciarJuego()"
>
Guardar y empezar
</button></a
>
<a class="btn__link" href="#btn-home"
><button
class="btn__button segundo"
id="btn-cancelar"
onclick="irInicio()"
>
Cancelar
</button></a>
</div>
</nuevaPalabra>
</section>
<!----------------PAGINA JUEGO AHORCADO----------------->
<section class="canvasOculto" id="aparece-horca">
<div class="canvasOculto__container" id="input-lector" type="text">
<canvas class="CanvasOculto__field" id="horca" width="600" height="400">
</canvas>
</div>
<div class="btn" id="btn-nueva-palabra">
<a class="btn__link">
<button
class="btn__button primero"
id="btn-iniciar"
type="submit"
value="iniciar-juego"
onclick="reinicio()"
>
iniciar-juego
</button></a
>
<a class="btn__link" href="#btn-home">
<button
class="btn__button segundo"
id="btn-devolver"
onclick="irInicio()"
>
desistir
</button></a
>
</div>
</section>
<script src="../Juego-ahoracado/index.js"></script>
<script src="../Juego-ahoracado/canvas.js"></script>
</body>
<footer class="footer">
<p class="footer__parrafo">
© Copyright Juego del ahorcado ♪ Jairo Orozco ♪ 2022
</p>
<a
class="footer__link"
href="https://www.linkedin.com/in/jairo-orozco-5a8711b4"
target="_blank"
rel="noopener noreferrer"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="currentColor"
viewBox="0 0 16 16"
>
<path
d="M0 1.146C0 .513.526 0 1.175 0h13.65C15.474 0 16 .513 16 1.146v13.708c0 .633-.526 1.146-1.175 1.146H1.175C.526 16 0 15.487 0 14.854V1.146zm4.943 12.248V6.169H2.542v7.225h2.401zm-1.2-8.212c.837 0 1.358-.554 1.358-1.248-.015-.709-.52-1.248-1.342-1.248-.822 0-1.359.54-1.359 1.248 0 .694.521 1.248 1.327 1.248h.016zm4.908 8.212V9.359c0-.216.016-.432.08-.586.173-.431.568-.878 1.232-.878.869 0 1.216.662 1.216 1.634v3.865h2.401V9.25c0-2.22-1.184-3.252-2.764-3.252-1.274 0-1.845.7-2.165 1.193v.025h-.016a5.54 5.54 0 0 1 .016-.025V6.169h-2.4c.03.678 0 7.225 0 7.225h2.4z"
/>
</svg>
</a>
<a
class="footer__link"
href="https://github.com/chrono234"
target="_blank"
rel="noopener noreferrer"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="currentColor"
viewBox="0 0 16 16"
>
<path
d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"/>
</svg>
</a>
</footer>
</html>