-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
73 lines (70 loc) · 5 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="Hangman Game - Fatimat Gbajabiamila">
<meta name="author" content="Fatimat Gbajabiamila">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="./public/master.css">
<title> Hangman Game </title>
</head>
<body>
<header class="game-header">
<h1 class="game-header__title">Hangman Game</h1>
</header>
<section class="game-intro">
<p class="game-intro__text"> Guess the word! Click the alphabets buttons to choose a letter. You have 6 lives, each time you guess the wrong letter one live is deducted and a new part is added to the hangman. </p>
<input type="button" id="start_game_btn" value="Play" class="play__button">
</section>
<p id="gameover_para"></p>
<section class="game-features">
<p id="live_para"></p>
<p id="hint_para"></p>
<section class="guesses" id="inputs_container">
</section>
<section class="hangman no-play">
<div class="hangman__hanger"></div>
<div class="hangman__bodyPart hangman__head" id="hang"></div>
<div class="hangman__bodyPart hangman__body" id="hang2"></div>
<div class="hangman__bodyPart hangman__hand1" id="hang3"></div>
<div class="hangman__bodyPart hangman__hand2" id="hang4"></div>
<div class="hangman__bodyPart hangman__leg1" id="hang5"></div>
<div class="hangman__bodyPart hangman__leg2" id="hang6"></div>
<p id="gameover_para"></p>
</section>
<section class="buttons no-play" id="alphabets_btns">
<div class="buttons__container">
<button class="buttons__letters alphabets" onclick="alphabets_click_func(event)" type="button" value="A">A</button>
<button class="buttons__letters alphabets" onclick="alphabets_click_func(event)" type="button" value="B">B</button>
<button class="buttons__letters alphabets" onclick="alphabets_click_func(event)" type="button" value="C">C</button>
<button class="buttons__letters alphabets" onclick="alphabets_click_func(event)" type="button" value="D">D</button>
<button class="buttons__letters alphabets" onclick="alphabets_click_func(event)" type="button" value="E">E</button>
<button class="buttons__letters alphabets" onclick="alphabets_click_func(event)" type="button" value="F">F</button>
<button class="buttons__letters alphabets" onclick="alphabets_click_func(event)" type="button" value="G">G</button>
<button class="buttons__letters alphabets" onclick="alphabets_click_func(event)" type="button" value="H">H</button>
<button class="buttons__letters alphabets" onclick="alphabets_click_func(event)" type="button" value="I">I</button>
<button class="buttons__letters alphabets" onclick="alphabets_click_func(event)" type="button" value="J">J</button>
<button class="buttons__letters alphabets" onclick="alphabets_click_func(event)" type="button" value="K">K</button>
<button class="buttons__letters alphabets" onclick="alphabets_click_func(event)" type="button" value="L">L</button>
<button class="buttons__letters alphabets" onclick="alphabets_click_func(event)" type="button" value="M">M</button>
<button class="buttons__letters alphabets" onclick="alphabets_click_func(event)" type="button" value="N">N</button>
<button class="buttons__letters alphabets" onclick="alphabets_click_func(event)" type="button" value="O">O</button>
<button class="buttons__letters alphabets" onclick="alphabets_click_func(event)" type="button" value="P">P</button>
<button class="buttons__letters alphabets" onclick="alphabets_click_func(event)" type="button" value="Q">Q</button>
<button class="buttons__letters alphabets" onclick="alphabets_click_func(event)" type="button" value="R">R</button>
<button class="buttons__letters alphabets" onclick="alphabets_click_func(event)" type="button" value="S">S</button>
<button class="buttons__letters alphabets" onclick="alphabets_click_func(event)" type="button" value="T">T</button>
<button class="buttons__letters alphabets" onclick="alphabets_click_func(event)" type="button" value="U">U</button>
<button class="buttons__letters alphabets" onclick="alphabets_click_func(event)" type="button" value="V">V</button>
<button class="buttons__letters alphabets" onclick="alphabets_click_func(event)" type="button" value="W">W</button>
<button class="buttons__letters alphabets" onclick="alphabets_click_func(event)" type="button" value="X">X</button>
<button class="buttons__letters alphabets" onclick="alphabets_click_func(event)" type="button" value="Y">Y</button>
<button class="buttons__letters alphabets" onclick="alphabets_click_func(event)" type="button" value="Z">Z</button>
<button class="buttons__hint" type="button" name="hint">Hint</button>
</div>
</section>
</section>
<script src="./public/fetch.js"></script>
<script type="text/javascript" src="./build/public/index.js"></script>
</body>
</html>