-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
77 lines (72 loc) · 3.3 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
<!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" />
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css">
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.bundle.min.js"></script>
<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=Bebas+Neue&family=Press+Start+2P&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<title>Hanged Man</title>
</head>
<body>
<header>
<img src="./img/hangman.png" alt="">
<h1 class="titulo">Hanged man</h1>
</header>
<section class = "controls">
<button class="btns btn-start" id="start-game">START GAME</button>
<input class="text-input" type="text" id="input-new-word" maxlength="14" placeholder="Write a new word" onfocusout="inputFocusOut()" onfocus="inputFocusIn()" >
<button class="btns btn-add" id="new-word">ADD WORD</button>
<span class='message'>You must enter only letters without spaces</span>
<button class="btns btn-reset" id="reset-game">REFRESH</button>
</section>
<section class= "cnv">
<canvas id="hanged" class="hanged" height="400px" width="600px"></canvas>
</section>
<footer id="footer">
<div class="social">
<a href="https://github.com/emimingo" target="_blank" title="GitHub">
<img src="./img/icongithub.svg" alt="GitHub">
</a>
</div>
<div class="social">
<a href="https://www.linkedin.com/in/emiliano-mingo" target="_blank" title="LinkedIn">
<img src="./img/iconlinkedin.svg" alt="LinkedIn">
</a>
</div>
<div class="social">
<a href="https://www.instagram.com/emimingo/" target="_blank" title="Instagram">
<img src="./img/iconinstagram.svg" alt="Instagram">
</a>
</div>
<div><a href="mailto:emilianomingo@gmail.com">© EMILIANO MINGO</a></div>
</footer>
<!-- The Modal -->
<div class="modal fade" id="myModal">
<div class="modal-dialog">
<div class="modal-content">
<!-- Modal body -->
<div class="modal-body">
Do you want to play with the entered word?.
</div>
<!-- Modal footer -->
<div class="modal-footer">
<button id="btn-yes" type="button" class="btns">Yes</button>
<button id="btn-no" type="button" class="btns" data-dismiss="modal">No</button>
</div>
</div>
</div>
</div>
<!--Bootstrap Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
<script src="ahorcado.js"></script>
<script src="canvas.js"></script>
</body>
</html>