Skip to content

Added count down#58

Merged
FOSSCLUB-LBSITW merged 1 commit into
FOSSCLUB-LBSITW:mainfrom
devikrishna111:add_countdown
Mar 6, 2026
Merged

Added count down#58
FOSSCLUB-LBSITW merged 1 commit into
FOSSCLUB-LBSITW:mainfrom
devikrishna111:add_countdown

Conversation

@devikrishna111
Copy link
Copy Markdown

📌 Description

This PR adds a 3-second countdown feature (3…2…1…GO) before the typing test starts and fixes the issue where the timer kept increasing incorrectly.
The countdown prevents the timer from starting immediately after clicking Start Test, giving users time to prepare before typing.

Additionally, the timer logic was cleaned to avoid multiple timer executions caused by duplicate functions.


🔗 Related Issue

Closes: #39


🛠 Changes Made

  • Added 3-second countdown animation before the test begins
  • Disabled typing input during countdown
  • Timer now starts only after countdown finishes
  • Fixed timer increasing continuously bug
  • Removed duplicate update_timer() and check_result() functions
  • Improved overall timer logic and UI feedback

✅ Checklist

  • [✅ ] I have tested my changes
  • [✅ ] My code follows project guidelines
  • [✅ ] I have linked the related issue

@FOSSCLUB-LBSITW FOSSCLUB-LBSITW merged commit 7dabd6a into FOSSCLUB-LBSITW:main Mar 6, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Countdown Before Test Starts

2 participants