This is a simple digital clock web application built with HTML, CSS, and JavaScript. The clock displays the current time in hours, minutes, and seconds, and updates every second. It also includes a toggle for navigation links to highlight the selected link.
- Displays the current time in a 12-hour format with AM/PM indicator.
- Updates the time every second.
- Formats time units to always display two digits (e.g., 08 instead of 8).
- Highlights the selected navigation link.
- index.html: The main HTML file that sets up the structure of the app.
- index.css: The CSS file that styles the app.
- index.js: The JavaScript file that adds functionality to the app.
- Clone the repository:
git clone https://github.com/AlphaAnas/digital-clock-in-javascript/tree/main