-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
72 lines (66 loc) · 3.38 KB
/
index.html
File metadata and controls
72 lines (66 loc) · 3.38 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Exercisele - Gym Exercise Guessing Game</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<canvas id="bg-canvas" aria-hidden="true"></canvas>
<div class="container">
<header>
<div class="mode-toggle" role="group" aria-label="Game mode">
<div id="mode-indicator" class="mode-indicator" aria-hidden="true"></div>
<button id="mode-endless" class="mode-btn" type="button">Endless Mode</button>
<button id="mode-daily" class="mode-btn" type="button">Daily Mode</button>
</div>
<div id="mode-info" class="mode-info" aria-live="polite"></div>
<h1>🏋️ Exercisele</h1>
<a class="exercise-list-link" href="list.html" title="View all exercises">Exercise List</a>
<p>Guess the gym exercise! Get hints about muscle groups, equipment, type and difficulty.</p>
<p>Learn key information about exercises and improve your fitness knowledge!</p>
<p id="mode-description" class="mode-description"></p>
</header>
<div class="game-area">
<div class="input-section">
<div class="input-group">
<label for="exercise-input">Enter your guess:</label>
<div class="input-container">
<input type="text" id="exercise-input" placeholder="Type exercise name..." autocomplete="off">
<div class="autocomplete-dropdown" id="autocomplete-dropdown">
<!-- Suggestions will be dynamically added here -->
</div>
</div>
<button id="guess-btn">Guess</button>
</div>
<div class="attempts-counter">
<span>Attempts: <span id="attempts">0</span>/6</span>
</div>
</div>
<div class="feedback-section">
<h3 id="guesses-header" style="display:none;">Your Guesses:</h3>
<div id="guesses-container">
<!-- Guesses will be dynamically added here -->
</div>
</div>
<div class="tip-section" id="tip-section" style="display: none;">
<h3>💡 Form Tip:</h3>
<div id="tip-content" style="display:flex; align-items:center; gap:12px; flex-wrap:wrap;">
<p id="tip-text" style="margin:0;"></p>
<a id="tip-video-link" href="#" target="_blank" rel="noopener noreferrer" style="display:none; color:#90e0ff; text-decoration:underline;">Watch Demo</a>
</div>
</div>
<div class="game-over" id="game-over" style="display: none;">
<h3 id="game-result"></h3>
<div id="daily-countdown" class="daily-countdown" style="display:none;"></div>
<button id="new-game-btn">New Game</button>
</div>
</div>
</div>
<footer style="text-align:center; margin-top:20px; color:#ffffff; opacity:0.7; font-size:12px;">
Made by Zhiyuan (Jerry) Jiang, all rights reserved.
</footer>
<script src="script.js"></script>
</body>
</html>