-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1276 lines (1258 loc) · 60.3 KB
/
Copy pathindex.html
File metadata and controls
1276 lines (1258 loc) · 60.3 KB
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
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html>
<head>
<title>Working hours</title>
<link rel="shortcut icon" type="image/png" href="images/clock64.png" />
<link rel="manifest" href="manifest.json" crossorigin="anonymous">
<meta name="robots" content="index">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-sRIl4kxILFvY47J16cr9ZwB07vP4J8+LH7qKQnuqkuIAvNWLzeN8tE5YBujZqJLB" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js"
integrity="sha384-FKyoEForCGlyvwx9Hj09JcYn3nv7wiPVlz7YYwJrWVcXK/BmnVDxM+D2scQbITxI" crossorigin="anonymous"
defer></script>
<!-- Glow Cookies -->
<script src="https://cdn.jsdelivr.net/gh/manucaralmo/GlowCookies@3.1.8/src/glowCookies.min.js"></script>
<script>
glowCookies.start('en', {
style: 1,
analytics: 'G-LDC8QVPCMG',
policyLink: '#policy',
hideAfterClick: true,
border: 'none',
acceptBtnBackground: getComputedStyle(document.documentElement).getPropertyValue('--bs-blue')
});
</script>
<!-- Font Awsome -->
<link href="css/all.min.css" rel="stylesheet" defer>
<!-- Custom Styles -->
<link href="css/bootstrap_specific_style.css" rel="stylesheet" defer>
<!-- Day.js -->
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/dayjs@1/dayjs.min.js" defer></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/dayjs@1/plugin/duration.js" defer></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/dayjs@1/plugin/isSameOrBefore.js" defer></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/dayjs@1/plugin/customParseFormat.js"
defer></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/dayjs@1/plugin/utc.js" defer></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/dayjs@1/plugin/isBetween.js" defer></script>
<!-- jsPDF and jsPDF-AutoTable -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js" defer></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf-autotable/3.5.31/jspdf.plugin.autotable.min.js"
defer></script>
<!-- https://day.js.org/docs/en/installation/installation -->
<!-- Custom scripting -->
<script type="text/javascript" src="js/javascript.js" defer></script>
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js" defer></script>
<script type="text/javascript" src="js/graphs.js" defer></script>
<script type="text/javascript" src="js/editable_table.js" defer></script>
<script type="text/javascript" src="js/introduction.js" defer></script>
<script type="text/javascript" src="js/notifications.js" async></script>
<script type="text/javascript" src="js/animations.js" async></script>
</head>
<body>
<!-- Modal HTML -->
<div id="modalabout" class="modal fade" tabindex="-1">
<div class="modal-dialog modal-lg">
<div class="modal-content px-2">
<div class="modal-header">
<h2>About</h2>
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body">
<p>
Author: <a href="https://www.linkedin.com/in/sennejanssens/" target="_blank">Senne Janssens</a>
(Send me a message with feedback or suggestions ;) )<br>
Version: <span id="currentappversion">20260126.1</span> <br>
Release notes: <a href="https://github.com/Lefky/lefky.github.io/commits/master"
target="_blank">Check the master branch on Github</a>
</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div id="modalpolicy" class="modal fade" tabindex="-1">
<div class="modal-dialog modal-lg">
<div class="modal-content px-2">
<div class="modal-header">
<h2>Cookie policy</h2>
<button type="button" class="btn float-end" data-bs-dismiss="modal"><i
class="fas fa-times float-end"></i></button>
</div>
<div class="modal-body">
<div class="l-section-h i-cf">
<p><strong>What are cookies?</strong></p>
<p>
Cookies are small pieces of data that a website asks your browser to store on your computer
or mobile device when
you visit the website or certain pages. The cookie allows the website to “remember” your
actions or preferences
over time. Most browsers support cookies, but users can set their browsers to decline them
and can delete them
whenever they like.
</p>
<p>
Cookies will usually contain the name of the website where the cookie has come from, how
long the cookie will
remain on your device, and a value which is usually a randomly generated unique number.
</p>
<p>
Some cookies will be deleted as soon as you leave the website (the so-called “session
cookies”), other cookies
will remain stored on your computer or mobile device and will help us identify you as a
visitor of our website
(the so-called “permanent cookies”).
</p>
<p><strong>Why do we use cookies?</strong></p>
<p>Cookies on our Website are used for a variety of different purposes.</p>
<p>
We use cookies to improve the user-experience on the Website and to map your surfing
behaviour (e.g. the pages
you have visited and the time you spent on that page). Cookies make our Website easier to
use and allow us to
better tailor our Website to your interests and needs. Cookies are also used to help speed
up your future
activities and experience on the Website. We use cookies, for example, to remember your
language preferences.
</p>
<p>
We also use cookies to compile anonymous, aggregated statistics that allow us to understand
how our Website is
being used and how we can improve our services.
</p>
<p><strong>Which cookies do we use?</strong></p>
<p>We use first party and third party cookies:</p>
<p>First party cookies are cookies created by the Website itself. These cookies are used to
optimize your user-experience.</p>
<p>
Third party cookies are cookies created by parties other than the Website. Third party
cookies in relation to our
Website are Facebook, Twitter, LinkedIn and Google Analytics. Google Analytics is Google’s
analytics tool which
helps us understand how you engage with the Website. It may use a set of cookies to collect
information and
report Website usage statistics without personally identifying individual visitors to
Google. We mask your
IP-address, have a data processing amendment with Google and don’t share your data
with Google. If you
want to opt out for Google Analytics click this <a>button</a>. The main cookie used by
Google Analytics is the
‘___ga’ cookie.
</p>
<p>A further distinction can be made between the following types of cookies:</p>
<ul>
<li>
<p>Necessary cookies: These are required for the operation of our Website. They include
for example cookies
that enable you to log in.</p>
<p>Our necessary cookies are named here:</p>
<table class="table table-borderless">
<tbody>
<tr>
<td class="w-100">None</td>
</tr>
</tbody>
</table>
</li>
<li>
<p>Analytical/performance cookies: These cookies allow us to analyse our webtraffic, to
see the number of users
of our Website and how the users navigate through our Website.</p>
<p>Our analytical/performance cookies are named here:</p>
<table class="table">
<tbody>
<tr>
<th class="w-25">Cookie name</td>
<th class="w-25">Default expiration time</td>
<th class="w-25">Description</td>
<th class="w-25">Domain</td>
</tr>
<tr>
<td class="w-25">_gid</td>
<td class="w-25">2 hours</td>
<td class="w-25">Used to distinguish users.</td>
<td class="w-25">.lefky.github.io</td>
</tr>
<tr>
<td class="w-25">_ga</td>
<td class="w-25">2 years</td>
<td class="w-25">Used to distinguish users.</td>
<td class="w-25">.lefky.github.io</td>
</tr>
<tr>
<td class="w-25">_ga_<container-id></td>
<td class="w-25">2 years</td>
<td class="w-25">Used to persist session state.</td>
<td class="w-25">.lefky.github.io</td>
</tr>
</tbody>
</table>
</li>
<li>
<p>Functional cookies: These cookies ‘remember’ the choices you made on our Website
(e.g. language preference)
making the Website more user-friendly and enhancing your user experience.</p>
<p>Our functional cookies are named here:</p>
<table class="table table-borderless">
<tbody>
<tr>
<td class="w-100">None</td>
</tr>
</tbody>
</table>
</li>
<li>
<p>Targeting cookies: These show us the pages you have visited and the links you have
followed, making
advertisements more relevant to your interests.</p>
<p>Our targeting cookies are named here:</p>
<table class="table table-borderless">
<tbody>
<tr>
<td class="w-100">None</td>
</tr>
</tbody>
</table>
</li>
</ul>
<p><strong>How can you manage or delete cookies?</strong></p>
<p>
You can at any time manage or delete cookies using the settings on your internet browser,
allowing you to refuse
some or all cookies. Turning off cookies will limit the service that we are able to provide
and may affect your
user-experience. Deleting cookies may result in manually adjusting preferences every time
you visit our Website.
For more details about controlling and/or deleting cookies, visit the page corresponding to
your browser for
more information:
</p>
<p>
<a href="https://support.apple.com/kb/ph19214?locale=en_US" target="_blank"
rel="noopener noreferrer">Safari</a><br />
<a href="https://support.google.com/chrome/answer/95647?co=GENIE.Platform%3DDesktop&hl=en"
target="_blank" rel="noopener noreferrer">Google Chrome</a><br />
<a href="https://support.mozilla.org/en-US/kb/cookies-information-websites-store-on-your-computer"
target="_blank" rel="noopener noreferrer">Mozilla Firefox</a><br />
<a href="https://support.microsoft.com/en-us/kb/260971" target="_blank"
rel="noopener noreferrer">Internet Explorer</a><br />
<a href="https://support.microsoft.com/en-us/microsoft-edge/delete-cookies-in-microsoft-edge-63947406-40ac-c3b8-57b9-2a946a29ae09"
target="_blank" rel="noopener noreferrer">Edge</a>
</p>
<p>For other browsers, please consult the documentation provided by the browser operator.</p>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div id="modalsettings" class="modal fade" tabindex="-1">
<div class="modal-dialog modal-lg">
<div class="modal-content px-2">
<div class="modal-header">
<h2>Settings</h2>
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body">
<p>
Use Google Chrome, Firefox or any non-microsoft browser for optimal results. Let's be honest
here... Edge or IE are crap.
<p>
<p>
Set this page as your browser startup page or pin the tab to automatically start counting when
you open your browser.<br><br>
Hitting "ENTER" will add the time corresponding to the selected value next to 'Overtime' to the
end date (and break time if defined).
</p>
<p>
<div class="container">
<div class="row">
<div class="col-sm justify-content-center text-center">
<button id="btn_getting_started" class="btn btn-outline-secondary btn-sm"
onclick="startIntroduction();"><i class="fas fa-magic me-2"></i> Run through the
"Get started" wizard.</button>
</div>
<div class="col-sm justify-content-center text-center">
<button type="button" class="btn btn-outline-secondary btn-sm" data-bs-toggle="modal"
data-bs-target="#modalpolicy"><i class="fas fa-cookie me-2"></i> Cookie
policy</button>
</div>
</div>
</div>
</p>
<p>
<h4>Import / export / delete</h4>
If you delete your browser data the history will reset. You can export and import your data.<br><br>
<div class="container">
<div class="row gy-3">
<div class="col-sm-4 text-center">
<button class="btn btn-outline-secondary btn-sm w-100 h-100" id="exportHistory"
onclick="exportHistory()">
<i class="fas fa-file-code me-2"></i> Export History
</button>
<a id="exportHistoryLink" class="d-none">Export</a>
<input type="file" id="importFile" accept=".json" class="d-none" />
</div>
<div class="col-sm-4 text-center">
<button class="btn btn-outline-secondary btn-sm w-100 h-100" id="exportCSV"
onclick="exportCSV()">
<i class="fas fa-file-csv me-2"></i> Export as CSV<br><span
style="font-size: 0.7em">(not
importable!)</span>
</button>
<a id="exportCSVLink" class="d-none">Export</a>
</div>
<div class="col-sm-4 text-center">
<button class="btn btn-outline-secondary btn-sm w-100 h-100" data-bs-toggle="modal"
data-bs-target="#modalexport" onclick="setExportRange('thisMonth')">
<i class="fas fa-file-pdf me-2"></i> Export as PDF
</button>
</div>
<div class="col-sm-4 text-center">
<button class="btn btn-outline-secondary btn-sm w-100 h-100" id="importHistory">
<i class="fas fa-file-import me-2"></i> Import History
</button>
</div>
<div class="col-sm-4 text-center">
<button class="btn btn-outline-secondary btn-sm w-100 h-100" id="deleteHistory"
onclick="deleteHistory()">
<i class="fas fa-trash-alt me-2"></i> Delete History
</button>
</div>
<div class="col-sm-4 text-center">
<a class="btn btn-outline-secondary btn-sm w-100 h-100 d-flex align-items-center justify-content-center"
target="_blank" href="sample_data/working_history_sample_data.json">
<i class="fas fa-download me-2"></i> Download Sample Data
</a>
</div>
</div>
</div>
<p class="mt-3">
You can download the example as a '.json' file and import it into the application.
</p>
<form class="mb-3">
<div class="form-check">
<input type="checkbox" class="form-check-input" id="autobackupoption"
name="autobackupoption" data-bs-toggle="collapse" data-bs-target="#divautobackup">
<label class="form-check-label" for="autobackupoption">Enable semi-automatic
backups.</label>
</div>
<div class="collapse" id="divautobackup">
<div class="d-flex align-items-center flex-wrap">
<label class="col-form-label" for="autobackupday">Backup on day </label>
<input type="number" name="autobackupday" id="autobackupday"
class="form-control flex-grow-0 w-f-80 col-sm-2 mx-1" min="1" max="31" value="1"
onchange="maxValuesCustomTimeOption('autobackup', getAutobackupPeriodUnit(), calculateExecutionDay(getAutobackupDay(), getAutobackupPeriod(), getAutobackupPeriodUnit()), document.getElementById('autobackupperiod'), document.getElementById('autobackupday'))">
<label class="col-form-label" for="autobackupperiod"> of every </label>
<input type="number" name="autobackupperiod" id="autobackupperiod"
class="form-control flex-grow-0 w-f-80 col-sm-2 mx-1" min="1" value="1"
onchange="maxValuesCustomTimeOption('autobackup', getAutobackupPeriodUnit(), calculateExecutionDay(getAutobackupDay(), getAutobackupPeriod(), getAutobackupPeriodUnit()), document.getElementById('autobackupperiod'), document.getElementById('autobackupday'))">
<select name="autobackupperiodunit" id="autobackupperiodunit"
class="form-select flex-grow-0 w-f-100 col-sm-2 mx-1"
onchange="maxValuesCustomTimeOption('autobackup', getAutobackupPeriodUnit(), calculateExecutionDay(getAutobackupDay(), getAutobackupPeriod(), getAutobackupPeriodUnit()), document.getElementById('autobackupperiod'), document.getElementById('autobackupday'))">
<option value="days">days</option>
<option value="weeks">weeks</option>
<option value="months" selected>months</option>
</select>
<button type="button" id="autobackupsavebutton" class="btn btn-outline-secondary"
onclick="saveBackupDay()">Save</button>
<div class="input-group my-3">
<span class="input-group-text">Backup date</span>
<input type="text" name="autobackupdate" id="autobackupdate"
class="form-control flex-grow-0 w-33 col-sm-5" size="20" disabled>
</div>
</div>
</div>
</form>
</p>
<p>
<h4>Parameters</h4>
The value settings are saved. So if you enable something it will still be enabled on the next
opening of the page.
</p>
<p>
<i>Custom "Overtime @ ..."</i><br>
 will set a custom hourschedule option so you can enter specific values that aren't in the
defaults.
<div class="input-group mb-3">
<span class="input-group-text">Hour schedule</span>
<input type="number" name="customhourschedule_value" id="customhourschedule_value"
class="form-control flex-grow-0 w-f-80 col-2" placeholder="0" min="0" max="24"
onchange="setCustomHourSchedule(this.value)">
</div>
</p>
<p>
<i>"Don't save today."</i><br>
 won't save today's date for the remainder of the day (until timestamp 00:00) or unless
disabled again.
</p>
<p>
<i>"Automatically set end time on close."</i><br>
 will change the end time to the timestamp on which you close or refresh the window and
thus overwrite any manual changes you made.<br>
</p>
<p>
<i>"Subtract X min from time on open."</i><br>
 will subtract X min from the time the page was opened NEXT DAY YOU OPEN THE PAGE. This is
to take the time to boot your laptop, ... into account.
<div class="input-group mb-3">
<span class="input-group-text">Minutes to subtract</span>
<input type="number" name="startminsubtract_value" id="startminsubtract_value"
class="form-control flex-grow-0 w-f-80 col-2" placeholder="5" min="0" max="60"
onchange="set_startminsubtract(this.value)">
</div>
</p>
<p>
<form class="mb-3">
<div class="form-check">
<input type="checkbox" class="form-check-input" id="notificationsoption"
name="notificationsoption">
<label class="form-check-label" for="notificationsoption">Enable notifications</label>
</div>
</form>
</p>
<!--<p>
<h4>Reporting settings</h4>
Settings for the reporting view.
<p>
<div class="input-group">
<label class="col-form-label" for="reporting_country">Country: </label>
<select name="reporting_country" id="reporting_country" class="form-select flex-grow-0 w-f-120 col-sm-2 mx-1">
<option value="none" selected>None</option>
</select>
</div>
</p>
</p>-->
<p>
<h4>User interface</h4>
<p class="mt-3 no-bottom-margin">
Appearance:
</p>
<form class="mb-3">
<div class="form-check form-check-inline align-middle">
<input class="form-check-input" type="radio" name="appearance" id="appearance_auto"
value="auto" checked onchange="setTheme(this.value);">
<label class="form-check-label" for="appearance_auto"><i class="fa fa-eclipse fontsize150"
aria-hidden="true"></i> Auto</label>
</div>
<div class="form-check form-check-inline align-middle">
<input class="form-check-input" type="radio" name="appearance" id="appearance_light"
value="light" onchange="setTheme(this.value);">
<label class="form-check-label align-middle" for="appearance_light"><i
class="fa fa-sun fontsize150" aria-hidden="true"></i> Light</label>
</div>
<div class="form-check form-check-inline align-middle">
<input class="form-check-input" type="radio" name="appearance" id="appearance_dark"
value="dark" onchange="setTheme(this.value);">
<label class="form-check-label" for="appearance_dark"><i class="fa fa-moon fontsize150"
aria-hidden="true"></i> Dark</label>
</div>
</form>
<p class="no-bottom-margin">
Select which different stats and options should be visible in the UI.
</p>
<form class="mb-3">
<div class="form-check">
<input type="checkbox" class="form-check-input" id="alloption" name="alloption"
onclick="allCheckBox(this, 'uiDisplayOptions');">
<label class="form-check-label" for="alloption">Show / hide all</label>
</div>
</form>
<form id="uiDisplayOptions">
<div class="form-check">
<input type="checkbox" class="form-check-input" id="overtimeoption" name="overtimeoption"
data-bs-toggle="collapse" data-bs-target="#divovertime">
<label class="form-check-label" for="overtimeoption">Show overtime count</label>
</div>
<div class="form-check">
<input type="checkbox" class="form-check-input" id="totalhoursoption"
name="totalhoursoption" data-bs-toggle="collapse" data-bs-target="#divtotalhours">
<label class="form-check-label" for="totalhoursoption">Show total hours count</label>
</div>
<div class="form-check">
<input type="checkbox" class="form-check-input" id="weeklyovertimeoption"
name="weeklyovertimeoption" data-bs-toggle="collapse"
data-bs-target="#divovertimeweekly">
<label class="form-check-label" for="weeklyovertimeoption">Show weekly overtime
balance</label>
</div>
<div class="form-check">
<input type="checkbox" class="form-check-input" id="totalovertimeoption"
name="totalovertimeoption" data-bs-toggle="collapse" data-bs-target="#divovertimetotal">
<label class="form-check-label" for="totalovertimeoption">Show total overtime
balance</label>
</div>
<div class="form-check">
<input type="checkbox" class="form-check-input" id="summaryoption" name="summaryoption"
data-bs-toggle="collapse" data-bs-target="#divsummary">
<label class="form-check-label" for="summaryoption">Show summary</label>
</div>
<div class="form-check">
<input type="checkbox" class="form-check-input" id="historyoption" name="historyoption"
data-bs-toggle="collapse" data-bs-target="#historygroup">
<label class="form-check-label" for="historyoption">Show history</label>
</div>
<div class="form-check">
<input type="checkbox" class="form-check-input" id="parametersoption"
name="parametersoption" data-bs-toggle="collapse" data-bs-target="#divparameters">
<label class="form-check-label" for="parametersoption">Show parameters</label>
</div>
</form>
<p class="mt-3 no-bottom-margin">
Breaktime input format:
</p>
<div class="row align-items-center">
<div class="col-1">
<div class="input-group">
<label>Duration</label>
</div>
</div>
<div class="w-f-90">
<div class="form-check form-switch-md form-switch ps-5">
<input type="checkbox" class="form-check-input checkneutral"
id="breaktime_timeselection_option_timerange" onchange="breaktimeTimeselection();">
</div>
</div>
<div class="col-2 p-0">
<label class="form-check-label" for="breaktime_timeselection_option_timerange">Time
range</label>
</div>
</div>
</p>
<p>
<h4>History deletion policy</h4>
<div class="mb-3 ms-1">
<div class="input-group mb-2">
<div class="row w-100">
<div class="col-sm">
<div class="form-check">
<input type="radio" id="historydeleteoptiondays" name="historydeleteoption"
class="form-check-input" value="days" checked="checked"
onchange="showHistorydeleteoptionContent()">
<label class="form-check-label" for="historydeleteoptiondays"
data-bs-toggle="tooltip" data-bs-placement="right"
title="This will keep XXX days of data.">Max days to keep history</label>
</div>
</div>
<div class="col-sm">
<div class="form-check">
<input type="radio" id="historydeleteoptionperiod" name="historydeleteoption"
class="form-check-input" value="period"
onchange="showHistorydeleteoptionContent()">
<label class="form-check-label" for="historydeleteoptionperiod"
data-bs-toggle="tooltip" data-bs-placement="right"
title="This will delete the entire history on the day that's displayed next to 'Reset date'.">Reset
history on specific day</label>
</div>
</div>
</div>
</div>
<div id="historydeleteoptiondayscontent" class="d-none">
<div class="mb-3">
<div class="input-group">
<span class="input-group-text">Days to keep</span>
<input type="number" name="historyretain" id="historyretain"
class="form-control flex-grow-0 w-f-80 col-sm-2" min="0" max="99999">
</div>
</div>
</div>
<div id="historydeleteoptionperiodscontent" class="d-none">
<div class="mb-3">
<div class="d-flex align-items-center flex-wrap">
<label class="col-form-label" for="historyresetday">Reset on day </label>
<input type="number" name="historyresetday" id="historyresetday"
class="form-control flex-grow-0 w-f-80 col-sm-2 mx-1" min="1" max="31"
onchange="maxValuesCustomTimeOption('cleaning', getHistoryResetPeriodUnit(), calculateExecutionDay(getHistoryResetDay(), getHistoryResetPeriod(), getHistoryResetPeriodUnit()), document.getElementById('historyresetperiod'), document.getElementById('historyresetday'))">
<label class="col-form-label" for="historyresetperiod"> of every </label>
<input type="number" name="historyresetperiod" id="historyresetperiod"
class="form-control flex-grow-0 w-f-80 col-sm-2 mx-1" min="1"
onchange="maxValuesCustomTimeOption('cleaning', getHistoryResetPeriodUnit(), calculateExecutionDay(getHistoryResetDay(), getHistoryResetPeriod(), getHistoryResetPeriodUnit()), document.getElementById('historyresetperiod'), document.getElementById('historyresetday'))">
<select name="historyresetperiodunit" id="historyresetperiodunit"
class="form-select flex-grow-0 w-f-100 col-sm-2 mx-1"
onchange="maxValuesCustomTimeOption('cleaning', getHistoryResetPeriodUnit(), calculateExecutionDay(getHistoryResetDay(), getHistoryResetPeriod(), getHistoryResetPeriodUnit()), document.getElementById('historyresetperiod'), document.getElementById('historyresetday'))">
<option value="days">days</option>
<option value="weeks">weeks</option>
<option value="months">months</option>
</select>
<button type="button" id="cleaningdaysavebutton" class="btn btn-outline-secondary"
onclick="saveCleaningDay()">Save</button>
<div class="input-group my-3">
<span class="input-group-text">Reset date</span>
<input type="text" name="resetdate" id="resetdate"
class="form-control flex-grow-0 w-33 col-sm-5" size="20" disabled>
</div>
</div>
</div>
</div>
</div>
</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" id="settingsmodalclosebutton"
data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div id="modalinfo" class="modal fade" tabindex="-1">
<div class="modal-dialog modal-lg">
<div class="modal-content px-2">
<div class="modal-header">
<h2>Info</h2>
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body">
<p>
Here I'm posting good and useful applications for any type of device that are (mostly) free.<br>
I'm using these myself on my computer, smartphone or somewhere else.<br>
If something does cost money, in most cases, it's well spent :)<br><br>
</p>
<p>
<h4>Rambox</h4>
Rambox is an application that allows you to group multiple other applications into 1.<br>
You can for example have 3 outlook inboxes and 2 google calendars opened up in the same
application!<br>
Furthermore, the amount of services, as they call it, you can add are unlimited. And if something
isn't premade you can just <a
href="https://github.com/ramboxapp/community-edition/wiki/Add-a-Custom-Service"
target="_blank">add a custom service</a>.<br>
<br>
<a class="btn btn-outline-success btn-sm" href="https://rambox.pro/" target="_blank"
role="button">Rambox website</a>
</p>
<p>
<h4>Tasker</h4>
Tasker makes your Android smartphone smarter.<br>
It enables you to automate certain tasks wether it'd be settings or SMS related, tasker can make
your life easier.<br>
At the moment of writing it costs €3,59, but for me it's certainly worth it.<br>
Some of the things I'm able to do are setting my phone to silent when I'm at the office, reading my
texts out loud when I'm at home or in the car, automatically setting my alarm in the morning
(different ones when I work from home or not), remind me of birthdays and send random birthday texts
by the push of a button, have my phone go out of vibrating mode make lots of noise when I lost it
somewhere and it receives a certain text, ...<br>
You see the possibilities are really endless!<br>
<br>
<a class="btn btn-outline-success btn-sm"
href="https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm"
target="_blank" role="button">Tasker in the Google playstore</a>
</p>
<p>
<h4>Rainmeter</h4>
Rainmeter is a tool to customize your desktop.<br>
You can add different 'skins' to add buttons or displays to your computers desktop.<br>
Some of these include the weather forecast, quick launch buttons for applications or folders,
monitoring displays (for CPU, GPU, RAM, disk size, ...), music player info and controls, time
clocks, ... And all of this in different flavours.<br>
And the most cool aspect about it: it moves! Skins get updated every X seconds making it possible to
display animations and update your weather etc.<br>
<br>
<img class="rounded mx-auto d-block" width="100%" loading="lazy"
src="https://media1.tenor.com/images/c2f0bcdc67b7417d7e74b53b8f8aefb9/tenor.gif?itemid=15613840" /><br>
You can make your own, but you can also just download skins and even entire layouts. Check the <a
href="https://www.rainmeter.net/discover/" target="_blank">rainmeter discover page</a> to find
links to libraries of great skins.<br>
<br>
<a class="btn btn-outline-success btn-sm" href="https://www.rainmeter.net/" target="_blank"
role="button">Rainmeter website</a>
</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div id="modaledithistory" class="modal fade" tabindex="-1">
<div class="modal-dialog modal-xl">
<div class="modal-content px-2">
<div class="modal-header">
<h2>Edit time history</h2>
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body">
<div id="edit_history_table">
<p>
All times displayed are in decimal hour units. You should edit them in the same
way/units!!!<br>
Visit <a href="https://www.timecalculator.net/time-to-decimal"
target="_blank">timecalculator.net</a> to help you converting.
</p>
<p class="text-danger">
To save an entry you need to click the save button! If you add a date that already exists
it'll be overwritten!
</p>
<p>
You can add corrections by clicking "Add new", entering the date when you want the
correction to occur, filling in the overtime (positive or negative depending on the
correction you want to do) and entering the word "correction" in every other field.<br>
These correction can for example be used when taking up some overtime days, then you just
add a negative correction of the hours you should've worked that day.
</p>
<div class="row align-items-center justify-content-around mb-2">
<div class="col-5">
<div class="input-group ms-2">
<span class="input-group-text" id="history_search"><i class="fas fa-search"
aria-hidden="true"></i></span>
<input class="form-control" id="edit_history_search" type="search"
placeholder="Search dates or corrections" aria-label="Search"
aria-describedby="history_search">
</div>
</div>
<div class="col-7 text-end">
<span class="table-add me-2">
<button type="button" class="btn btn-primary my-1 mx-2"><i class="fa fa-plus"></i>
Add New</button>
</span>
<span class="table-save-all me-2">
<button id="btn_save_all" type="button" class="btn btn-success my-1 mx-2"><i
class="fa fa-save"></i> Save all</button>
</span>
<span class="table-delete-all me-2">
<button type="button" class="btn btn-danger my-1 mx-2"><i class="fa fa-trash"></i>
Delete all</button>
</span>
</div>
</div>
<table id="edit_history_table_object"
class="table table-responsive-lg table-striped table-hover align-middle text-center bg-light-subtle">
<thead>
<tr>
<th class="text-center">Date</th>
<th class="text-center">Start Time</th>
<th class="text-center">Break</th>
<th class="text-center">Total Worked</th>
<th class="text-center">Schedule (Decimal)</th>
<th class="text-center">Summary</th>
<th class="text-center">Action</th>
</tr>
</thead>
<tbody id="edit_history_table_body">
</tbody>
</table>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div id="modalreporting" class="modal fade" tabindex="-1">
<div class="modal-dialog modal-xl">
<div class="modal-content px-2">
<div class="modal-header">
<h2>Reporting</h2>
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body">
<div class="mb-3">
<div class="d-flex align-items-center flex-wrap">
<label for="start_reporting_selection" class="col-form-label">Display history from</label>
<input id="start_reporting_selection" class="form-control mx-2 input-fixedwidth165"
type="date" value="" onchange="initGraphs(); drawGraphs();">
<label for="end_reporting_selection" class="col-form-label">to</label>
<input id="end_reporting_selection" class="form-control mx-2 input-fixedwidth165"
type="date" value="" onchange="initGraphs(); drawGraphs();">
</div>
</div>
<div class="mb-3">
<button type="button" class="btn btn-outline-primary my-1" id="reporting_weektodate">Week to
date</button>
<button type="button" class="btn btn-outline-primary my-1" id="reporting_previousweek">Previous
week</button>
<button type="button" class="btn btn-outline-primary my-1" id="reporting_monthtodate">Month to
date</button>
<button type="button" class="btn btn-outline-primary my-1" id="reporting_previousmonth">Previous
month</button>
<button type="button" class="btn btn-outline-primary my-1" id="reporting_yeartodate">Year to
date</button>
<button type="button" class="btn btn-outline-primary my-1" id="reporting_alltime">All
time</button>
</div>
<p>
You can zoom in to certain graphs by dragging the area you want to zoom in on.<br>
Click right to reset the zoom level.
</p>
<!--<div class="d-flex justify-content-center w-100 h-100">
<div id="Workdays_div"></div>
</div>-->
<div class="d-flex justify-content-center w-100 h-100">
<div id="DaysRegisteredGauge_div" class="d-flex justify-content-center w-25"></div>
<div id="SumOvertimeGauge_div" class="d-flex justify-content-center w-25"></div>
<div id="AvgStarttimeGauge_div" class="d-flex justify-content-center w-25"></div>
<div id="AvgStoptimeGauge_div" class="d-flex justify-content-center w-25"></div>
</div>
<div class="mt-3">
<div class="d-flex align-items-center justify-content-between">
<div class="w-66">
<p>
Money earned by working and from overtime (based on rate).<br>
Enter your rate below and select if this is monthly (will assume 22 workdays each
month) or hourly.
</p>
<div class="d-flex align-items-center">
<div class="me-3">
<div class="form-check">
<input class="form-check-input" type="radio" name="moneyRateUnit"
id="moneyRateUnitHourly" onchange="saveMoneyRateSettings()">
<label class="form-check-label" for="moneyRateUnitHourly">
Hourly
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="moneyRateUnit"
id="moneyRateUnitMonthly" onchange="saveMoneyRateSettings()" checked>
<label class="form-check-label" for="moneyRateUnitMonthly">
Monthly
</label>
</div>
</div>
<div class="input-group ms-3 w-auto">
<span class="input-group-text">Rate (€, $, £, ...)</span>
<input type="number" name="moneyRate" id="moneyRate"
class="form-control flex-grow-0 w-f-80 col-sm-2" min="0" max="99999"
oninput="saveMoneyRateSettings()">
</div>
</div>
</div>
<div id="moneyRateOvertimeGauge_div" class="w-25 d-flex justify-content-center"></div>
</div>
</div>
<div class="d-flex justify-content-center w-100 h-100">
<div id="OvertimeDays_div" class="w-50 d-inline-block"></div>
<div id="Hourschedules_div" class="w-50 d-inline-block"></div>
</div>
<div id="OvertimeDec_div"></div>
<div id="OvertimeCumulative_div"></div>
<div id="StartDec_div"></div>
<div id="StopDec_div"></div>
<div id="TotalDec_div"></div>
<div id="TotalNoBreakDec_div"></div>
<div id="BreakDec_div"></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div id="modalconfirm" class="modal fade" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content px-2">
<div class="modal-header">
<h2>Confirm</h2>
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body"></div>
<div class="modal-footer">
<button type="button" class="btn btn-success" data-bs-dismiss="modal">Yes</button>
<button type="button" class="btn btn-danger" data-bs-dismiss="modal">No</button>
</div>
</div>
</div>
</div>
<div id="modalexport" class="modal fade" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h3>Select Export Period</h3>
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body">
<p>Choose the time range for your PDF report.</p>
<div class="d-flex justify-content-between mb-3 flex-wrap gap-2">
<button class="btn btn-outline-primary btn-sm flex-grow-1"
onclick="setExportRange('thisMonth')">This Month</button>
<button class="btn btn-outline-primary btn-sm flex-grow-1"
onclick="setExportRange('lastMonth')">Last Month</button>
<button class="btn btn-outline-primary btn-sm flex-grow-1"
onclick="setExportRange('allTime')">All
Time</button>
</div>
<div class="input-group mb-3">
<span class="input-group-text">From</span>
<input type="date" id="export_start_date" class="form-control">
</div>
<div class="input-group mb-3">
<span class="input-group-text">To</span>
<input type="date" id="export_end_date" class="form-control">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-success" onclick="exportPDF()">
<i class="fas fa-file-pdf"></i> Generate PDF
</button>
</div>
</div>
</div>
</div>
<!-- Page HTML -->
<div class="container-fluid h-100">
<div id="alertcontainer" class="row d-flex justify-content-center">
<div id="alertnotification"
class="alert alert-danger alert-dismissible fade show w-75 my-4 me-1 alertnotification" role="alert">
<div class="row">
<div class="col-lg-2 text-center py-1 px-4 my-auto">
<i class="far fa-exclamation-triangle fa-4x faa-pulse animated text-warning display-2"></i>
</div>
<div class="col-lg-9 py-1 px-4">
<p class="mb-0">
Changes
<ul>
<li>
Added PDF export functionality. You can now export a report of your working hours in a
nice PDF format. Find it in the settings!
</li>
<li>
Added option to calculate money earned based on your overtime. Check the reporting
modal for this new feature ;)
</li>
<li>
Changed the edit history modal to a more user friendly table based layout.
</li>
</ul>
</p>
<p class="mb-0">
Bugfixes
<ul>
<li>
Styling bugfixes.
</li>
</ul>
</p>
</div>
</div>
<button type="button" class="btn-close" onclick="notificationClosed('click');" data-bs-dismiss="alert"
aria-label="Close"></button>
</div>
<div id="app_alert"
class="alert alert-warning alert-dismissible fade show col-10 col-lg-6 me-1 alertnotification"
role="alert">
<div id="app_alert_message"></div>
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
</div>
<div class="row h-100">
<div class="row w-100 align-self-center">
<div class="col-lg-1 d-none d-lg-block bg-light-subtle"></div>
<div id="inputarea" class="col-lg-5 rounded-end bg-light-subtle">
<form>
<div class="mb-3 pt-3 me-xs-2 me-lg-5">
<div id="divstarttime" class="input-group justify-content-end my-1">
<label class="col-form-label" for="start_time" data-bs-toggle="tooltip"
data-bs-placement="left"
title="Your start time is entered automatically based on the time of opening this window, but you can make adjustments. Set this page as your starting page when opening your browser to make it easy for yourself.">Start
time</label>
<div class="pe-2 ps-3">
<input name="start_time" id="start_time" type="time"
class="form-control mx-1 input-fixedwidth110" onchange="calculateTotal();" />
</div>
</div>
<div id="divbreaktime" class="input-group justify-content-end my-3">
<label class="col-form-label" for="break_time_default" data-bs-toggle="tooltip"
data-bs-placement="left"
title="Choose a default break you take every day. Eg: You're deducted 30 min every day. This value will be saved for the next time the window is opened.You can enter a seperate value manually or by using the buttons too.">
Break<span id="break_time_default_label"> with default</span>
</label>
<div id="break_time_default_div" class="mb-1 mb-md-0 mx-3 me-sm-0">
<select name="break_time_default" id="break_time_default"
class="form-select mb-md-0 input-fixedwidth90" onchange="addBreakDefault();">
<option value="0">0 min</option>
<option value="0.25">15 min</option>
<option value="0.5">30 min</option>
<option value="0.75">45 min</option>
<option value="1">1h</option>
<option value="1">1h 15</option>
<option value="1">1h 30</option>
<option value="1">1h 45</option>
<option value="1">2h</option>
</select>
</div>
<div id="breaktime_timeselection_option_timerange_div" class="pe-2 ps-3 d-none">
<label class="col-form-label" for="break_time_start">from</label>
<input name="break_time_start" id="break_time_start" type="time" value="00:00"
class="form-control mx-1 input-fixedwidth110" onchange="calculateTotal();" />
<label class="col-form-label" for="break_time_end">to</label>
<input name="break_time_end" id="break_time_end" type="time" value="00:00"
class="form-control mx-1 input-fixedwidth110" onchange="calculateTotal();" />
</div>