-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
89 lines (77 loc) · 2.86 KB
/
index.html
File metadata and controls
89 lines (77 loc) · 2.86 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Code Debugging Simulator</title>
<!-- Font Awesome -->
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" />
<link rel="stylesheet" href="style.css" />
</head>
<body>
<!-- Header -->
<header>
<h1>🕵️ Code Debugging Simulator</h1>
<p id="subtitle" class="subtitle"></p>
</header>
<!-- Play button (center, below header) -->
<div class="play-area">
<button id="start-btn" class="play-btn" aria-label="Play">▶️ Play</button>
</div>
<main>
<!-- LEFT: How to + Language -->
<aside class="sidebar left">
<div class="card">
<h3 id="how-title">ℹ️ How to Play</h3>
<div id="howto" class="howto-box"></div>
</div>
<div class="card">
<div class="card-content center">
<label id="lang-label" for="lang">🌐 Language</label>
<select id="lang" class="lang-select" aria-label="Language select">
<option value="en">English</option>
<option value="id">Bahasa Indonesia</option>
</select>
</div>
</div>
</aside>
<!-- CENTER: Game -->
<section class="center">
<div class="card game-card">
<div class="info-card">
<span id="timer">⏱️ 30s</span>
<span id="elapsed-used">⏳ 0s</span>
<span id="score">💯 0</span>
</div>
<pre id="code-snippet" class="code-area" aria-label="Code snippet"></pre>
<p id="result" class="result-text"></p>
<div class="controls center">
<button id="next-btn" disabled style="display:none;">Next ➡️</button>
<button id="retry-btn" style="display:none;">🔄 Retry</button>
</div>
</div>
</section>
<!-- RIGHT: Leaderboard -->
<aside class="sidebar right">
<div class="card leaderboard">
<h3 id="leaderboard-title">🏆 Leaderboard</h3>
<p id="best-score-text">Best Score: <strong id="best-score">0</strong></p>
<p id="best-time-text">Fastest Time: <strong id="best-time">--</strong> s</p>
</div>
</aside>
</main>
<!-- Footer (single elegant bar) -->
<footer>
<div class="footer-inner">
<p class="footer-text">Made with ❤️ by <strong>Herzbay</strong></p>
<div class="socials">
<a href="https://instagram.com/herzbay" target="_blank" aria-label="Instagram"><i class="fab fa-instagram"></i></a>
<a href="https://www.linkedin.com/in/bayher/" target="_blank" aria-label="LinkedIn"><i class="fab fa-linkedin"></i></a>
<a href="https://github.com/herzbay" target="_blank" aria-label="GitHub"><i class="fab fa-github"></i></a>
</div>
</div>
</footer>
<script src="script.js"></script>
</body>
</html>