1
1
<!DOCTYPE html>
2
2
< html lang ="en ">
3
- < head >
4
- < meta charset ="UTF-8 " />
5
- < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
6
- < link rel ="stylesheet " href ="style.css " />
7
- < title > Hangman</ title >
8
3
9
- <!-- 👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻-->
10
- <!-- Also uploaded the demo of this code in a gif : https://c.tenor.com/x8v1oNUOmg4AAAAd/tenor.gif-->
11
- <!-- 👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻-->
4
+ < head >
5
+ < meta charset ="UTF-8 " />
6
+ < meta name ="viewport " content ="user-scalable=no width=device-width, initial-scale=1.0 " />
7
+ < link rel ="stylesheet " href ="style.css " />
8
+ < title > Hangman</ title >
12
9
13
- <!-- 👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻-->
14
- <!-- More html-css-js Games Calculators Games Cards Elements Projects on https://www.github .com/he-is-talha -->
15
- <!-- 👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻-->
10
+ <!-- 👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻-->
11
+ <!-- Also uploaded the demo of this code in a gif : https://c.tenor .com/x8v1oNUOmg4AAAAd/tenor.gif -->
12
+ <!-- 👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻-->
16
13
17
- < link rel ="icon " href ="https://leoncoolmoon.github.io/icon.png " />
18
- </ head >
19
- < body >
20
- < h1 > Hangman</ h1 >
21
- < p > Find the hidden word - Press a letter</ p >
22
- < div class ="game-container ">
23
- < svg height ="250 " width ="200 " class ="figure-container ">
24
- <!-- rod -->
25
- < line x1 ="60 " y1 ="20 " x2 ="140 " y2 ="20 " />
26
- < line x1 ="140 " y1 ="20 " x2 ="140 " y2 ="50 " />
27
- < line x1 ="60 " y1 ="20 " x2 ="60 " y2 ="230 " />
28
- < line x1 ="20 " y1 ="230 " x2 ="100 " y2 ="230 " />
29
- <!-- head -->
30
- < circle cx ="140 " cy ="70 " r ="20 " class ="figure-part " />
31
- <!-- body -->
32
- < line x1 ="140 " y1 ="90 " x2 ="140 " y2 ="150 " class ="figure-part " />
33
- <!-- arms -->
34
- < line x1 ="140 " y1 ="120 " x2 ="120 " y2 ="100 " class ="figure-part " />
35
- < line x1 ="140 " y1 ="120 " x2 ="160 " y2 ="100 " class ="figure-part " />
36
- <!-- legs -->
37
- < line x1 ="140 " y1 ="150 " x2 ="120 " y2 ="180 " class ="figure-part " />
38
- < line x1 ="140 " y1 ="150 " x2 ="160 " y2 ="180 " class ="figure-part " />
39
- </ svg >
40
- < div class ="wrong-letters-container ">
41
- < div id ="wrong-letters "> </ div >
42
- </ div >
43
- < div class ="word " id ="word "> </ div >
44
- </ div >
45
- <!-- Popup -->
46
- < div class ="popup-container " id ="popup-container ">
47
- < div class ="popup ">
48
- < h2 id ="final-message "> </ h2 >
49
- < h3 id ="final-message-reveal-word "> </ h3 >
50
- < button id ="play-button "> Play Again</ button >
51
- </ div >
52
- </ div >
53
- <!-- Notification -->
54
- < div class ="notification-container " id ="notification-container ">
55
- < p > You have already entered this letter</ p >
14
+ <!-- 👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻👇🏻-->
15
+ <!-- More html-css-js Games Calculators Games Cards Elements Projects on https://www.github.com/he-is-talha -->
16
+ <!-- 👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻👆🏻-->
17
+
18
+ < link rel ="icon " href ="https://leoncoolmoon.github.io/icon.png " />
19
+ </ head >
20
+
21
+ < body >
22
+ < h1 > Hangman</ h1 >
23
+ < p > Find the hidden word - Press a letter</ p >
24
+ < div class ="game-container ">
25
+ < svg height ="250 " width ="200 " class ="figure-container ">
26
+ <!-- rod -->
27
+ < line x1 ="60 " y1 ="20 " x2 ="140 " y2 ="20 " />
28
+ < line x1 ="140 " y1 ="20 " x2 ="140 " y2 ="50 " />
29
+ < line x1 ="60 " y1 ="20 " x2 ="60 " y2 ="230 " />
30
+ < line x1 ="20 " y1 ="230 " x2 ="100 " y2 ="230 " />
31
+ <!-- head -->
32
+ < circle cx ="140 " cy ="70 " r ="20 " class ="figure-part " />
33
+ <!-- body -->
34
+ < line x1 ="140 " y1 ="90 " x2 ="140 " y2 ="150 " class ="figure-part " />
35
+ <!-- arms -->
36
+ < line x1 ="140 " y1 ="120 " x2 ="120 " y2 ="100 " class ="figure-part " />
37
+ < line x1 ="140 " y1 ="120 " x2 ="160 " y2 ="100 " class ="figure-part " />
38
+ <!-- legs -->
39
+ < line x1 ="140 " y1 ="150 " x2 ="120 " y2 ="180 " class ="figure-part " />
40
+ < line x1 ="140 " y1 ="150 " x2 ="160 " y2 ="180 " class ="figure-part " />
41
+ </ svg >
42
+ < div class ="wrong-letters-container ">
43
+ < div id ="wrong-letters "> </ div >
56
44
</ div >
57
- < div id = "virtual_keyboard ">
45
+ < div class ="word " id ="word "> </ div >
46
+ </ div >
47
+ <!-- Popup -->
48
+ < div class ="popup-container " id ="popup-container ">
49
+ < div class ="popup ">
50
+ < h2 id ="final-message "> </ h2 >
51
+ < h3 id ="final-message-reveal-word "> </ h3 >
52
+ < button id ="play-button "> Play Again</ button >
53
+ < button id ="def-button "> Definition</ button >
58
54
</ div >
59
- < script src ="script.js "> </ script >
60
- </ body >
61
- </ html >
55
+ </ div >
56
+ <!-- Notification -->
57
+ < div class ="notification-container " id ="notification-container ">
58
+ < p > You have already entered this letter</ p >
59
+ </ div >
60
+ < div id ="virtual_keyboard ">
61
+ </ div >
62
+ < div id ="resultContainer " class ="hidden ">
63
+ < button id ="closeButton " style ="position: absolute; top: 0px; right: 0px; "> ×</ button >
64
+ < div id ="resultContent "> </ div >
65
+
66
+
67
+ </ div >
68
+ < script src ="script.js "> </ script >
69
+ </ body >
70
+
71
+ </ html >
0 commit comments