Skip to content

Iqbolshoh/javascript-countdown-timer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⏱️ JavaScript Countdown Timer

JavaScript Countdown Timer is a simple countdown timer built with vanilla HTML, CSS, and JavaScript. It starts from a preset time (5 minutes by default), counts down to zero, and alerts the user when time is up — with play/pause controls to start and stop the countdown at any moment.

HTML5 CSS3 JavaScript License

📚 Table of Contents

✨ Features

Countdown display: Shows minutes and seconds in a clean MM:SS format. ✅ Play/Pause controls: Start and stop the countdown at any time. ✅ Time's-up alert: A browser alert fires the moment the countdown reaches zero. ✅ Auto-reset: The timer resets back to its starting value after finishing. ✅ Responsive design: The circular timer card adapts to smaller screens.

👀 Preview

💻 Desktop

Desktop Preview

📱 Mobile

Mobile Preview

📂 Project Structure

javascript-countdown-timer/
├── src/
│   ├── css/
│   │   └── styles.css       # Circular card layout, buttons, and responsive breakpoint
│   ├── js/
│   │   └── script.js        # Countdown logic and play/pause controls
│   └── images/                # Screenshots used in this README
├── favicon.ico
├── index.html                  # Timer markup
└── README.md

⚙️ Installation Guide 🛠️

1️⃣ Clone the Repository 📥

git clone https://github.com/Iqbolshoh/javascript-countdown-timer.git

2️⃣ Navigate to the Project Directory 📂

cd javascript-countdown-timer

3️⃣ Open the App 🌐

Just open index.html in any modern browser — no build step or server required.

🚀 Usage

  1. ⏳ The timer starts at 05:00 by default.
  2. ▶️ Click Play to start (or restart) the countdown.
  3. ⏸️ Click Pause to stop it at the current time.
  4. 🔔 When it reaches 00:00, an alert notifies you that time is up, and the timer resets.
  5. ✏️ To change the starting time, edit the <h1 id="time">05:00</h1> value in index.html.

🖥 Technologies Used

HTML CSS JavaScript

📜 License

This project is open-source and available under the MIT License.

🤝 Contributing

🎯 Contributions are welcome! If you have suggestions or want to enhance the project, feel free to fork the repository and submit a pull request.

📬 Connect with Me

💬 I love meeting new people and discussing tech, business, and creative ideas. Let's connect! You can reach me on these platforms:

Website Gmail GitHub Telegram WhatsApp Instagram YouTube

About

⏱️ A simple and responsive countdown timer ⏳ built with HTML, CSS, and JavaScript. Features pause ⏸️ and play ▶️ controls, plus a friendly alert 🔔 when time runs out.

Topics

Resources

License

Stars

12 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors