-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
101 lines (89 loc) · 4.31 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
<!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>Juego del Ahorcado</title>
<link rel="stylesheet" href="style.css" />
<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"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css"
/>
</head>
<body>
<div class="container">
<a href="./"><img class="logo" src="./assets/Logo.svg"></a>
<div class="hangman-container">
<img class="hangman" src="./assets/0.png" />
</div>
<!-- MENU -->
<div class="menu-start">
<div class="panel-start">
<button class="ingame-button filled" onclick="startGame()">
Nuevo Juego
</button>
<button class="ingame-button blank" onclick="newWord()">
Agregar Palabra
</button>
</div>
</div>
<!-- SECRET word -->
<div class="secret-word"></div>
<!-- ALREADY TRIED LETTERS -->
<p class="already-tried"></p>
<!-- KEYBOARD -->
<div class="keyboard">
<div>
<button class="keyboard-button" onclick="p.attempt('q');disableMe('q')">Q</button>
<button class="keyboard-button" onclick="p.attempt('w');disableMe('w')">W</button>
<button class="keyboard-button" onclick="p.attempt('e');disableMe('e')">E</button>
<button class="keyboard-button" onclick="p.attempt('r');disableMe('r')">R</button>
<button class="keyboard-button" onclick="p.attempt('t');disableMe('t')">T</button>
<button class="keyboard-button" onclick="p.attempt('y');disableMe('y')">Y</button>
<button class="keyboard-button" onclick="p.attempt('u');disableMe('u')">U</button>
<button class="keyboard-button" onclick="p.attempt('i');disableMe('i')">I</button>
<button class="keyboard-button" onclick="p.attempt('o');disableMe('o')">O</button>
<button class="keyboard-button" onclick="p.attempt('p');disableMe('p')">P</button>
</div>
<div>
<button class="keyboard-button" onclick="p.attempt('a');disableMe('a')">A</button>
<button class="keyboard-button" onclick="p.attempt('s');disableMe('s')">S</button>
<button class="keyboard-button" onclick="p.attempt('d');disableMe('d')">D</button>
<button class="keyboard-button" onclick="p.attempt('f');disableMe('f')">F</button>
<button class="keyboard-button" onclick="p.attempt('g');disableMe('g')">G</button>
<button class="keyboard-button" onclick="p.attempt('h');disableMe('h')">H</button>
<button class="keyboard-button" onclick="p.attempt('j');disableMe('j')">J</button>
<button class="keyboard-button" onclick="p.attempt('k');disableMe('k')">K</button>
<button class="keyboard-button" onclick="p.attempt('l');disableMe('l')">L</button>
<button class="keyboard-button" onclick="p.attempt('ñ');disableMe('ñ')">Ñ</button>
</div>
<div>
<button class="keyboard-button" onclick="p.attempt('z');disableMe('z')">Z</button>
<button class="keyboard-button" onclick="p.attempt('x');disableMe('x')">X</button>
<button class="keyboard-button" onclick="p.attempt('c');disableMe('c')">C</button>
<button class="keyboard-button" onclick="p.attempt('v');disableMe('v')">V</button>
<button class="keyboard-button" onclick="p.attempt('b');disableMe('b')">B</button>
<button class="keyboard-button" onclick="p.attempt('n');disableMe('n')">N</button>
<button class="keyboard-button" onclick="p.attempt('m');disableMe('m')">M</button>
</div>
</div>
<!-- INGAME BUTTONS -->
<button class="ingame-button filled" onclick="resetGame()">
Nuevo Juego
</button>
<button class="ingame-button blank" onclick="p.gameOver()">
Desistir
</button>
<!-- W & L PANEL -->
<div class="panel occult"></div>
</div>
<script src="./script.js"></script>
</body>
</html>