-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
164 lines (156 loc) · 8.53 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
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title id="title">PomodoPro</title>
<meta content="PomodoPro" property="og:title" />
<meta content="A minimalistic and customizable Pomodoro experience." property="og:description" />
<meta content="ah07.xyz/PomodoPro" property="og:url" />
<meta content="https://i.imgur.com/WB8I5Hx.png" property="og:image" />
<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=Rubik&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap" rel="stylesheet">
<link rel="icon" type="image/x-icon" href="https://i.imgur.com/WB8I5Hx.png">
<link rel="stylesheet" href="./src/main.css">
<script src="https://kit.fontawesome.com/ebba275678.js" crossorigin="anonymous"></script>
</head>
<body>
<div id="bg"></div>
<main>
<div id="settingsmenu">
<form id="form">
<div id="pomodoro-side">
<button type="button" onclick="switchMenu(1)">Timer</button>
<button type="button" onclick="switchMenu(2)">Customize</button>
<button type="button" onclick="switchMenu(3)">About</button>
</div>
<div id="seperator"></div>
<div id="mainMenu">
<div id="customizations">
<h2>Customize</h2>
<br>
<div id="backgroundcustom">
<div>
<h3>Background Color</h3>
<input title="Background Color" type="color" id="colinput">
</div>
<div>
<h3>Background Image</h3>
<input title="Background Image" type="file" id="imginput"
accept="image/png, image/jpeg, image/gif">
<button title="Choose Background Image" id="chooseImg" type="button">Upload
Image</button>
</div>
</div>
<div>
<h3>Alarm Sound</h3>
<input title="Alarm Sound" type="file" id="almSound" accept="audio/*">
<button title="Choose Alarm Sound" id="chooseAlmS" type="button">Upload Audio</button>
</div>
<div>
<h3>Timer Font (.TTF, .OTF, etc.)</h3>
<input title="Timer Font" type="file" accept="font/*" id="fontinput">
<button title="Choose Timer Font" id="chooseFont" type="button">Upload Font</button>
</div>
</div>
<div id="pomodoro-timers">
<h2>Timers</h2>
<br>
<div id="timerz">
<div class="timetype">
<h3>Pomodoro</h3>
<div class="inputTime">
<div>
<input type="number" id="pomoinput" value="25" min="0">
<div class="unit" onclick="focusInput('pomoinput')">mins</div>
</div>
<div>
<input title="Pomodoro Seconds" type="number" id="pomoinputsec" value="0"
min="0" max="59">
<div class="unit" onclick="focusInput('pomoinputsec')">secs</div>
</div>
</div>
</div>
<div class="timetype">
<h3>Short Break</h3>
<div class="inputTime">
<div>
<input title="Short Break Minutes" type="number" id="shortinput" value="5"
min="0">
<div class="unit" onclick="focusInput('shortinput')">mins</div>
</div>
<div>
<input title="Short Break Seconds" type="number" id="shortinputsec" value="0"
min="0" max="59">
<div class="unit" onclick="focusInput('shortinputsec')">secs</div>
</div>
</div>
</div>
<div class="timetype">
<h3>Long Break</h3>
<div class="inputTime">
<div>
<input title="Long Break Minutes" type="number" id="longinput" value="15"
min="0">
<div class="unit" onclick="focusInput('longinput')">mins</div>
</div>
<div>
<input title="Long Break Seconds" type="number" id="longinputsec" value="0"
min="0" max="59">
<div class="unit" onclick="focusInput('longinputsec')">secs</div>
</div>
</div>
</div>
</div>
<div>
<h3>Pomodoros Before Long Break</h3>
<input title="Long Break Minutes" type="number" id="noofpom" value="4" min="1">
</div>
</div>
<div id="menuButtons">
<button title="Cancel" type="reset"
style="background-color: #6c757d; color: white;">Cancel</button>
<button title="Reset to Default" type="button" onclick="resetToDefaults()"
style="background-color: #dc3444; color: white;">Reset</button>
<button title="Save Changes" type="submit">Save</button>
</div>
</div>
</form>
</div>
<header> <!--MODES-->
<button id="pomodoro" type="button"
onclick="modeSwitcher(1,defaultTime,'white','transparent','transparent','black','white','white')">Pomodoro</button>
<button id="short" type="button"
onclick="modeSwitcher(2,shortTime,'transparent','white','transparent','white','black','white')">Short
Break</button>
<button id="long" type="button"
onclick="modeSwitcher(3,longTime,'transparent','transparent','white','white','white','black')">Long
Break</button>
</header>
<h1 id="countdown"></h1> <!--TIMER-->
<div id="poms">
<div class="pom p1"></div>
<div class="pom p2"></div>
<div class="pom p3"></div>
<div class="pom p4"></div>
</div>
<div class="actionbtns"> <!--BOTTOM BUTTONS-->
<button title="Start" id="start" type="button" onclick="letsGo()">
<i class="fa-solid fa-play fa-xl"></i>
</button>
<button title="Pause" id="stop" type="button" onclick="stopTimer()">
<i class="fa-solid fa-pause fa-xl"></i>
</button>
<button title="Restart" id="restart" type="button" onclick="restartTimer()">
<i class="fa-solid fa-rotate fa-xl"></i>
</button>
<button title="Settings" id="settings" type="button" onclick="settingsMenu()">
<i class="fa-solid fa-gear fa-xl"></i>
</button>
</div>
</main>
<script src="./src/scripts/main.js"></script>
</body>
</html>