This is an hyper-realistic clock application that displays the current time and provides some additional features such as sound effects, light and dark mode color scheme, remember preference theme. It's designed to show how detailed I can be.
- The application displays the current time with three clock hands (hour, minute, and second).
- The clock updates in real-time, accurately reflecting the current time.
- You can enable/disable clock ticking sound effects.
- When enabled, the clock emits a ticking sound every second.
- You can choose between a dark and light color scheme for the clock.
- The color scheme preference is stored in your browser's local storage and persists across sessions.
- The application gracefully handles errors related to audio initialization, sound playback, and local storage.
- Any errors that occur are logged and displayed in the error message box.
You will need a web browser that supports SVG and JavaScript.
- Clone the repository:
git clone https://github.com/waiz3ple/wall-clock.git
- Navigate to the project directory:
cd wall-clock
- Open the
index.html
file in your preferred web browser.
- Sound Toggle: Use the "Toggle Sound" switch to enable or disable ticking sound effects.
- Color Scheme Toggle: Use the "Toggle Color Scheme" switch to switch between dark and light color schemes.
- Error Messages: If any errors occur (e.g., audio initialization fails), they will be displayed in the error message box. Click "close" to clear the error messages.
You can see a live demo of the clock here: Live Demo
- If you want to use a custom ticking sound, replace
tick-tock.wav
in thesounds
folder with your desired audio file. Ensure it's in a compatible format (e.g., WAV). - You can further customize the clock appearance by modifying the CSS in
styles.css
. - Error handling and logging can be enhanced by modifying the error-handling functions in the JavaScript code.
- This clock application relies on HTML, CSS, and JavaScript. No external libraries or frameworks are used.
This clock application is open-source and available under the MIT License. Please do not claim this project as yours
- Wasiu Ramoni
- GitHub: GitHub Profile
If you have any questions, suggestions, or issues, please feel free to reach out to me:
- Email: [email protected]
- Twitter: @waiz3ple
- Telegram: t.me/waiz3ple