-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
44 lines (44 loc) · 2.04 KB
/
index.html
File metadata and controls
44 lines (44 loc) · 2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Professional Digital Clock Alarm</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container-fluid vh-100 d-flex align-items-center justify-content-center p-3">
<div class="clock-card">
<div class="text-center mb-4">
<h1 class="display-4 fw-bold text-white mb-2">Digital Alarm Clock</h1>
<div class="time fs-1 fw-bold text-primary mb-3" id="time">00:00:00 AM</div>
</div>
<div class="row g-3 justify-content-center">
<div class="col-md-5">
<label for="alarmDate" class="form-label text-white">Date</label>
<input type="date" class="form-control" id="alarmDate" min="">
</div>
<div class="col-md-5">
<label for="alarmTime" class="form-label text-white">Time</label>
<input type="time" class="form-control" id="alarmTime">
</div>
<div class="col-12">
<button class="btn btn-primary w-100" id="setAlarm">
<i class="bi bi-alarm me-2"></i>Set Alarm
</button>
</div>
</div>
<div class="alarms mt-4" id="alarms">
<small class="text-white-50">No alarms set</small>
</div>
</div>
<audio id="alarmAudio" preload="auto" loop>
<source src="freesound_community-alarm-clock-90867.mp3" type="audio/mp3">
<!-- Fallback free alarm sound; replace if needed with local file -->
</audio>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
<script src="script.js"></script>
</body>
</html>