-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
37 lines (31 loc) · 1.48 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
<!DOCTYPE html>
<html lang="en">
<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>Ahorcado</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div style="text-align:center; margin: 50px 0px;">
<h1 class="titulo">Ahorcado</h1>
<div class="content">
<canvas id="canvas" height="400px" width="500px" style="border:1px solid #1f1c1c;"></canvas>
<div class="chars" >
<input maxlength="1" onkeyup="mayus(this)" id="letra" class="char_input" onkeypress="return check(event)" type="text" placeholder="Escribe una letra en mayusculas">
<button class="btn" hidden="true" id="calcular">Evaluar letra</button>
<p id="output"></p>
</div>
</div>
</div>
<div style="text-align:center">
<button class="btn" onclick="canvas_init() " id="iniciar-juego">INICIAR JUEGO</button>
<button class="btn" onclick="location.reload(false)" id="reset">REINICIAR</button>
<input class="text-input" onkeyup="mayus(this)" type="text" id="input-nueva-palabra" onkeypress="return check(event)" placeholder="Escriba una nueva palabra">
<button class="btn" id="nueva-palabra">AGREGAR PALABRA</button>
</div>
<script type="text/javascript" src="canvas.js"></script>
<script type="text/javascript" src="ahorcado.js"></script>
</body>
</html>