-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
68 lines (59 loc) · 2.56 KB
/
index.html
File metadata and controls
68 lines (59 loc) · 2.56 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Guess Who?</title>
<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=Orbitron:wght@400;700;900&family=Rajdhani:wght@400;500;700&family=Exo+2:wght@400;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="game-container">
<header>
<h1>Guess Who?</h1>
<p>Deduce the mystery character through clever questioning!</p>
</header>
<div class="stats-bar">
<div class="stat">
<span class="stat-label">Questions:</span>
<span class="stat-value" id="questions-asked">0/4</span>
</div>
<div class="stat">
<span class="stat-label">Characters Left:</span>
<span class="stat-value" id="characters-left">24</span>
</div>
</div>
<section class="question-section">
<h2>Ask a Question!</h2>
<h2>Click buttons below:</h2>
<div class="question-buttons">
<button class="question-btn" data-trait="glasses">🕶️ Has Glasses? 👓</button>
<button class="question-btn" data-trait="hat">👒 Wears a Hat? 🧢</button>
<button class="question-btn" data-trait="beard">🧔 Has Beard? 🧔</button>
<button class="question-btn" data-trait="smile">😄 Is smiling? 😁</button>
</div>
<div class="feedback" id="feedback"></div>
</section>
<section class="characters-section">
<h2>Which character is the mystery character?</h2>
<div class="grid" id="character-grid">
</div>
</section>
</div>
<div class="modal hidden" id="game-over-modal">
<div class="modal-content">
<h2 id="modal-title">You Won! 🎉</h2>
<p id="modal-message">Congratulations! You guessed correctly!</p>
<div class="modal-stats">
<p>Questions asked: <span id="modal-questions">0</span></p>
<p>Characters eliminated: <span id="modal-eliminated">0</span></p>
</div>
<button class="play-again-btn" id="play-again">Play Again</button>
</div>
</div>
<script src="js/data.js"></script>
<script type="module" src="js/script.js"></script>
</body>
</html>