-
Notifications
You must be signed in to change notification settings - Fork 0
/
datetimegroup.html
executable file
·345 lines (285 loc) · 20.5 KB
/
datetimegroup.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
<html lang="en">
<!--
About: This is a simple JS-application which shows a resettable
date-time-group clock. You can find this notation in all sorts of european disaster-relief contexts, or NATO military cotext.
Author: Dustin Demuth <mail@dmth.eu>
License: See LICENSE file.
Third-party-Content / Ackknowledgements
- This page integrates Icons from http://publicicons.org/
See repo: https://github.com/davidmerfield/Public-Icons
I recolored them to #e6e6e6ff
Notes:
- You can create Data-URL-SVGs base64-content like this:
cat gear.svg | base64 -w 0
but they will most likely not work because of quotes in svg.
So i just pumped data through http://b64.io/
TODO:
- Add TimeZone Identifier
-->
<meta charset="utf-8">
<link rel="shortcut icon" type="image/png" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAA40lEQVQoFQXBQUoCUQAA0Dd+VyUoLdpFRaRtQl1ks2yoQ3SCTFx2jSDMzlH7VIJu0LKmCYJp0QlyIvy9lwAg0bZvpfAKAEAw9i6KoqgwUgeApieViSMnMsduLc21AIKF0qHEKYCe0kwAxn50sSU6A9BTGQIfJoBnDwCYyuFANACc+7MNIBW1a3awDrgXvdgArGGvpgaAX98aPl3bBKzoiAYAaLjy5QapqA25CQCgro47OXCp0gUA0Ld0AQQLpT4A6Cs9CgBNc0tTqUwmNVWZaQFAMFKIoijKDQUgAQAdu4LcGwD/1OlD7ZmN0ywAAAAASUVORK5CYII=" />
<head>
<title>Datetimegroup</title>
<style>
.reload {
background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIgICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgICB4bWxuczpzb2RpcG9kaT0iaHR0cDovL3NvZGlwb2RpLnNvdXJjZWZvcmdlLm5ldC9EVEQvc29kaXBvZGktMC5kdGQiICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiICAgdmVyc2lvb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IHYgNSBoIC01LjAwMDAwNSB6IiAgICAgICBpZD0icmVjdDQ1NTMtNy01LTMiIC8+PHBhdGggICAgICAgc3R5bGU9Im9wYWNpdHk6MTtmaWxsOiNlNmU2ZTY7ZmlsbC1vcGFjaXR5OjAuOTQxMTc2NDc7ZmlsbC1ydWxlOm5vbnplcm87c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuMjI0NDg5ODEiICAgICAgIGQ9Im0gNTkuOTk5ODUxLDUyLjQ5OTU4NCBhIDcuNSw3LjUgMCAwIDEgNy40OTk0OTcsNy40MTMwODUgNy41LDcuNSAwIDAgMSAtNy4zMjU2NzcsNy41ODQ5MDEgNy41LDcuNSAwIDAgMSAtNy42NjkyODcsLTcuMjM3Mjg2IDcuNSw3LjUgMCAwIDEgNy4xNDc5MjIsLTcuNzUyNjQzIiAgICAgICBpZD0icGF0aDQ2MDIiIC8+PC9nPjwvc3ZnPg==);
}
body {
background-color: black;
padding: 0;
margin: 0;
font-family: sans-serif;
}
.nofloat {
display: block;
float: none;
}
.content {
height: 100vh;
width: 90vw;
margin: auto;
}
.clocktexts {
height: 2vw;
padding: 1vw;
}
.clockspace {
}
.clockbox {
margin: auto;
height: 70vh;
width: 90vw;
display: table-cell;
vertical-align: middle;
}
.controlbox {
margin: auto;
height: 30vh;
width: 90vw;
text-align: center;
display: table-cell;
/*vertical-align: top;*/
}
.controlbox ul{
padding:0;
margin:0;
}
.controlbox ul li{
display: inline;
}
button {
height: 15vh;
width: 15vh;
border: 1vh solid green;
color: white;
background-color: transparent;
border-radius: 8px;
}
button:hover {
background-color: green; /* Green */
color: white;
cursor: pointer;
}
.active {
background-color: green;
}
.disabled {
opacity: 0.6;
}
.disabled:hover {
cursor: not-allowed;
}
.button_background{
background-size: 80%;
background-repeat: no-repeat;
background-position: center;
}
.clockannotation {
display: inline;
width: 30%;
color: grey;
font-size: 2vw;
float: left;
}
.clocktextspace {
display: inline;
width: 30%;
color: grey;
font-size: 2vw;
float: left;
}
.runningtime {
display: inline;
width: 40%;
float: right;
text-align: right;
background-size: auto 80%;
background-repeat: no-repeat;
background-position: right;
}
datetimegroup {
display: inline-block;
width: 100%;
color: grey;
text-align: center;
}
.largedtg {
font-size: 10vw;
}
.smalldtg {
font-size: 2vw;
}
datetimegroup > * {
/*vertical-align: bottom;*/
display: inline-block;
}
datetimegroup date {
}
datetimegroup time {
margin-left: 5%;
margin-right: 5%;
color: white;
}
datetimegroup month {
}
datetimegroup year {
margin-left: 5%;
}
</style>
<script type="text/javascript">
var CLOCKID;
var CURRENTTIME;
function BuildDateTimeGroup(datetime=CURRENTTIME) {
var currentT;
if (!datetime) {
currentT = new Date ( );
}
else {
currentT = datetime;
}
var currentHours = currentT.getHours();
var currentMinutes = currentT.getMinutes();
var currentDate = currentT.getDate();
var currentYear = currentT.getFullYear() - 2000; //as we will not travel back in time and this code will not last for 100 Years. this is ok.
currentHours = ( currentHours < 10 ? "0" : "" ) + currentHours;
currentMinutes = ( currentMinutes < 10 ? "0" : "" ) + currentMinutes;
currentDate = ( currentDate < 10 ? "0" : "" ) + currentDate;
var currentMont = currentT.getMonth();
var months = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec'];
var datetimegroup = [];
datetimegroup[0] = String(currentDate);
datetimegroup[1] = String(currentHours);
datetimegroup[2] = String(currentMinutes);
datetimegroup[3] = String(months[currentT.getMonth()]);
datetimegroup[4] = String(currentYear);
return datetimegroup;
}
function DatetimegroupToHTML(datetimegroup, id=rand()) {
var datetimegroup = '<datetimegroup id="'+id+'"><date>'
+ datetimegroup[0]
+ '</date>'
+'<time>'
+'<hours>'
+ datetimegroup[1]
+ '</hours>'
+'<minutes>'
+ datetimegroup[2]
+ '</minutes>'
+ '</time>'
+ '<month>'
+ datetimegroup[3]
+ '</month>'
+ '<year>'
+ datetimegroup[4]
+ '</year></datetimegroup>';
return datetimegroup;
}
function UpdateStoppedTime(datetime=CURRENTTIME) {
/* set the time */
var id = "largedtg";
var dtgHTML = DatetimegroupToHTML(BuildDateTimeGroup(datetime), id);
document.getElementById("clockspace").innerHTML = dtgHTML;
document.getElementById(id).classList.add('largedtg');
}
function setStoppedTimeMode() {
/* set the button to active */
document.getElementById("reset_button").classList.add('active');
/* reset the clock button */
document.getElementById("clock_button").classList.remove('active');
/* Clear the clock, to prevent respawning of the clock element */
RespawnClock("clocktextspace_3")
UpdateStoppedTime();
}
function setRunningTimeMode() {
/* set the button to active */
document.getElementById("clock_button").classList.add('active');
/* reset the clock button */
document.getElementById("reset_button").classList.remove('active');
/* remove the clock */
document.getElementById("clocktextspace_3").innerHTML = "";
/* Clear the clock, to prevent respawning of the clock element */
RespawnClock("clockspace");
}
function UpdateRunningTime(datetime=CURRENTTIME, where) {
/*
Where depicts the ID of the div, where the clock shall be spawned
*/
var id = "dtg";
var dtgHTML = DatetimegroupToHTML(BuildDateTimeGroup(datetime), id);
document.getElementById(where).innerHTML = dtgHTML;
if (where == "clockspace") {
document.getElementById(id).classList.add('largedtg');
} else {
document.getElementById(id).classList.add('smalldtg');
}
}
function Clock(where = null) {
CURRENTTIME = new Date();
if (where) {
UpdateRunningTime(CURRENTTIME, where);
}
CLOCKID = setTimeout(Clock, 10000, where);
return CLOCKID
}
function RespawnClock(where) {
clearTimeout(CLOCKID);
CLOCKID = null;
Clock(where);
}
function Start() {
Clock();
setRunningTimeMode();
}
</script>
</head>
<body onload="Start();">
<div id="content" class="content">
<div id="clockbox" class="clockbox">
<div id="clocktexts" class="clocktexts">
<div id="clocktextspace_1" class="clocktextspace"></div>
<div id="clocktextspace_2" class="clocktextspace"></div>
<div id="clocktextspace_3" class="clocktextspace runningtime clock"></div>
</div>
<div class="nofloat" /></div>
<div id="clockspace" /></div>
</div>
<div class="nofloat"></div>
<div id="controlbox" class="controlbox">
<ul>
<li>
<button id="reset_button" onclick="setStoppedTimeMode()" class="reload button_background active" alt="Reset Clock" title="Stop or reset clock" />
</li>
<li>
<button id="clock_button" onclick="setRunningTimeMode()" class="clock button_background" alt="Clock" title="Show clock" />
</li>
</ul>
</div>
</div>
</body>
</html>