-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtimer.html
More file actions
32 lines (29 loc) · 941 Bytes
/
timer.html
File metadata and controls
32 lines (29 loc) · 941 Bytes
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
<!--
@file timer.html
@author Nicky Moreno Gonzalez
@description Displays a countdown timer with start, stop, and restart buttons.
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Timer</title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="container">
<h1 id="timer-name"></h1>
<p id="timer-description"></p>
<div id="countdown">00:00</div>
<button onclick="startTimer()">Start</button>
<button onclick="stopTimer()">Stop</button>
<button onclick="restartTimer()">Restart</button>
</div>
<audio id="alarm-sound">
<source src="https://www.fesliyanstudios.com/play-mp3/4386" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
<script src="timer.js"></script>
</body>
</html>