-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtimer.html
More file actions
31 lines (31 loc) · 1.39 KB
/
Copy pathtimer.html
File metadata and controls
31 lines (31 loc) · 1.39 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MY_Timer</title>
<link rel="stylesheet" href="timer.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" integrity="sha512-iecdLmaskl7CVkqkXNQ/ZH/XLlvWZOJyj7Yy7tcenmpD1ypASozpmT/E0iPtmFIB46ZmdtAc9eNBvH0H/ZpiBw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
<body>
<div class="timer">
<div class="controls">
<input type="text" id="duration" value="30">
<div class="btns">
<button id="start"><i class="fa-solid fa-play"></i></button>
<button id="pause"><i class="fa-solid fa-pause"></i> </button>
</div>
</div>
<svg class="dial">
<!-- use stroke dasharray = perimeter of circle. dashoffset to be move in -ve dir to move the border in clockwise dir transform to make it perpendicular instead of horizontal -->
<circle r="190" cx="0" cy="200" fill="transparent" stroke="blue" stroke-width="15" transform="rotate(-90 100 100)" />
<audio id="alarmMusic">
<source src="horse.ogg" type="audio/ogg">
<source src="horse.mp3" type="audio/mpeg">
</audio>
</svg>
</div>
<script src="timer.js"></script>
</body>
</html>