-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
48 lines (44 loc) · 1.81 KB
/
index.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
38
39
40
41
42
43
44
45
46
47
48
<!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">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Public+Sans:wght@100;400;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<script src="main.js"></script>
<title>Pomodoro Timer</title>
<link rel="icon" href="assets/icon.png" type="image/x-icon">
</head>
<body class="pomodoro" id="body">
<div class="container">
<div class="card">
<!-- Options division -->
<div class="options">
<button type="button" class="button" id="pmdrBtn" onclick="pomodoro()">Pomodoro</button>
<button type="button" class="button" id="shrtBrkBtn" onclick="shortBreak()">Short Break</button>
<button type="button" class="button" id="lngBrkBtn" onclick="longBreak()">Long Break</button>
</div>
<!-- Timer division -->
<div class="timer">
<h1 id="textTimer">25:00</h1>
</div>
<!-- Start and Stop division -->
<div class="util">
<button type="button" class="button" id="startStopBtn" onclick="countdown();playSound('click')">Start</button>
</div>
</div>
<h3 id="msg">Time to focus!</h3>
<h3 id="count">Short break count: 0</h3>
</div>
<!-- Audio files -->
<audio id="click">
<source src="assets/click.m4a" type="audio/mpeg">
</audio>
<audio id="ring">
<source src="assets/ring.m4a" type="audio/mpeg">
</audio>
</body>
</html>