-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
89 lines (77 loc) · 2.17 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
<!DOCTYPE html>
<html lang="en">
<head>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap" rel="stylesheet">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WordWarp</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<h1>Word Warp</h1>
<!-- Challenge Sentence Display -->
<p id="challengeSentence">Challenge: <span id="sentenceText"></span></p>
<!-- Timer Display -->
<p id="timerDisplay">Time: 0s</p>
<!-- Typing Area -->
<textarea id="typingArea" placeholder="Start typing here..."></textarea>
<!-- Error Message -->
<div id="errorMessage" class="hidden">
<p>Oops! Something went wrong. Try again.</p>
</div>
<!-- Success Message -->
<div id="successMessage" class="hidden">
<p>🎉 Congratulations! You've completed the challenge!</p>
<p id="completionTime"></p>
<button id="playAgainButton">Play Again</button>
</div>
<!-- Notes Section -->
<div class="notes-section">
<h2>Notes</h2>
<textarea id="notesArea">
A →
B →
C →
D →
E →
F →
G →
H →
I →
J →
K →
L →
M →
N →
O →
P →
Q →
R →
S →
T →
U →
V →
W →
X →
Y →
Z →
</textarea>
</div>
<!-- Buttons Section -->
<div class="button-container">
<button id="darkModeToggle">Toggle Dark Mode</button>
<button id="resetButton">Reset</button>
<button id="submitButton">Submit</button>
</div>
<!-- Instructions Box -->
<div id="instructionsBox" class="info-box">
<p>Your keys are randomized! Try to type out the challenge as quickly as possible. All sentences are around the same length for fairness.</p>
</div>
<p> </p>
<h3> Abhay inc. © 2024</h3>
</div>
<script data-name="BMC-Widget" data-cfasync="false" src="https://cdnjs.buymeacoffee.com/1.0.0/widget.prod.min.js" data-id="abhaykapatkar" data-description="Support me on Buy me a coffee!" data-message="" data-color="#5F7FFF" data-position="Right" data-x_margin="18" data-y_margin="18"></script>
<script src="script.js"></script>
</body>
</html>