-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
95 lines (76 loc) · 2.92 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hangman-Game</title>
<link rel="stylesheet" href="./css/all.min.css">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"
media="screen" />
<link rel="stylesheet" href="./css/all.css">
<script src="https://kit.fontawesome.com/ec98f7a980.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="./css/font-awesome.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Hangman😈</h1>
<p>Cari Kata Tersembunyi - Lalu Masukkan Huruf</p>
<div class="game-container">
<svg height="250" width="200" class="figure-container">
<!-- penggantung -->
<!-- tiang kesamping -->
<line x1="60" y1="20" x2="140" y2="20" />
<line x1="55" y1="15" x2="145" y2="15" />
<!-- tiang ke bawah -->
<line x1="140" y1="20" x2="140" y2="50" />
<line x1="145" y1="15" x2="145" y2="50" />
<!-- tiang atas bawah -->
<line x1="60" y1="20" x2="60" y2="230" />
<line x1="55" y1="15" x2="55" y2="230" />
<!-- kaki atau base -->
<line x1="20" y1="230" x2="100" y2="230" />
<line x1="20" y1="235" x2="100" y2="235" />
<line x1="20" y1="240" x2="100" y2="240" />
<line x1="20" y1="245" x2="100" y2="245" />
<!-- kepala -->
<circle cx="140" cy="70" r="20" class="figure-part" />
<!-- badan -->
<line x1="140" y1="90" x2="140" y2="150" class="figure-part" />
<!-- lengan -->
<line x1="140" y1="120" x2="120" y2="100" class="figure-part" />
<line x1="140" y1="120" x2="160" y2="100" class="figure-part" />
<!-- kaki -->
<line x1="140" y1="150" x2="120" y2="180" class="figure-part" />
<line x1="140" y1="150" x2="160" y2="180" class="figure-part" />
</svg>
<div class="wrong-letters-container">
<div id="wrong-letters"></div>
<div class="social">
<a href="https://www.instagram.com/doni_codes" target="blank"><i class="fab fa-instagram fa-2x"
aria-hidden="true"></i></a>
<a href="https://www.twitter.com/doni_codes" target="blank"><i class="fab fa-twitter fa-2x"
aria-hidden="true"></i>
<a href="https://www.github.com/doniwirawan" target="blank"><i
class="fab fa-github-square fa-2x"></i></a>
<a href="https://www.linkedin.com/in/doni-wirawan-7a0189178/" target="blank"><i
class="fab fa-linkedin fa-2x"></i></a>
</div>
</div>
<div class="word" id="word"></div>
</div>
<!-- container untuk pesan akhir -->
<div class="popup-container" id="popup-container">
<div class="popup">
<h2 id="final-message"></h2>
<button id="play-button">Play Again</button>
</div>
</div>
<!-- notifikasi -->
<div class="notification-container " id="notification-container">
<p>Kamu telah mengetik huruf ini</p>
</div>
<script src="./js/all.min.js"></script>
<script src="./js/all.js"></script>
<script src="script.js"></script>
</body>
</html>