-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
95 lines (94 loc) · 2.87 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="icon" type="image/svg+xml" href="favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/confetti.browser.min.js"></script>
<!-- ----------- CUSTOM FONTS ----------- -->
<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=Dancing+Script:wght@600&family=Nunito&family=Roboto:wght@300;700&display=swap"
rel="stylesheet"
/>
<meta
name="description"
content="A webpage showing a timer used to properly track breaks during IronHack Bootcamp Classes! Built with HTML | CSS | JavaScript"
/>
<title>IronHack Class Timer</title>
</head>
<body>
<header>
<h1>
<span class="bold">Web Dev</span> <br />
Class Timer
</h1>
</header>
<main class="main-container">
<p><span id="time"></span></p>
<section class="setup">
<div class="minutes-container">
<label for="minutes">Minutes</label>
<input
id="minutes"
min="0"
onchange="setTimer()"
type="number"
value="15"
placeholder="0"
/>
<button
aria-label="Increment minutes"
class="controls minutes-increase-btn"
>
👆
</button>
<button
aria-label="Decrement minutes"
class="controls minutes-decrease-btn"
>
👇
</button>
</div>
<div class="seconds-container">
<label for="seconds">Seconds</label>
<input
id="seconds"
min="0"
max="59"
onchange="setTimer()"
type="number"
value="0"
placeholder="0"
/>
<button
aria-label="Increment seconds"
class="controls seconds-increase-btn"
>
👆
</button>
<button
aria-label="Decrement seconds"
class="controls seconds-decrease-btn"
>
👇
</button>
</div>
</section>
<div class="btn-wrapper">
<button id="startBtn">START</button>
<button id="resetBtn">SET</button>
</div>
</main>
<footer>
Built using <span class="footer-html">HTML</span>,
<span class="footer-css">CSS</span> and
<span class="footer-js">JavaScript</span> by
<span class="author">Filipe Freire</span> -
<span id="date"></span>
</footer>
<script type="module" src="/main.js"></script>
</body>
</html>