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.
- Features
- Preview
- Project Structure
- Installation Guide
- Technologies Used
- License
- Contributing
- Connect with Me
β
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.
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
git clone https://github.com/Iqbolshoh/javascript-digital-clock.gitcd javascript-digital-clockJust open index.html in any modern browser β no build step or server required.
This project is open-source and available under the MIT License.
π― Contributions are welcome! If you have suggestions or want to enhance the project, feel free to fork the repository and submit a pull request.
π¬ I love meeting new people and discussing tech, business, and creative ideas. Let's connect! You can reach me on these platforms:

