-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
50 lines (46 loc) · 1.84 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
<!DOCTYPE html>
<html>
<head>
<script>
/* Theme logic here to prevent update on refresh*/
// Stored State
const theme = localStorage.getItem('theme');
// Mounting theme with short circuit if there is one
theme && document.getElementsByTagName( 'html' )[0].classList.add(theme);
// Setting theme
localStorage.setItem('theme', theme);
</script>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Toothbrush Timer</title>
<link rel="stylesheet" type="text/css" href="static/tbt.css" />
<!-- Icon from https://www.flaticon.com/free-icons/toothbrush -->
<link rel="shortcut icon" type="image/png" href="static/toothbrush.ico"/>
</head>
<body>
<div class="top"> <!-- Flex Container for top -->
<button id="theme-toggle">Toggle Light/Dark Mode</button>
<button id="tick-toggle" >Toggle Ticking Sound </button>
</div>
<div class="container"> <!-- Flex Container-->
<div class="box">
<span id="timer" class="timer-text">2:00</span>
</div>
<div class="box">
<span id="reminder" class="remind-text"> </span>
</div>
<div class="box">
<button id="start">Start Timer</button>
<button id="reset">Reset </button>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.7.1.slim.js"
integrity="sha256-UgvvN8vBkgO0luPSUl2s8TIlOSYRoGFAX4jlCIm9Adc="
crossorigin="anonymous"></script>
<script src="static/tbt.js"></script>
</body>
<footer>
<p>By Ibrahim Sydock | 2024</p>
</footer>
</body>
</html>