From 74ff6a073fca5ec181381c59b9be368f2b92a0c3 Mon Sep 17 00:00:00 2001 From: Mohit Mehtre Date: Mon, 13 Oct 2025 23:42:29 +0530 Subject: [PATCH] Add reset button, WPM calculation, and date-time display --- 4-typing-game/solution/index.css | 22 ++++++++++++++++++++++ 4-typing-game/solution/index.html | 31 +++++++++++++++++-------------- 4-typing-game/solution/index.js | 22 ++++++++++++++++++++-- 3 files changed, 59 insertions(+), 16 deletions(-) diff --git a/4-typing-game/solution/index.css b/4-typing-game/solution/index.css index 5a33a101..f9bdf7f2 100644 --- a/4-typing-game/solution/index.css +++ b/4-typing-game/solution/index.css @@ -154,3 +154,25 @@ button#start i { width: 100%; } } + + +#reset { + color: white; + background: linear-gradient(to right, #ff7043, #e64a19); + border: none; + padding: 10px 20px; + border-radius: 12px; + font-size: 1rem; + cursor: pointer; + margin-top: 1rem; + display: inline-flex; + align-items: center; + gap: 0.5rem; + transition: transform 0.2s ease, box-shadow 0.3s ease; +} + + +#reset:hover { + transform: translateY(-2px); + box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); +} diff --git a/4-typing-game/solution/index.html b/4-typing-game/solution/index.html index e12d7681..b07b0d42 100644 --- a/4-typing-game/solution/index.html +++ b/4-typing-game/solution/index.html @@ -42,13 +42,23 @@

Practice your typing

+ +
+ + +  |  + + +
+ +
Click start to have a quote displayed. Type the quote as fast as you can!

-

+

@@ -59,21 +69,14 @@ Start
+
+ +
+ - -

- Practice your typing -

-
- - -  |  - - -
- -