This repository contains the implementation of a clock that can toggle between an analog and digital display. The latest version improves upon the previous implementation by making it responsive, visually appealing, and better structured. The project allows users to compare the older version with the newly updated one.
- Not responsive: The clock elements did not adapt to different screen sizes.
- Basic design: Minimal visual styling, resulting in a less appealing user interface.
- Unstructured code: Difficult to maintain and extend.
- Responsive design: Works seamlessly on various devices, including desktops, tablets, and smartphones.
- Eye-catching visuals: Improved gradients, font styles, and animations for an attractive user experience.
- Structured and maintainable code: Organized JavaScript, CSS, and HTML for easier readability and future enhancements.
- Clone the repository:
git clone <repository-url>
- Navigate to the project directory:
cd updating-clock - Open
index.htmlin your browser. - Use the toggle button to switch between analog and digital clock modes.
updating-clock/
├── index.html # Main HTML and CSS file
├── script.js # JavaScript for functionality
├── assets/ # Images and icons for the clock hands
├── previous_version/ # Files from the older implementation
│ ├── index.html
│ ├── styles.css
│ ├── script.js
└── README.md # Project documentation
Previous Version
| Feature | Previous Version | Latest Version |
|---|---|---|
| Responsiveness | Not responsive | Fully responsive |
| Visual Design | Basic and minimal | Modern and eye-catching |
| Code Structure | Unorganized | Structured and maintainable |
| User Interaction | Limited styling | Smooth animations and styling |
- HTML5: For structuring the webpage.
- CSS3: For styling and making the design responsive.
- JavaScript: For dynamic functionality and clock updates.
- Add timezone support.
- Allow users to customize themes.
- Add support for 12-hour and 24-hour formats.
- Fork the repository.
- Create a new branch:
git checkout -b feature-name
- Commit your changes:
git commit -m "Add feature description" - Push to your branch:
git push origin feature-name
- Open a pull request.



