-
Notifications
You must be signed in to change notification settings - Fork 0
/
focus_timer.html
37 lines (37 loc) · 1.53 KB
/
focus_timer.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Focus Timer</title>
<link rel="stylesheet" href="focus_timer.css">
</head>
<body>
<div class="container">
<h1>Focus Timer</h1>
<div class="progress-container">
<svg class="circular-progress" width="300" height="300" viewBox="0 0 300 300">
<circle class="circular-progress-bg" cx="150" cy="150" r="140"></circle>
<circle id="progress-bar-fill" class="circular-progress-bar" cx="150" cy="150" r="140"></circle>
</svg>
<div class="form-container">
<form id="timer-form" class="timer-form">
<div class="input-group">
<input type="number" id="minutes" placeholder="Minutes" required>
<span>:</span>
<input type="number" id="seconds" placeholder="Seconds" required>
</div>
<button type="submit" class="btn">Start Timer</button>
</form>
<div id="timer-display" class="timer-display">00:00</div>
</div>
</div>
<div class="buttons">
<button id="pause-button" class="btn" disabled>Pause</button>
<button id="resume-button" class="btn" disabled>Resume</button>
</div>
<audio id="alarm-sound" src="alarm.mp3"></audio>
</div>
<script src="focus_timer.js"></script>
</body>
</html>