-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
304 lines (262 loc) · 12.7 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, maximum-scale=5.0, user-scalable=yes">
<title>Log</title>
<meta name="author" content="Josh Avanier">
<meta name="description" content="A log and time-tracking system">
<link rel="stylesheet" href="css/macian.min.css">
<style>
button {color: inherit}
.on {outline: none}
::-webkit-scrollbar {display: none}
.pulse{animation-name:pulse;animation-duration:2.4s;animation-delay:0s;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-direction:alternate}@keyframes pulse{from{opacity: .1}to{opacity:1}}
</style>
<script src="utils/aequirys.min.js"></script>
<script src="utils/monocal.min.js"></script>
</head>
<body id="app" class="noselect r p4 p5-m p5-l hf cn">
<header class="mb4 f6">
<h1 class="dib mr4 f5 upc tk">Log</h1>
<button id="b-ovw" class="pv1 tab on bg-cl of mr3" onclick="Log.tab('ovw')" title="Overview">🞆</button>
<button id="b-lis" class="pv1 tab on bg-cl o5 mr3" onclick="Log.tab('lis')" title="Details">☷</button>
<button id="b-vis" class="pv1 tab on bg-cl o5 mr3" onclick="Log.tab('vis')" title="Visualisation">☵</button>
<button id="b-tab" class="pv1 tab on bg-cl o5 mr3" onclick="Log.tab('tab')" title="Data Table">🞏</button>
<button id="b-set" class="pv1 tab on bg-cl o5 mr3" onclick="Log.tab('set')" title="Guide">?</button>
<div class="rf f5">
<span id="timer" class="dn di-m di-l mr3" title="Current Log Session Duration">00:00:00</span>
<span id="status" title="Log Status">⏺</span>
</div>
</header>
<div id="ovw" class="sect h9">
<div class="c2 pr4-l mb4">
<h3 id="peakTimesTitle" class="mb4 f6 fwn" title="Peak Times">▲</h3>
<div id="phc" class="mb4 sh5 wf" title="Peak Hours"></div>
<div id="pdc" class="mb4 sh5 wf" title="Peak Days"></div>
<h3 id="forecastTitle" class="mb3 f6 fwn" title="Today's Forecast">◆</h3>
<div class="f6 mon r">
<p class="mb1 c3 c3-m cc-l">
<span class="o7" title="Sector Focus">SF</span>
<span id="fsf">???</span>
</p>
<p class="mb1 c3 c3-m cc-l">
<span class="o7" title="Project Focus">PF</span>
<span id="fpf">???</span>
</p>
<p class="mb1 c3 c3-m cc-l">
<span class="o7" title="Peak Time">PT</span>
<span id="fpt">00:00</span>
</p>
<p class="mb1 c3 c3-m cc-l">
<span class="o7" title="Session Duration">SD</span>
<span id="fsd">0.00 h</span>
</p>
</div>
</div>
<div class="c8 ph4-l hf-l oya-l">
<h3 id="overviewTitle" class="mb4 f6 fwn" title="Overview">🞆</h3>
<div class="ph1">
<div class="mb3 psr wf sh2 bl br">
<div class="psa sh1 br o5" style="left:4.17%"></div>
<div class="psa hf br o7" style="left:8.33%"></div>
<div class="psa sh1 br o5" style="left:12.5%"></div>
<div class="psa hf br o7" style="left:16.67%"></div>
<div class="psa sh1 br o5" style="left:20.83%"></div>
<div class="psa hf br o7" style="left:25%"></div>
<div class="psa sh1 br o5" style="left:29.17%"></div>
<div class="psa hf br o7" style="left:33.33%"></div>
<div class="psa sh1 br o5" style="left:37.5%"></div>
<div class="psa hf br o7" style="left:41.67%"></div>
<div class="psa sh1 br o5" style="left:45.83%"></div>
<div class="psa hf br o7" style="left:50%"></div>
<div class="psa sh1 br o5" style="left:54.17%"></div>
<div class="psa hf br o7" style="left:58.33%"></div>
<div class="psa sh1 br o5" style="left:62.5%"></div>
<div class="psa hf br o7" style="left:66.67%"></div>
<div class="psa sh1 br o5" style="left:70.83%"></div>
<div class="psa hf br o7" style="left:75%"></div>
<div class="psa sh1 br o5" style="left:79.17%"></div>
<div class="psa hf br o7" style="left:83.33%"></div>
<div class="psa sh1 br o5" style="left:87.5%"></div>
<div class="psa hf br o7" style="left:91.67%"></div>
<div class="psa sh1 br o5" style="left:95.83%"></div>
</div>
<div id="dayChart" class="mb3 psr wf sh2" title="Today's Timeline"></div>
</div>
<div id="weekChart" class="vh3 mb5"></div>
<ul class="lsn f6 lhc">
<li class="mb4 w5 w2-m w2-l lf">
<p class="f3 fwb"><span id="LHT">0.00</span> h</p>
<p class="f6">
<span class="mr2" title="Logged Hours (Today)">LHt</span>
<span id="lhtt">0.00</span>
</p>
</li>
<li class="mb4 w5 w2-m w2-l lf">
<p class="f3 fwb"><span id="ASDT">0.00</span> h</p>
<p class="f6">
<span class="mr2" title="Average Session Duration (Today)">ASDt</span>
<span id="asdtt">0.00</span>
</p>
</li>
<li class="mb4 w5 w2-m w2-l lf">
<p class="f3 fwb"><span id="LSN">0.00</span> h</p>
<p class="f6">
<span class="mr2" title="Shortest Log Session">LSn</span>
<span id="lsnt">0.00</span>
</p>
</li>
<li class="mb4 w5 w2-m w2-l lf">
<p class="f3 fwb"><span id="LSX">0.00</span> h</p>
<p class="f6">
<span class="mr2" title="Longest Log Session">LSx</span>
<span id="lsxt">0.00</span>
</p>
</li>
<li class="mb4 w5 w2-m w2-l lf">
<p class="f3 fwb"><span id="LPT">0.00</span>%</p>
<p class="f6">
<span class="mr2" title="Log Percentage (Today)">LPt</span>
<span id="lptt">0.00</span>
</p>
</li>
</ul>
</div>
<div class="c2 pl4-l hf-l oya-l">
<h3 id="sectorsTodayTitle" class="mb4 f6 fwn"></h3>
<ul id="sectorBars" class="lsn mb4 h4-l oya-l"></ul>
<ul id="projectBars" class="lsn h4-l oya-l"></ul>
</div>
</div>
<div id="lis" class="dn sect h9 r">
<div class="c3 pr4-l hf-l">
<h3 id="sectorsTitle" class="mb3 f6 fwn"></h3>
<ul id="sectorsList" class="lsn h9-l oya-l pr3"></ul>
</div>
<div class="c6 ph4-l">
<h3 id="statsTitle" class="mb4 f6 fwn"></h3>
<div class="mb5 vh3 wf" id="peakTimesHistory" title="Peak Times: What your average day looks like"></div>
<ul class="lsn f6 lhc">
<li class="mb4 w5 w2-m w2-l lf">
<p class="f3 fwb"><span id="LHH">0.00</span> h</p>
<p class="f6" title="Logged Hours (History)">LHh</p>
</li>
<li class="mb4 w5 w2-m w2-l lf">
<p class="f3 fwb"><span id="LSNH">0.00</span> h</p>
<p class="f6" title="Smallest Log Session (History)">LShn</p>
</li>
<li class="mb4 w5 w2-m w2-l lf">
<p class="f3 fwb"<span id="LSXH">0.00</span> h</p>
<p class="f6" title="Longest Log Session (History)">LShx</p>
</li>
<li class="mb4 w5 w2-m w2-l lf">
<p class="f3 fwb"><span id="LPH">0.00</span>%</p>
<p class="f6" title="Log Percentage (History)">LPh</p>
</li>
<li class="mb4 w5 w2-m w2-l lf">
<p class="f3 fwb"><span id="ASD">0.00</span> h</p>
<p class="f6" title="Average Session Duration (History)">ASD</p>
</li>
</ul>
</div>
<div class="c3 pl4-l hf-l">
<h3 id="projectsTitle" class="mb3 f6 fwn"></h3>
<ul id="projectsList" class="lsn h9-l oya-l pr3"></ul>
</div>
</div>
<div id="vis" class="dn sect h9 r" title="Distribution of Time: Each row is a day and each bar is a log session."></div>
<div id="tab" class="dn sect wf h9 oya">
<table class="bn wf">
<thead>
<tr class="f6 al">
<th id="tableDate" title="Date"></th>
<th id="tableStart" title="Start"></th>
<th id="tableEnd" title="End"></th>
<th id="tableDuration" title="Duration"></th>
<th id="tableSector" title="Sector"></th>
<th id="tableProject" title="Project"></th>
<th id="tableActivity" title="Activity"></th>
</tr>
</thead>
<tbody id="logbook" class="f6"></tbody>
</table>
</div>
<div id="set" class="dn sect wf r h9-l f6 lhc oya">
<div class="mb5 mb0-l c6 pr4-l hf-l oya-l">
<h2 class="mb3 f5">Guide</h2>
<p class="mb4">The Log is designed for single-tasking. When you start a log, focus on your activity; when you feel like stopping, simply end the log.
<h3 class="mb3 f5">Console</h3>
<p class="mb4 m">Use the console to enter commands. The console is summoned when you start typing. Here are a list of available commands:</p>
<p class="mb3 m">To start a log. Mind the quotes, please:</p>
<div class="mb4 bl pl3 m">
<p class="mb2">set background #aabbcc</p>
<p>start "Sector or Category" "Title" "A description"</p>
</div>
<p class="mb3 m">To end a log:</p>
<div class="mb4 bl pl3 m">
<p>end</p>
</div>
<p class="mb3 m">To change the interface's background colour, set a hexadecimal colour of your choice. HTML-friendly colour names are also accepted:</p>
<div class="mb4 bl pl3 m">
<p class="mb2">set background #aabbcc</p>
<p>set background aquamarine</p>
</div>
<p class="mb3 m">To change the interface's text colour, set a hexadecimal colour of your choice. HTML-friendly colour names are also accepted:</p>
<div class="mb4 bl pl3 m">
<p class="mb2 m">set color #112233</p>
<p>set color black</p>
</div>
<p class="mb3 m">Perhaps you don't find my arbitrary choice of icons to be useful. You may enable/disable them:</p>
<div class="mb4 bl pl3 m">
<p>set icons true/false</p>
</div>
<p class="mb3 m">To change the number of log days displayed in the overview chart, the visualisation section, and the log table:</p>
<div class="mb4 bl pl3 m">
<p class="mb2">set view 30 // shows only the last 30 days</p>
<p>set view 7 // shows only the last 7 days</p>
</div>
<p class="mb3 m">To change the calendar system used, choose between the Gregorian, MONOCAL, or Aequirys calendars. This does not affect your logs. It simply shows dates differently:</p>
<div class="mb4 bl pl3 m">
<p class="mb2">set calendar gregorian</p>
<p class="mb2">set calendar monocal</p>
<p>set calendar aequirys</p>
</div>
<p class="mb3 m">To change the time format, choose between 12-hours or 24-hours:</p>
<div class="mb4 bl pl3 m">
<p class="mb2">set time 12</p>
<p>set time 24</p>
</div>
<p class="mb3 m">To change the interface's text colour, set a hexadecimal colour of your choice. HTML-friendly colour names are also accepted:</p>
<div class="mb4 bl pl3 m">
<p class="mb2">set color #112233</p>
<p>set color black</p>
</div>
<p class="mb2 m">And lastly, if you have an existing log and/or config file, you may want to import them. You simply need to supply the location of the folder where your log.js and config.js is stored. You will also have to restart the Log.</p>
<p class="mb3 m">This will be the case for now but rest assured I will find a way to remedy this so you wouldn't have to import your data with every update.</p>
<div class="bl pl3 m">
<p>import /home/folder/location</p>
</div>
</div>
<div class="mb5 mb0-l c6 pl4-l">
<h2 class="mb3 f5">About</h2>
<p class="mb4 m">The Log is a log and time-tracking system created by Josh Avanier. Its primary purpose is to provide insight to how one's time is spent — insight that may then be used to optimise personal productivity and better manage time.</p>
<h3 class="mb3 f5">Contribution</h3>
<p class="mb3 m">This project is open-source and the source code is available on GitHub under the MIT License. If you found any bugs or would like to contribute to the development of this project, be my guest:</p>
<p class="bl pl3 mb4 m">https://github.com/joshavanier/log/</p>
<p class="mb3 m">If you have any thoughts, comments, suggestions, questions, or if you simply want to say hello:</p>
<p class="bl pl3 mb4 m">Twitter: @joshavanier</p>
<p>Thank you for taking the time to try this out.</p>
</div>
</div>
<form id="cmd" class="dn psf b0 l0 wf f6 bst" action="#" onsubmit="return false;" autocomplete="off" spellcheck="false">
<input type="text" class="wf bg-1 blanc on bn p4" id="console" autofocus="autofocus" placeholder="> Log.console" />
</form>
<script src="data/config.js"></script>
<script src="data/log.js"></script>
<script src="js/log.js"></script>
<script>
Log.init()
</script>
</body>
</html>