-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhelp.html
68 lines (65 loc) · 2.4 KB
/
help.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
<!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>Hanged Man</title>
<link rel="stylesheet" href="style.css">
<script>
function toggleDark() {
let body = document.getElementsByTagName("body")[0];
while(!document.readyState) { }
isDark = body.classList.toggle("dark");
window.sessionStorage.setItem("darkMode", isDark);
}
</script>
</head>
<body>
<script>
let isDark = window.sessionStorage.getItem("darkMode") === "true";
let body = document.getElementsByTagName("body")[0];
if (isDark) {
toggleDark();
}
</script>
<nav class="navbar">
<div class="nav-center">
<a href="index.html" class="nav-link">New Game</a>
<a href="javascript:toggleDark();" class="nav-link">Dark Mode</a>
<a href="help.html" class="nav-link">Help</a>
<!-- <a href="about.html" class="nav-link">About</a> -->
</div>
</nav>
<div class="help">
<div class="game-description help-center">
<h2>
The game
</h2>
<div class="instruction-list">
<ol>
<li>The game generates a random word and displays it as a series of lines
representing the letters of the hidden word.</li>
<li>You have 10 attempts to guess the word, one letter at a time.</li>
<li>Each wrong letter you guess will appear red, and right guess is green.</li>
<li>When you guess wrong another part is built.</li>
<li>Guess the word before the man is hanged!</li>
</ol>
</div>
</div>
<div class="game-over-descreption help-center">
<h2>
Game over
</h2>
<div class="game-over-list">
<ol>
<li>If the whole word is revealed the man is freed and you win the game,
a popup message will alert you of your win.
</li>
<li>If you guess 10 wrong letters the man gets hung and you lose</li>
</ol>
</div>
</div>
</div>
</body>
</html>