-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
executable file
·424 lines (424 loc) · 14.2 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0" />
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<title>UCC Calendar Clock</title>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- load libraries, manifest and stylesheets -->
<script src="js/timerlib.js" type="text/javascript"></script>
<script src="js/UCClib.js" type="text/javascript"></script>
<link rel="manifest" href="manifest.json" />
<link href="css/normalize.css" rel="stylesheet" />
<link href="css/calclock.css" rel="stylesheet" />
<link rel="shortcut icon" type="image/png" href="asset/images/ucc32ico.png" />
<link rel="apple-touch-icon-precomposed" href="asset/images/ucc512ico.png" />
</head>
<body>
<div id="progress">
<img id="spinner" src="asset/images/spinner.svg" alt="">
</div>
<div id='clockbox'>
<canvas id="clockCanvas" width="1100" height="1100">
<img src="asset/images/ucc512ico.png" alt="Snapshot of UCC Calendar Clock">
<p>Anyone seeing this message may think their Internet browser doesn't support<br>
HTML5 Canvas. It probably does but all you will see, unless you visit the page,<br>
is this screen.</p>
<p>The image above is just a snapshot. Any browser that doesn't support the HTML5 Canvas,<br>
including apps like FB, spiders, etc, will be unable to display or interact with<br>
the Universal Community Calendar Clock.. Sorry.</p>
</canvas>
<div id="trigram"><div></div><div></div><div></div></div>
<div id='dateHeading'></div>
<div id="dataTr"></div>
<div id="dataBl"></div>
<div id="dataBr"></div>
</div>
<div id='controls'>
<div id="setNav" class="selected">
<header>
<i title='Date Setting Controls' class="selected">Date</i>
<i title="Animation Controls">Anim</i>
<i title="Change Display Settings">Show</i>
<i title="About Calclock">About</i><i>X</i>
</header>
<div>
<div>
<button id="ctl_today" title="Reset to today">Today</button><br>
<button id="ctl_UCC" title="Set a new UCC Date">UCC Date</button><br>
<button id="ctl_Greg" title="Set a Gregorian Date">Gregorian Date</button>
</div>
<div>
<label>
<button id="ctl_back" title="Go back 1 step">↻</button>
Step Back
</label><br>
<label>
<button id="ctl_fwd" title="Go forward 1 step">↺</button>
Step Forward
</label>
</div>
<div>
<label>Step Size<br>
<select id='ctl_step' title="Set the size of each animation step">
<optgroup label="Step Size">
<option value=1>One Day</option>
<option value=10 selected>One Decan</option>
<option value=30>One Triad</option>
<option value='q'>One Quarter</option>
<option value=365>One Year</option>
<option value='j'>Jump-to</option>
</optgroup>
</select>
</label>
</div>
<div>
<div>
<label>Names<br>
<select id='ctl_lang' title="Triad/Deekday Language">
<optgroup label="Language">
<option value=0 selected>Western</option>
<option value=1>Hindi</option>
<option value=2>Hellenistic</option>
<option value=3>Cymraeg</option>
</optgroup>
</select>
</label>
</div>
<div>
<label>UCC Dates<br>
<select id='ctl_dateFmt' title="Change UCC Date Format">
<optgroup label="Format">
<option value=0>Full</option>
<option value=1 selected>Long</option>
<option value=2>Medium</option>
<option value=3>Short</option>
<option value=4>Sortable</option>
</optgroup>
</select>
</label>
</div>
<div>
<label>Jump-to<br>
<select id='ctl_jump' title="Change UCC Date Format">
<optgroup label="Astro Age">
<option value=8 selected >Virgo</option>
<option value=9>Leo</option>
<option value=10>Cancer</option>
<option value=11>Gemini</option>
<option value=12>Taurus</option>
<option value=13>Aries</option>
<option value=14>Pisces</option>
<option value=15>Aquarius</option>
<option value=16>Capricorn</option>
<option value=17>Sagittarius</option>
<option value=18>Scorpio</option>
<option value=19>Libra</option>
</optgroup><optgroup label="Yuga">
<option class='satya' value=0>Satya Desc</option>
<option class='treta' value=1>Treta Desc</option>
<option class='dwapara' value=2>Dwapara Desc</option>
<option class='kali' value=3>Kali Desc</option>
<option class='kali' value=4>Kali Asc</option>
<option class='dwapara' value=5>Dwapara Asc</option>
<option class='treta' value=6>Treta Asc</option>
<option class='satya' value=7>Satya Asc</option>
</optgroup>
</select>
</label>
</div>
<!-- <div>
<label>Time Zone<br>
<select id='ctl_dateZone' title="Change Time Zone">
<optgroup label="Zone">
<option value=0 selected>UTC</option>
<option value=1>Local</option>
</optgroup>
</select>
</label>
</div> -->
</div>
</div>
</div>
<div id="setAnim">
<header>
<i title='Date Setting Controls'>Date</i>
<i title="Animation Controls">Anim</i>
<i title="Change Display Settings">Show</i>
<i title="About Calclock">About</i><i>X</i>
</header>
<div>
<div>
<label title='Turn animation on'>
<span class="chkbox">
<input type="checkbox" id='ctl_animate'>
<span class="cbValue"></span>
</span>
Animate
</label><br>
<label title="Reverse animation direction">
<span class="chkbox">
<input type="checkbox" id='ctl_reverse'>
<span class="cbValue"></span>
</span>
Reverse
</label><br>
<label title="Start animation at beginning of current year">
<span class="chkbox">
<input type="checkbox" id='ctl_yearStart'>
<span class="cbValue"></span>
</span>
Start of Year
</label>
</div>
</div>
</div>
<div id="setShow">
<header>
<i title='Date Setting Controls'>Date</i>
<i title="Animation Controls">Anim</i>
<i title="Change Display Settings">Show</i>
<i title="About Calclock">About</i><i>X</i>
</header>
<div>
<div>
<label title="Show menu button?">
<span class="chkbox">
<input type="checkbox" id='ctl_trigram' checked>
<span class="cbValue"></span>
</span>
Menu Button
</label><br>
<label title="Show data tables?">
<span class="chkbox">
<input type="checkbox" id='ctl_data' checked>
<span class="cbValue"></span>
</span>
Data Tables
</label><br>
<label title="Show today's UCC date?">
<span class="chkbox">
<input type="checkbox" id='ctl_dateHead' checked>
<span class="cbValue"></span>
</span>
Date Heading
</label><br>
<label title="Show Moon?">
<span class="chkbox">
<input type="checkbox" id='ctl_moon' checked>
<span class="cbValue"></span>
</span>
Moon
</label><br>
<label title="Show Day Marker?">
<span class="chkbox">
<input type="checkbox" id='ctl_dayMkr' checked>
<span class="cbValue"></span>
</span>
Day Marker
</label><br>
<label title="Show Day Number?">
<span class="chkbox">
<input type="checkbox" id='ctl_dayNo' checked>
<span class="cbValue"></span>
</span>
Day Number
</label><br>
<label title="Show Decan-day symbol?">
<span class="chkbox">
<input type="checkbox" id='ctl_deek' checked>
<span class="cbValue"></span>
</span>
Deek Symbol
</label><br>
<label title="Show Year-So-Far?">
<span class="chkbox">
<input type="checkbox" id='ctl_ysf' checked>
<span class="cbValue"></span>
</span>
Year-so-far
</label>
</div>
<div>
<label title="Show Sidereal Ring (constellations)?">
<span class="chkbox">
<input type="checkbox" id='ctl_sidRing' checked>
<span class="cbValue"></span>
</span>
Sidereal Ring
</label><br>
<label title="Show Great-Year-So-Far?">
<span class="chkbox">
<input type="checkbox" id='ctl_gysf' checked>
<span class="cbValue"></span>
</span>
Gt-Yr-so-far
</label><br>
<label title="Show Year Marker?">
<span class="chkbox">
<input type="checkbox" id='ctl_yearMkr' checked>
<span class="cbValue"></span>
</span>
Year Marker
</label><br>
<label title="Show Year Number (of 24,000)?">
<span class="chkbox">
<input type="checkbox" id='ctl_yearNum' checked>
<span class="cbValue"></span>
</span>
Year Number
</label><br>
<label title="Show Great Year Ring?">
<span class="chkbox">
<input type="checkbox" id='ctl_gyRing' checked>
<span class="cbValue"></span>
</span>
Gt Yr Ring
</label><br>
<label title="Show sandhi lines?">
<span class="chkbox">
<input type="checkbox" id='ctl_sandhis' checked>
<span class="cbValue"></span>
</span>
Sandhis
</label><br>
<label title="Use Variable Rate of Precession?">
<span class="chkbox">
<input type="checkbox" id='ctl_vrp' checked>
<span class="cbValue"></span>
</span>
V.R.P.
</label><br>
<!--label><input type="checkbox" id='ctl_vrpLines'
onChange='toggleVrp()'>VRP Lines</label><br>-->
</div>
</div>
</div>
<div id="setAbout">
<header>
<i title='Date Setting Controls'>Date</i>
<i title="Animation Controls">Anim</i>
<i title="Change Display Settings">Show</i>
<i title="About Calclock">About</i><i>X</i>
</header>
<div>
<p>CalClock shows todays Universal Celestial Calendar date and allows you to
display any date in the current Great Year.</p>
<p>For in-depth information about the calendar and this app visit
<a href='http://universalcelestialcalendar.com/' target="_blank">
http://universalcelestialcalendar.com/</a></p>
<p>Developed by <a href='http://tomboy-pink.co.uk/' target="_blank">Prajna Pranab</a>
and <a href='http://litmusafreeman.net/' target="_blank">Litmus A Freeman</a></p>
<p>Copyright © <a href='http://troubadorcommunitytrust.com/' target="_blank">
The Troubadour Community Trust</a></p>
<p>Software Version: <span id="swVersion"></span> <button id="btnUpdate">Update</button></p>
<p>UCC Library Version:
<a href='http://tomboy-pink.co.uk/codelib/UCC/index.html' target="_blank">
<span id="libVersion"></span></a></p>
<p><span id="runMode"></span></p>
</div>
</div>
</div>
<div id="setUccDate">
<div>Set UCC Date</div>
<div>
<label><span>Day</span> <input type=number min=0 max=30 id=uccDay /></label>
</div>
<div>
<label><span>Triad</span>
<select id=uccTriad>
<option value='0'>Zero</option>
<option value='1'>ONE Aries ♈</option>
<option value='2'>TWO Taurus ♉</option>
<option value='3'>THREE Gemini ♊</option>
<option value='4'>FOUR Cancer ♋</option>
<option value='5'>FIVE Leo ♌</option>
<option value='6'>SIX Virgo ♍</option>
<option value='7'>SEVEN Libra ♎</option>
<option value='8'>EIGHT Scorpio ♏</option>
<option value='9'>NINE Sagittarius ♐</option>
<option value='10'>TEN Capricorn ♑</option>
<option value='11'>ELEVEN Aquarius ♒</option>
<option value='12'>TWELVE Pisces ♓</option>
</select>
</label>
</div>
<div>
<label><span>Year</span> <input type=number min=0 max=24000 id=uccYear /></label>
</div>
<div>
<button id='uccCancel'>Cancel</button>
<button id='uccSet'>Set</button>
</div>
</div>
<div id="setGregDate">
<div>Set Gregorian Date</div>
<div>
<label><span>Day</span> <input type=number min=1 max=31 id=gregDay /></label>
</div>
<div>
<label><span>Month</span>
<select id=gregMonth>
<option value='0'>January</option>
<option value='1'>February</option>
<option value='2'>March</option>
<option value='3'>April</option>
<option value='4'>May</option>
<option value='5'>June</option>
<option value='6'>July</option>
<option value='7'>August</option>
<option value='8'>September</option>
<option value='9'>October</option>
<option value='10'>November</option>
<option value='11'>December</option>
</select>
</label>
</div>
<div>
<label><span>Year</span> <input type="text" id=gregYear /></label>
</div>
<div>
<button id='gregCancel'>Cancel</button>
<button id='gregSet'>Set</button>
</div>
</div>
<div id="a2hsBanner">Add UCC Clock to your Home Screen?
<button id="a2hsYes">Yes</button> <button id="a2hsNo">No</button>
</div>
<script type="text/javascript">
// show loading progress spinner
(function() {
const tick = () => {
// percent of time elapsed as float between 0.0 and 1.0
const progress = myTimer.progress();
// rotation from 0 to 360 degrees
const rot = progress * 360;
// animate it by applying the transforms and fade
spinner.style.transform = `rotateZ(${rot}deg)`;
// recursively call the tick() callback until our timer tells
// us the duration has passed
if (!myTimer.done) requestAnimationFrame(tick);
// restart the animation
else restartAnim();
}
const restartAnim = () => {
// restart the animation until the progress div is hidden
if (progress.style.display != 'none')
myTimer = new timer(requestAnimationFrame(tick), 1000);
}
// get progress div and spinner image references
const progress = document.querySelector('#progress');
const spinner = document.querySelector('#spinner');
// kick off the animation
let myTimer = new timer(requestAnimationFrame(tick), 1000);
}());
</script>
<script src="js/calclock.js" type="text/javascript" defer></script>
</body>
</html>