-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
257 lines (248 loc) · 6.67 KB
/
index.html
File metadata and controls
257 lines (248 loc) · 6.67 KB
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Play Hangman Game Online | Classic Word Guessing Fun</title>
<meta
name="description"
content="Play the classic Hangman game online for free! Test your vocabulary and guessing skills in this fun and challenging word game. Start playing now!"
/>
<meta
name="keywords"
content="Hangman game online, free word game, vocabulary game, word guessing game, play Hangman, classic games online"
/>
<meta name="author" content="Samkit Jain" />
<meta
property="og:title"
content="Play Hangman Game Online | Classic Word Guessing Fun"
/>
<meta
property="og:description"
content="Enjoy the classic Hangman game online. Test your word knowledge and guessing skills. Start playing for free!"
/>
<meta
property="og:image"
content="https://github.com/TheRealSamkit/HangMan_Game/assets/favicon.png"
/>
<meta
property="og:url"
content="https://therealsamkit.github.io/HangMan_Game/"
/>
<meta property="og:type" content="website" />
<meta name="twitter:card" content="summary_large_image" />
<meta
name="twitter:title"
content="Play Hangman Game Online | Classic Word Guessing Fun"
/>
<meta
name="twitter:description"
content="Challenge yourself with the classic Hangman word guessing game. Play now for free!"
/>
<meta
name="twitter:image"
content="https://github.com/TheRealSamkit/HangMan_Game/assets/favicon.png"
/>
<link
rel="shortcut icon"
href="assets/favicon.png"
type="image/x-icon"
/>
<link rel="stylesheet" href="hang.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.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=Shantell+Sans:wght@300;400;700&display=swap"
rel="stylesheet"
/>
<!-- Structured Data -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Game",
"name": "Hangman Game Online",
"description": "Play the classic Hangman game online and test your vocabulary skills.",
"author": {
"@type": "Person",
"name": "Samkit Jain"
},
"image": "https://github.com/TheRealSamkit/HangMan_Game/assets/favicon.png",
"url": "https://TheRealSamkit.github.io/HangMan_Game/",
"publisher": {
"@type": "Organization",
"name": "GitHub Pages"
}
}
</script>
</head>
<body>
<main class="main">
<h1 class="title">
Hangman Game!
<i class="fa-solid fa-gear gear"></i>
</h1>
<div class="settings">
<i
class="fa-solid fa-volume-high -sound fa"
id="stopSounds"
title="Toggle sound"
></i>
<i
class="fa-solid fa-music -music fa"
id="music"
title="Toggle music"
></i>
<i
class="fa-solid fa-arrows-rotate fa"
id="refreshGame"
title="refreshGame"
></i>
</div>
<img
src="assets/favicon.png"
alt="Hangman Game Logo"
class="logo"
title="Hangman Game Logo"
/>
<div class="diff">
<button
type="button"
id="selector"
class="playAgain selector hide"
title="Start a new Hangman game"
>
Start Game
</button>
<h1 style="color: #fff" class="hide" id="h1">
Select Difficulty
</h1>
<button
type="button"
data-mode="easy"
id="easyBtn"
class="playAgain selector ms hide"
title="Choose easy difficulty"
>
Easy
</button>
<button
type="button"
id="hardBtn"
data-mode="hard"
class="playAgain selector ms hide"
title="Choose hard difficulty"
>
Hard
</button>
</div>
<div class="container" id="container">
<div class="flex">
<div class="hangman">
<canvas
id="hangMan"
class="hang"
title="Visual representation of the Hangman game"
></canvas>
<p title="Displays the current score" class="txt Score">
Score :
<span id="score">0</span>
</p>
<p
title="Displays the remaining guesses"
class="txt remGue"
>
Remaining guesses :
<span id="remainingGuesses">8</span>
</p>
</div>
<div class="game">
<div
class="word"
id="blank"
title="Displays the current word with blanks for unguessed letters"
></div>
<div
class="keyboard"
id="keyboard"
title="Interactive keyboard for letter selection"
></div>
</div>
</div>
<p
id="message"
title="Game status messages (win/lose or other notifications)"
></p>
<div class="btnhold">
<button
id="playAgain"
class="playAgain btn1"
title="Restart the Hangman game"
>
Play Again!
</button>
<button
type="button"
class="btn1 playAgain"
id="hint-btn"
title="Get a hint for the current word"
>
Get Hint
<i class="fa-regular fa-lightbulb"></i>
</button>
</div>
<div class="streak-container hide">
<p class="streakText">Guess Streak</p>
<div class="streak">
🔥
<p class="count">0</p>
</div>
</div>
</div>
<div class="pop-up" id="popup">
<div class="popup-content">
<h2 title="Hint popup header">Hint</h2>
<span
id="close-hint"
class="close"
title="Close the hint popup"
>
×
</span>
<p
id="output"
title="Displays the hint for the current word"
class="output synonym"
></p>
<p id="synonymDis" class="output"></p>
</div>
</div>
<div id="overlay">
<div
class="loader"
title="Loading animation for fetching the word"
></div>
<br />
<h4 style="color: #fff">
Fetching hardest word from the web...
</h4>
</div>
<div class="blood-splatter"></div>
<a
href="https://github.com/TheRealSamkit/HangMan_Game"
class="love"
title="View the Hangman game source code on GitHub"
target="_blank"
>
Made by ©Samkit Jain
</a>
</main>
<!-- This is made by Samkit Jain -->
<script src="https://cdn.jsdelivr.net/npm/animejs@3.2.1/lib/anime.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@tsparticles/confetti@3.0.3/tsparticles.confetti.bundle.min.js"></script>
<script src="hang.js" type="module"></script>
</body>
</html>