-
Notifications
You must be signed in to change notification settings - Fork 9
/
popup.html
52 lines (44 loc) · 1.59 KB
/
popup.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Eye Protection</title>
<link rel="stylesheet" href="popup.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
</head>
<body>
<h1>Eye Protection</h1>
<!--dark mode toggle -->
<label for="theme-toggle" class="switch">
<input type="checkbox" id="theme-toggle">
<span class="slider round"></span>
</label>
<p>Dark Mode</p>
<!--tab navigation -->
<div class="tabs">
<button class="tab-button active" data-target="timerTab">Timer</button>
<button class="tab-button" data-target="scheduleTab">Schedule</button>
</div>
<!--timer tab -->
<div id="timerTab" class="tab-content active">
<button id="start">Start</button>
<button id="pause">Pause</button>
<button id="resume">Resume</button>
<button id="reset">Reset</button>
<div id="timer">00:00:00</div>
</div>
<!--schedule tab-->
<div id="scheduleTab" class="tab-content">
<h2>Schedule</h2>
<label for="startTime">Start Time:</label>
<input type="time" id="startTime" value="20:00">
<label for="endTime">End Time:</label>
<input type="time" id="endTime" value="07:00">
<button id="saveSchedule">Save</button>
</div>
<a href="options.html" target="_blank" class="settings-link" title="Settings">
<i class="fas fa-cog"></i>
</a>
<script src="popup.js"></script>
</body>
</html>