-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
498 lines (476 loc) · 18.1 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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-169261747-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "UA-169261747-1");
</script>
<meta charset="utf-8" />
<meta property="og:title" content="PomodoroTimers" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://www.pomodorotimers.com" />
<meta property="og:image" content="https://www.pomodorotimers.com/assets/img/logo.png" />
<meta
name="description"
content="PomodoroTimers is a simple and configurable Pomodoro timer. It aims to provide a visually-pleasing and reliable way to track productivity using the Pomodoro Technique."
/>
<meta
name="keywords"
content="pomodoro technique, tomato timer, pomodoro timer, online pomodoro timer, software timer, pomodoro software timer, productivity tools, gtd, getting things done, productivity, digital timer, concentration techniques, pomodoro resources, pomodoro software, to-do list"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>PomodoroTimers</title>
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css" />
<script
src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"
></script>
<link rel="stylesheet" href="css/styles.css" type="text/css" />
<link rel="shortcut icon" type="image/x-icon" href="assets/img/logo.png" />
<link href="https://fonts.googleapis.com/css2?family=Arvo:wght@400;700&display=swap" rel="stylesheet" />
</head>
<body>
<div style=" background: linear-gradient(to right, #b8c1ec, #eebbc3); background-repeat: no-repeat; background-size: cover;">
<!-- Scroll Indicator -->
<div class="line" id="scrollIndicator"></div>
<!-- Main Content -->
<div class="border-bottom" id="mainPage">
<!-- Alert -->
<div class="alert alert-danger alert-dismissible fade show" role="alert">
<span id="alertMessage"></span>
<button type="button" class="close" onclick="dismissAlert()" aria-label="Close">
<span aria-hidden="true"><i class="fas fa-times fa-lg mt-1"></i></span>
</button>
</div>
<!-- Brand Name -->
<div class="d-flex justify-content-center navbar navbar-light bg-light border-bottom">
<nav class="navbar navbar-light bg-light py-0 justify-content-center" id="brand">
<a class="navbar-brand" href="/">
<img src="assets/img/logo.png" width="50" height="50" class="align-top" alt="PomodoroTimers Logo" />
<span id="brandName">Pomodoro</span>
</a>
<!-- Only Visible when small -->
<ul class="nav nav-pills justify-content-end">
<li class="nav-item">
<a class="nav-link px-2 d-md-none button-pressed-no-shadow" data-toggle="modal" data-target="#toDoModal" href="#"
><i class="fas fa-tasks fa-lg"></i
></a>
</li>
<li class="nav-item pl-2 pr-0">
<a class="nav-link px-2 mx-1 d-md-none button-pressed-no-shadow" data-toggle="modal" data-target="#loggingModal" href="#"
><i class="fas fa-chart-bar fa-lg"></i
></a>
</li>
<li class="nav-item">
<a class="nav-link pl-2 pr-0 ml-2 d-md-none button-pressed-no-shadow" data-toggle="modal" data-target="#settingsModal" href="#"
><i class="fas fa-cog fa-lg"></i
></a>
</li>
</ul>
</nav>
</div>
<!-- NAVBAR -->
<div class="container mt-3">
<div class="row justify-content-end">
<div class="col-6 px-0">
<ul class="nav nav-pills">
<div class="col-lg-4 px-0">
<a class="nav-link active pt-2 nav-underline" id="pomodoros" data-toggle="tab" role="tab" aria-selected="false" href="/">Focus</a>
</div>
<div class="col-lg-4 px-0">
<a class="nav-link pt-2 nav-underline" id="shortBreak" data-toggle="tab" role="tab" aria-selected="false" href="/">Short Break</a>
</div>
<div class="col-lg-4 px-0">
<a class="nav-link pt-2 nav-underline" id="longBreak" data-toggle="tab" role="tab" aria-selected="false" href="/">Long Break</a>
</div>
</ul>
</div>
<div class="col-3">
<ul class="nav nav-pills justify-content-end">
<li class="nav-item">
<a class="nav-link px-2 d-none d-md-block button-pressed-no-shadow" data-toggle="modal" data-target="#toDoModal" href="#"
><i class="fas fa-tasks fa-lg"></i
></a>
</li>
<li class="nav-item pl-2 pr-0">
<a class="nav-link px-2 mx-1 d-none d-md-block button-pressed-no-shadow" data-toggle="modal" data-target="#loggingModal" href="#"
><i class="fas fa-chart-bar fa-lg"></i
></a>
</li>
<li class="nav-item">
<a
class="nav-link pl-2 pr-0 ml-2 d-none d-md-block button-pressed-no-shadow"
data-toggle="modal"
data-target="#settingsModal"
href="#"
><i class="fas fa-cog fa-lg"></i
></a>
</li>
</ul>
</div>
</div>
</div>
<!-- Timer and Buttons -->
<div class="container-fluid">
<div class="row">
<!-- Time Left and Progress Bar -->
<div class="col-12 pt-0 d-flex justify-content-center">
<div class="radial-progress-bar progress-value">
<div class="overlay">
<h1 id="timeLeft"></h1>
</div>
</div>
</div>
<!-- Start, Stop, Reset Buttons -->
<div class="col-12">
<div class="container d-flex justify-content-around">
<div class="row">
<div class="col-md-4">
<button type="button" class="button-pressed-effect btn btn-lg btn-success w-100 mb-3" id="startButton">Start</button>
</div>
<div class="col-md-4">
<button type="button" class="button-pressed-effect btn btn-danger btn-lg w-100 mb-3" id="stopButton">Stop</button>
</div>
<div class="col-md-4">
<button type="button" class="button-pressed-effect btn btn-secondary btn-lg w-100 mb-3" id="resetButton">Reset</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="description-section row justify-content-center">
<div class="col-10 col-lg-7 mb-4">
<h1 class="section-title text-center pb-3">How to use PomodoroTimers?</h1>
<div class="section-title-border"></div>
<div class="section-content">
<dl class="row">
<dt class="col-sm-2">Step 1</dt>
<dd class="col-sm-10">Decide on the task to be done</dd>
<dt class="col-sm-2">Step 2</dt>
<dd class="col-sm-10">Start working on your task for 25 minutes</dd>
<dt class="col-sm-2">Step 3</dt>
<dd class="col-sm-10">Take a 5 minute break after 25 minutes is up</dd>
<dt class="col-sm-2">Step 4</dt>
<dd class="col-sm-10">Repeat steps 1 to 3 until you have complete 4 sessions. Take a longer 20 minute break</dd>
<dt class="col-sm-2">Step 5</dt>
<dd class="col-sm-10">Go back to step 1 and repeat the process until task is complete</dd>
</dl>
</div>
</div>
</div>
<div class="description-section row justify-content-center pb-5">
<div class="col-10 col-lg-7">
<h1 class="section-title text-center pb-3">Why use PomodoroTimers?</h1>
<div class="section-title-border"></div>
<div class="section-content">
<dl class="row">
<dt class="col-sm-1">
<i class="far fa-hand-point-right fa-2x"></i>
</dt>
<dd class="col-sm-11 pb-3">Customize times for Focus, Short Breaks and Long Breaks</dd>
<dt class="col-sm-1">
<i class="far fa-hand-point-right fa-2x"></i>
</dt>
<dd class="col-sm-11 pb-3">Charming timer alert sounds</dd>
<dt class="col-sm-1">
<i class="far fa-hand-point-right fa-2x"></i>
</dt>
<dd class="col-sm-11 pb-3">Logging system to keep track of Focus sessions and breaks</dd>
<dt class="col-sm-1">
<i class="far fa-hand-point-right fa-2x"></i>
</dt>
<dd class="col-sm-11 pb-3">Timer ticking sounds (optional)</dd>
<dt class="col-sm-1">
<i class="far fa-hand-point-right fa-2x"></i>
</dt>
<dd class="col-sm-11 pb-3">Long break intervals (optional)</dd>
<dt class="col-sm-1">
<i class="far fa-hand-point-right fa-2x"></i>
</dt>
<dd class="col-sm-11 pb-3">Multiple background music (optional)</dd>
<dt class="col-sm-1">
<i class="far fa-hand-point-right fa-2x"></i>
</dt>
<dd class="col-sm-11 pb-3">Timer ending notification (optional)</dd>
<dt class="col-sm-1">
<i class="far fa-hand-point-right fa-2x"></i>
</dt>
<dd class="col-sm-11 pb-3">Dark Mode (optional)</dd>
</dl>
</div>
</div>
</div>
</div>
<!-- Back to top button -->
<div class="scrolltop-wrap row">
<div class="col-12 d-flex justify-content-center">
<!-- <a href="/" role="button" aria-label="Scroll to top"> -->
<i class="back-to-top-button fas fa-arrow-circle-up fa-4x button-pressed-no-shadow"></i>
<!-- </a> -->
</div>
</div>
<!-- Modals -->
<!-- Settings Modal -->
<div
class="modal fade"
data-keyboard="true"
id="settingsModal"
tabindex="-1"
role="dialog"
aria-labelledby="settingsModalLabel"
aria-hidden="true"
>
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h3 class="modal-title ml-3">Settings</h3>
<button type="button" class="close button-pressed-no-shadow" data-dismiss="modal" aria-label="Close">
<span class="modal-close-button mt-2" aria-hidden="true"><i class="fas fa-times fa-lg mt-2 mr-2"></i></span>
</button>
</div>
<div class="modal-body">
<!-- Selecting Timings -->
<div class="row ml-1">
<div class="col-12">
<p class="h6 text-muted">Time (Minutes)</p>
</div>
<div class="col-lg-4">
<div class="input-group mb-2">
<div class="input-group-prepend">
<span class="input-group-text" id="inputGroup-sizing-default">Focus</span>
</div>
<input id="pomodoroInput" type="number" min="1" step="1" class="form-control" />
</div>
</div>
<div class="col-lg-4">
<div class="input-group mb-2">
<div class="input-group-prepend">
<span class="input-group-text" id="inputGroup-sizing-default">Short Break</span>
</div>
<input id="shortBreakInput" type="number" min="1" step="1" class="form-control" />
</div>
</div>
<div class="col-lg-4">
<div class="input-group mb-2">
<div class="input-group-prepend">
<span class="input-group-text" id="inputGroup-sizing-default">Long Break</span>
</div>
<input id="longBreakInput" type="number" min="1" step="1" class="form-control" />
</div>
</div>
</div>
<hr />
<!-- Auto Start Next Round -->
<div class="row ml-1">
<div class="col">
<p class="h6 text-muted mt-2">Auto Start Rounds</p>
</div>
<div class="col">
<label class="switch">
<input id="autoStartRoundsInput" type="checkbox" />
<span class="slider round"></span>
</label>
</div>
</div>
<hr />
<!-- Long Break Interval -->
<div class="row ml-1">
<div class="col">
<p class="h6 text-muted mt-2">Long Break Interval</p>
</div>
<div class="col">
<form>
<div class="row">
<div class="col">
<input type="range" class="custom-range" min="1" max="12" id="longBreakIntervalInput" />
</div>
<div class="col">
<p class="font-weight-bold" id="sliderValue"></p>
</div>
</div>
</form>
</div>
</div>
<hr />
<!-- Tick Sounds -->
<div class="row ml-1">
<div class="col">
<p class="h6 text-muted mt-2">Tick Sounds</p>
</div>
<div class="col">
<label class="switch">
<input id="tickSoundInput" type="checkbox" />
<span class="slider round"></span>
</label>
</div>
</div>
<hr />
<!-- Ending Notification Sound -->
<div class="row ml-1">
<div class="col-sm-6">
<p class="h6 text-muted mt-2">Timer Ending Notification</p>
</div>
<div class="col-sm-6">
<div class="input-group mb-2">
<div class="input-group-prepend">
<span class="input-group-text notification-text">Last</span>
</div>
<input id="notificationTextInput" type="number" min="0" step="1" class="form-control col-sm-3" />
<div class="input-group-prepend">
<span class="input-group-text notification-text">  Minutes</span>
</div>
</div>
</div>
</div>
<hr />
<!-- Background Music -->
<div class="row ml-1">
<div class="col">
<p class="h6 text-muted mt-2">Background Music</p>
</div>
<div class="col">
<select class="form-control custom-select" id="backgroundMusicOptions" style="width: 10rem">
<option>None</option>
<option>anusha</option>
<option>aditiya</option>
<option>harshita</option>
<option>sourav</option>
<option>yatin</option>
</select>
</div>
</div>
<hr />
<!-- Dark Mode -->
<div class="row ml-1">
<div class="col">
<p class="h6 text-muted mt-2">Dark Mode</p>
</div>
<div class="col">
<label class="switch mb-0">
<input id="darkModeToggle" type="checkbox" />
<span class="slider round"></span>
</label>
</div>
</div>
</div>
<div class="modal-footer">
<div class="container d-flex justify-content-center my-1">
<button type="button" class="btn btn-primary button-pressed-no-shadow shadow-none" data-dismiss="modal" id="saveButton">
Save Changes
</button>
</div>
</div>
</div>
</div>
</div>
<!-- Logging Modal -->
<div class="modal fade" data-keyboard="true" id="loggingModal" tabindex="-1" role="dialog" aria-labelledby="loggingModalLabel" aria-hidden="true">
<div class="modal-dialog modal-xl">
<div class="modal-content">
<div class="modal-header">
<h3 class="modal-title ml-3">Log</h3>
<button type="button" class="close button-pressed-no-shadow" data-dismiss="modal" aria-label="Close">
<span class="modal-close-button" aria-hidden="true"><i class="fas fa-times fa-lg mt-2 mr-2"></i></span>
</button>
</div>
<div class="modal-body">
<div class="log-modal-content">
<table class="table table-striped table-responsive-md" id="logDataTable">
<thead>
<tr>
<th scope="col">Session</th>
<th scope="col">Date</th>
<th scope="col">Start Time</th>
<th scope="col">End Time</th>
<th scope="col">Time</th>
<th scope="col">Description</th>
<th scope="col"></th>
</tr>
</thead>
<tbody id="locationUpdateLog"></tbody>
</table>
<div class="container d-flex justify-content-center">
<span id="NoDataLoggedText">No data logged yet</span>
</div>
</div>
</div>
<div class="modal-footer">
<div class="container d-flex justify-content-center">
<button type="button" class="btn btn-primary button-pressed-no-shadow shadow-none" id="clearButton">Clear Log</button>
</div>
</div>
</div>
</div>
</div>
<!-- To Do Modal -->
<div class="modal fade" data-keyboard="true" id="toDoModal" tabindex="-1" role="dialog" aria-labelledby="toDoModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h3 class="modal-title ml-3">Todo</h3>
<button type="button" class="close button-pressed-no-shadow" data-dismiss="modal" aria-label="Close">
<span class="modal-close-button" aria-hidden="true"><i class="fas fa-times fa-lg mt-2 mr-2"></i></span>
</button>
</div>
<div class="modal-body">
<div class="container todo-main-content">
<!-- Task Input -->
<div class="input-group mb-3">
<input
id="taskInput"
type="text"
class="form-control"
placeholder="Task Description"
aria-label="Task name"
aria-describedby="addTaskButton"
/>
<div class="input-group-append">
<button class="btn btn-outline-secondary button-pressed-no-shadow" id="addTaskButton" onclick="submitTask()" type="button">
Add
</button>
</div>
</div>
<div class="container d-flex justify-content-center">
<span id="NoTaskTodayText">No tasks for today</span>
</div>
<!-- Task items -->
<ul class="list-group" id="listOfTasks"></ul>
</div>
</div>
<div class="modal-footer">
<div class="container d-flex justify-content-center">
<button type="button" class="btn btn-primary button-pressed-no-shadow shadow-none" id="clearTasksButton">Clear Tasks</button>
</div>
</div>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/howler/2.2.0/howler.js"></script>
<script src="js/app.js"></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
crossorigin="anonymous"
></script>
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"
></script>
</body>
</html>