-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
64 lines (55 loc) · 2.13 KB
/
index.html
File metadata and controls
64 lines (55 loc) · 2.13 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!DOCTYPE html>
<html lang="en">
<head><meta http-equiv="Content-Security-Policy" content="
default-src 'self';
script-src 'self';
style-src 'self' 'unsafe-inline';
img-src 'self' data:;
connect-src 'self';
font-src 'self';
">
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Timer App</title>
<link rel="stylesheet" href="css/styles.css" />
</head>
<body>
<h2 class="gradient-title">Interval Timer</h2>
<div class="tab-buttons">
<button class="active" data-tab="interval">Interval Timer</button>
<button data-tab="timer">Timer</button>
</div>
<div id="settingsIcon" class="settings-icon">⚙️</div>
<div id="app">
<div id="intervalTimerContainer" class="tab-content">
<!-- Interval Timer content will be rendered here -->
</div>
<div id="timerContainer" class="tab-content">
<!-- Timer content will be rendered here -->
</div>
</div>
<div id="settingsModal" class="modal hidden">
<div class="modal-content">
<h2>Alarm Settings</h2>
<div id="timerSettings" class="settings-group hidden">
<label for="timerAlarmLength">Alarm Length (seconds):
<input type="number" id="timerAlarmLength" min="1" value="5" />
</label>
</div>
<div id="intervalSettings" class="settings-group hidden">
<label for="workAlarmLength">Work Alarm Length (seconds):
<input type="number" id="workAlarmLength" min="1" value="5" />
</label>
<label for="breakAlarmLength">Break Alarm Length (seconds):
<input type="number" id="breakAlarmLength" min="1" value="5" />
</label>
</div>
<button id="saveSettingsBtn">Save</button>
<button id="closeSettingsBtn">Close</button>
</div>
</div>
<audio id="alarmSound" src="assets/alarm.mp3"></audio>
<!-- Load main logic -->
<script type="module" src="js/renderer.js"></script>
</body>
</html>