This web application provides a real-time digital clock display and allows users to set multiple alarms. It is built using HTML5, CSS3, JavaScript (ES6), and jQuery, with a responsive layout using Bootstrap. The UI features a Glassmorphism design.
- Real-time Digital Clock: Displays the current time in HH:MM:SS AM/PM format.
- Multiple Alarms: Users can set multiple alarms with specific times and labels.
- Alarm List: Shows a list of active alarms with options to delete or cancel them.
- Notifications: Triggers browser notifications when an alarm goes off (if permission is granted).
- Sound Alarm: Plays a sound alarm (alarm.mp3) when an alarm is triggered.
- Glassmorphism UI: Stylish frosted glass panels with transparency and shadows.
- Responsive Layout: Mobile-friendly design using Bootstrap grid system.
- HTML5
- CSS3
- JavaScript ES6
- jQuery 3.7.0
- Bootstrap 4.5.2
- Google Fonts (Rajdhani)
index.html: Main HTML file.style.css: CSS file for styling.script.js: JavaScript file for functionality.alarm.mp3: Placeholder audio file for the alarm sound.
- Clone the repository to your local machine.
- Ensure you have a web browser (Chrome, Firefox, Edge) installed.
- Open
index.htmlin your web browser.
- The digital clock will display the current time automatically.
- To set an alarm:
- Enter the desired hour and minute.
- Select AM or PM.
- Add a label for the alarm (optional).
- Click the "Set Alarm" button.
- The alarm will be added to the "Active Alarms" list.
- When an alarm is triggered:
- A browser notification will appear (if permissions are granted).
- The
alarm.mp3sound will play. - The triggered alarm will be highlighted in the list.
- Click the "Stop" button to stop the alarm sound and remove the highlight.
- To delete an alarm, click the "Delete" button next to the alarm in the list.
- To clear all alarms, click the "Clear All Alarms" button.
- Alarms remain listed until deleted, even after they trigger.
- The
alarm.mp3file should be replaced with your desired alarm sound. - The application is designed for cross-browser compatibility (Chrome, Firefox, Edge).
- Deboraj-roy