Skip to content

Latest commit

 

History

History
43 lines (25 loc) · 1.55 KB

README.md

File metadata and controls

43 lines (25 loc) · 1.55 KB

JS Clock

The JS Clock is a web application that displays a live analog clock showing the current local time. It utilizes the built-in Date object in JavaScript to retrieve the current time and dynamically updates the clock every second.

Live Demo

You can try out the JS Clock live by visiting the demo page.

Motivation

The main goal of this project is to create an interactive analog clock using JavaScript's Date object. It serves as a simple and practical example of utilizing JavaScript to manipulate the DOM and display real-time data.

Features

  • Live analog clock display showing the current local time.
  • Hour, minute, and second hands that move in sync with the current time.
  • Smooth transitions between minute and second updates.

Technologies Used

The JS Clock project is built using the following technologies:

  • HTML
  • CSS
  • JavaScript

How to Use

To use the JS Clock locally, follow these steps:

  1. Clone the repository: git clone https://ajmal112.github.io/js-clock.git
  2. Open index.html in your web browser.
  3. The clock will automatically start displaying the current local time.

Feel free to explore and modify the code to suit your needs. You can customize the styling or add additional features to enhance the clock's functionality.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

License

The JS Clock is released under the MIT License.