-
Notifications
You must be signed in to change notification settings - Fork 0
/
timer.html
139 lines (129 loc) · 5.95 KB
/
timer.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<!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">
<title>Cronux</title>
<!--CSS stylesheets-->
<link rel="stylesheet" href="./css/style.css" id="general-style">
<link rel="stylesheet" href="./css/clockStyle.css" id="clock-style">
<link rel="stylesheet" href="./css/stopwatchStyle.css" id="stopwatch-style">
<link rel="stylesheet" href="./css/timerStyle.css" id="timer-style">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
</head>
<body>
<div class="box">
<header>
<ul class="dropdown" id="dropdown">
<div class="options-dropdown">
<i class="material-icons" id="dropdown-icon">chevron_right</i>
<input type="text" value="Options" readonly="" id="input-option">
</div>
<!--Options list dropdown-->
<ul class="options" id="options">
<li opName="Clock"><a href="./clock.html">Clock</a></li>
<li opName="Stopwatch"><a href="./stopwatch.html">Stopwatch</a></li>
<li opNme="Timer"><a href="./timer.html">Timer</a></li>
</ul>
</ul>
<p>CRONUX</p>
<div class="dark-mode">
<i class="material-icons" id="dark-mode" onclick="darkMode();">light_mode</i>
</div>
</header>
<div class="timer-settings-box" id="timer-settings">
<div>
<p>Edit timer information</p>
<button onclick="showTimerOptions()" class="material-icons" id="minimize">close</button>
</div>
<div>
<p>Hours</p>
<div class="hours-selector">
<button onclick="updateHours(this.id)" class="material-icons" id="sub-hr">horizontal_rule</button>
<p id="hours">00</p>
<button onclick="updateHours(this.id)" class="material-icons" id="add-hr">add</button>
</div>
</div>
<div>
<p>Minutes</p>
<div class="minutes-selector">
<button onclick="updateMinutes(this.id)" class="material-icons" id="sub-min">horizontal_rule</button>
<p id="minutes">00</p>
<button onclick="updateMinutes(this.id)" class="material-icons" id="add-min">add</button>
</div>
</div>
<div>
<p>Seconds</p>
<div class="seconds-selector">
<button onclick="updateSeconds(this.id)" class="material-icons" id="sub-sec">horizontal_rule</button>
<p id="seconds">00</p>
<button onclick="updateSeconds(this.id)" class="material-icons" id="add-sec">add</button>
</div>
</div>
<button onclick="updateClockSettings()" class="accept-button">Accept</button>
</div>
<div class="box-clock">
<div class="digital-clock">
<div class="clock-field">
<div class="numbers">
<p class="hours" id="hr">00</p>
<p class="placeholder">88</p>
<p class="type">hour</p>
</div>
<div class="colon">
<p>:</p>
</div>
<div class="numbers">
<p class="minutes" id="min">00</p>
<p class="placeholder">88</p>
<p class="type">minute</p>
</div>
<div class="colon">
<p>:</p>
</div>
<div class="numbers">
<p class="seconds" id="sec">00</p>
<p class="placeholder">88</p>
<p class="type">second</p>
</div>
</div>
</div>
</div>
<div class="outer-circle">
<span class="circularProgressBar"></span>
<span class="circularProgressBar"></span>
<span class="circularProgressBar"></span>
<span class="circularProgressBar"></span>
<span class="circularProgressBar"></span>
<div class="middle-circle">
<button onclick="startTimer()" class="inner-circle" id="play-circle">
<div class="play-button" id="play">
<img src="./source/play.svg" alt="Play button">
</div>
</button>
</div>
</div>
<button class="reset-button" onclick="resetTimer()">Reset</button>
<footer>
<div class="author-info">
<a href="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/Euphorichuman" target="_blank" rel="noopener noreferrer" class="material-icons" id="code-icon">code</a>
<a href="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/Euphorichuman" target="_blank" rel="noopener noreferrer" class="author-link">By Euphorichuman</a>
</div>
<div class="tools">
<button onclick="showTimerOptions()" class="material-icons" id="settings-icon">settings</button>
<a href="https://github.com/Euphorichuman/TimerWeb/blob/main/README.md" target="_blank" rel="noopener noreferrer" class="material-icons" id="info-icon">info</a>
<!--<a class="material-icons" id="settings-icon">settings</a>-->
</div>
</footer>
</div>
<script src="./javascript/timerCode.js"></script>
<script src="./javascript/darkModeCode.js"></script>
<script type="text/javascript">
var dropdown = document.getElementById("dropdown");
dropdown.addEventListener("click", function() {
this.classList.toggle("show");
});
</script>
</body>
</html>