Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

32 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ•’ JavaScript Digital Clock

JavaScript Digital Clock is a live digital clock built with vanilla HTML, CSS, and JavaScript. It reads the visitor's system time and updates the hours, minutes, and seconds display every second, wrapped in a modern glassmorphism card on a gradient background.

HTML5 CSS3 JavaScript License

πŸ“š Table of Contents

✨ Features

βœ… Live clock: Displays the current hours, minutes, and seconds, updating every second. βœ… Zero-padded digits: Always shows two digits (e.g. 09 instead of 9) for a clean look. βœ… Glassmorphism design: A frosted-glass card over a gradient background with soft accent circles. βœ… Responsive layout: Scales smoothly from desktop down to mobile screens. βœ… Zero dependencies: Pure HTML, CSS, and JavaScript β€” no frameworks or libraries.

πŸ‘€ Preview

πŸ’» Desktop

Desktop Preview

πŸ“± Mobile

Mobile Preview

πŸ“‚ Project Structure

javascript-digital-clock/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ css/
β”‚   β”‚   └── styles.css       # Clock layout, gradient background, and responsive breakpoints
β”‚   β”œβ”€β”€ js/
β”‚   β”‚   └── script.js        # Reads the system time and updates the display every second
β”‚   └── images/                # Screenshots used in this README
β”œβ”€β”€ favicon.ico
β”œβ”€β”€ index.html                  # Clock markup
└── README.md

βš™οΈ Installation Guide πŸ› οΈ

1️⃣ Clone the Repository πŸ“₯

git clone https://github.com/Iqbolshoh/javascript-digital-clock.git

2️⃣ Navigate to the Project Directory πŸ“‚

cd javascript-digital-clock

3️⃣ Open the App 🌐

Just open index.html in any modern browser β€” no build step or server required.

πŸ–₯ 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 sleek, responsive javascript-digital-clock built with HTML, CSS, and JavaScript. Shows current time πŸ•’ with smooth updates ⏳ and adapts to all screens πŸ“±. Perfect for stylish real-time time display! πŸ’»πŸ“²

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages