-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathindex.html
100 lines (87 loc) · 3.26 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
96
97
98
99
100
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Dragon Fruit Delight</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<nav>
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#instructions">Instructions</a></li>
<li><a href="#level-select">Select Level</a></li>
<li><a href="#help">Help</a></li>
<li><a href="#contact">Contact</a></li>
<li><a href="#play">Play</a></li>
</ul>
</nav>
<!-- Night Mode Toggle -->
<div id="night-mode-container">
<label for="night-mode-toggle">Night Mode:</label>
<input type="checkbox" id="night-mode-toggle" />
</div>
<!-- Introductory Video Overlay -->
<div id="video-overlay">
<div id="video-wrapper">
<video id="intro-video" src="Dragon Fruit Delight.mp4" type="video/mp4" controls></video>
<div id="video-controls">
<button id="play-pause">Play</button>
<button id="close-video">Close</button>
</div>
</div>
</div>
<div>
<label for="level-select">Select Level:</label>
<select id="level-select">
<option value="0">Level 1: Fruits</option>
<option value="1">Level 2: Animals</option>
<option value="2">Level 3: Colors</option>
<option value="3">Level 4: Food</option>
<option value="4">Level 5: Sports</option>
</select>
</div>
<!-- Game Content -->
<div id="game-content">
<h1>Welcome to the Dragon Fruit Delight Word Scramble Game!</h1>
<p>Unscramble the letters to form a word.</p>
<h2 id="level-text">Level 1: Fruits</h2>
<div class="timer-container">
<div class="timer">01:00</div>
</div>
<div class="time_btns">
<button id="pause-button">Pause</button>
<button onclick="resetTimer()" id="reset-button">Reset</button>
</div>
<div class="main-game-content">
<!-- Display Scrambled Word -->
<p class="scrambled-word"></p>
<!-- Textarea for User Input -->
<textarea id="user-input" rows="4" cols="50" placeholder="Type your answer here..."></textarea>
<button onclick="checkAnswer()" class="checkans_btn">Check Answer</button>
<button onclick="startTheGame()" class="startBtn">Start</button>
<p class="result_c" id="result"></p>
</div>
<p><strong>How to Play:</strong></p>
<ol>
<li>A scrambled word will appear on the screen.</li>
<li>Type the unscrambled word into the text field.</li>
<li>Click the "Check Answer" button.</li>
<li>If your answer is correct, you'll see a success message, and a new scrambled word will appear.</li>
<li>If your answer is incorrect, you'll see a message asking you to try again.</li>
</ol>
</div>
<!-- Help Section -->
<div id="help">
<h2>Help</h2>
<p>If you need help, please refer to the instructions or contact us.</p>
</div>
<!-- Contact Section -->
<div id="contact">
<h2>Contact</h2>
<p>For any inquiries, please email us at [email protected].</p>
</div>
<script src="script.js"></script>
</body>
</html>