-
Notifications
You must be signed in to change notification settings - Fork 2
/
cartography.html
424 lines (394 loc) · 13.1 KB
/
cartography.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>
<head>
<title>Artemis - Cartography</title>
<meta charset="utf-8" />
<meta name="description" content="Faux GUI supplement for set-dressing a gaming session of Artemis SBS." />
<meta name="author" content="Justin Warwick" />
<link rel='stylesheet' href='./sbs-ui.css' />
<!-- Here would be a good place to put your own additional css link for unique/special things like spacing adjsutments based on element ID. The fewer changes in sbs-ui.css, the better (esp. if you might want to share improvements that really are general purpose) -->
<style>
#orrery {
position: relative;
margin: 6em;
width: 100%;
height: 100%;
}
@keyframes spin-left {
100% {
-webkit-transform: rotate(-360deg);
-moz-transform: rotate(-360deg);
-ms-transform: rotate(-360deg);
-o-transform: rotate(-360deg);
transform: rotate(-360deg);
}
}
/** Cartesian Stellar Cartograph **/
#chart_maincontainer {
width:100%;
height:100%;
margin: .75em;
padding:.75em;
}
.chart {
width: 100%;
height:100%;
margin:0; padding:0;
border-collapse: collapse;
border-spacing: 0;
empty-cells: show;
/*table-layout: fixed;*/
}
.chart tr td {
height:20%;
width: 20%;
border: 2px solid #DDDDFF;
margin:0; padding:0;
vertical-align:top;
}
.sector {
width: 100%;
height:100%;
border-spacing: 0;
empty-cells: show;
margin:0; padding:0;
border-collapse: collapse;
border-spacing: 0;
empty-cells: show;
/*border:none;*/
}
.sector td.quadrant {
width: 50%; height:50%;
vertical-align:top;
border: 1px dashed #C0C0DA;
padding:2px;
}
/*dynamics*/
#chart .sectB {
background-color: #505DA0;
}
#chart .sect4 {
background-color: #505DA0;
}
/*
.chart {
background-color:black;
background-image:
radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 40px),
radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 30px),
radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 40px),
radial-gradient(rgba(255,255,255,.4), rgba(255,255,255,.1) 2px, transparent 30px);
background-size: 550px 550px, 350px 350px, 250px 250px, 150px 150px;
background-position: 0 0, 40px 60px, 130px 270px, 70px 100px;
}
*/
</style>
<script src="./sbs-ui.js"></script>
</head>
<body>
<div id="super_container">
<div id="console_metacontrols">
<a href="javascript:toggleFullScreen();" id="fullscreenToggle">[=]</a>
</div>
<div id="console_super_controls">
<button class="major_action" onclick="window.location.href='menu.html';">MENU</button>
<button class="major_action major_action_active" onclick="chartZoom('150%');">PROXIMITY</button>
<button class="major_action" onclick="chartZoom('100%');">SECTOR</button>
<button class="major_action" onclick="chartZoom('70%');">GALAXY</button>
</div>
<div id="communique" >
<h1>Welcome to Artemis Glitter UI Style Clone Test</h1>
<p>Status and information flowing endlessly, giving a certain ambience.</p>
<p>Even if information is not functionally meaningful, the experience is enhance by giving a feeling of authenticity.</p>
<p>Presumably, you want to fill the screen pretty evenly, if browser were in fullscreen mode. But also becareful not to overflow or else you get scrollbars that spoil the effect a little. Hopefully this page is clean and clear enough that you could copy it, rename it, then start copy and pasting segments that you like and just replace the content and order a little and then you have yourself a custom faux console.</p>
<button class="action" onclick="javascript:this.parentNode.style.display = 'none';">ACKNOWLEDGE</button>
<!--Probably it is better to put onclick and other evenhandler code in a seperate script block, even in a separate JS file. But this works ok too.-->
</div>
<div id="dualpresentation" class="wrapper2column">
<div class="leftcolumn">
<div id="chart_maincontainer">
<table id="chart_prime" class="chart starry_expanse">
<tr class="sectA">
<td class="sect1">
<table class="sector">
<tr><td class="quadrant">A1</td><td class="quadrant"></td></tr>
<tr><td class="quadrant"></td><td class="quadrant"></td></tr>
</table>
</td>
<td class="sect2">
<table class="sector">
<tr><td class="quadrant">A2</td><td class="quadrant"></td></tr>
<tr><td class="quadrant"></td><td class="quadrant"></td></tr>
</table>
</td>
<td class="sect3">
<table class="sector">
<tr><td class="quadrant">A3</td><td class="quadrant"></td></tr>
<tr><td class="quadrant"></td><td class="quadrant"></td></tr>
</table>
</td>
<td class="sect4">
<table class="sector">
<tr><td class="quadrant">A4</td><td class="quadrant"></td></tr>
<tr><td class="quadrant"></td><td class="quadrant"></td></tr>
</table>
</td>
<td class="sect5">
<table class="sector">
<tr><td class="quadrant">A5</td><td class="quadrant"></td></tr>
<tr><td class="quadrant"></td><td class="quadrant"></td></tr>
</table>
</td>
</tr>
<tr class="sectB">
<td class="sect1">
<table class="sector">
<tr><td class="quadrant">B1</td><td class="quadrant"></td></tr>
<tr><td class="quadrant"></td><td class="quadrant"></td></tr>
</table>
</td>
<td class="sect2">
<table class="sector">
<tr><td class="quadrant">B2</td><td class="quadrant"></td></tr>
<tr><td class="quadrant"></td><td class="quadrant"></td></tr>
</table>
</td>
<td class="sect3">
<table class="sector">
<tr><td class="quadrant">B3</td><td class="quadrant"></td></tr>
<tr><td class="quadrant"></td><td class="quadrant"></td></tr>
</table>
</td>
<td class="sect4">
<table class="sector">
<tr><td class="quadrant">B4</td><td class="quadrant"></td></tr>
<tr><td class="quadrant"></td><td class="quadrant"></td></tr>
</table>
</td>
<td class="sect5">
<table class="sector">
<tr><td class="quadrant">B5</td><td class="quadrant"></td></tr>
<tr><td class="quadrant"></td><td class="quadrant"></td></tr>
</table>
</td>
</tr>
<tr class="sectC">
<td class="sect1">
<table class="sector">
<tr><td class="quadrant">C1</td><td class="quadrant"></td></tr>
<tr><td class="quadrant"></td><td class="quadrant"></td></tr>
</table>
</td>
<td class="sect2">
<table class="sector">
<tr><td class="quadrant">C2</td><td class="quadrant"></td></tr>
<tr><td class="quadrant"></td><td class="quadrant"></td></tr>
</table>
</td>
<td class="sect3">
<table class="sector">
<tr><td class="quadrant">C3</td><td class="quadrant"></td></tr>
<tr><td class="quadrant"></td><td class="quadrant"></td></tr>
</table>
</td>
<td class="sect4">
<table class="sector">
<tr><td class="quadrant">C4</td><td class="quadrant"></td></tr>
<tr><td class="quadrant"></td><td class="quadrant"></td></tr>
</table>
</td>
<td class="sect5">
<table class="sector">
<tr><td class="quadrant">C5</td><td class="quadrant"></td></tr>
<tr><td class="quadrant"></td><td class="quadrant"></td></tr>
</table>
</td>
</tr>
<tr class="sectD">
<td class="sect1">
<table class="sector">
<tr><td class="quadrant">D1</td><td class="quadrant"></td></tr>
<tr><td class="quadrant"></td><td class="quadrant"></td></tr>
</table>
</td>
<td class="sect2">
<table class="sector">
<tr><td class="quadrant">D2</td><td class="quadrant"></td></tr>
<tr><td class="quadrant"></td><td class="quadrant"></td></tr>
</table>
</td>
<td class="sect3">
<table class="sector">
<tr><td class="quadrant">D3</td><td class="quadrant"></td></tr>
<tr><td class="quadrant"></td><td class="quadrant"></td></tr>
</table>
</td>
<td class="sect4">
<table class="sector">
<tr><td class="quadrant">D4</td><td class="quadrant"></td></tr>
<tr><td class="quadrant"></td><td class="quadrant"></td></tr>
</table>
</td>
<td class="sect5">
<table class="sector">
<tr><td class="quadrant">D5</td><td class="quadrant"></td></tr>
<tr><td class="quadrant"></td><td class="quadrant"></td></tr>
</table>
</td>
</tr>
<tr class="sectE">
<td class="sect1">
<table class="sector">
<tr><td class="quadrant">E1</td><td class="quadrant"></td></tr>
<tr><td class="quadrant"></td><td class="quadrant"></td></tr>
</table>
</td>
<td class="sect2">
<table class="sector">
<tr><td class="quadrant">E2</td><td class="quadrant"></td></tr>
<tr><td class="quadrant"></td><td class="quadrant"></td></tr>
</table>
</td>
<td class="sect3">
<table class="sector">
<tr><td class="quadrant">E3</td><td class="quadrant"></td></tr>
<tr><td class="quadrant"></td><td class="quadrant"></td></tr>
</table>
</td>
<td class="sect4">
<table class="sector">
<tr><td class="quadrant">E4</td><td class="quadrant"></td></tr>
<tr><td class="quadrant"></td><td class="quadrant"></td></tr>
</table>
</td>
<td class="sect5">
<table class="sector">
<tr><td class="quadrant">E5</td><td class="quadrant"></td></tr>
<tr><td class="quadrant"></td><td class="quadrant"></td></tr>
</table>
</td>
</tr>
</table>
</div>
</div>
<div class="rightcolumn">
<div id="orrery">
</div>
<button class="action" onclick="generateOrrery('orrery');">Stellar Plane Diagram</button>
<div id="celestialregistry">
<table> <!--TODO: templatize this, then feed with json data, then have a scrolling/highighting looping readout.-->
<tr>
<th align="left">Comet designation</th>
<th align="left">Comet name</th>
<th align="left">eccentricity</th>
<th align="left">semimajor axis</th>
<th align="left">period (years)</th>
<th align="left">Inclination (°)</th>
<th align="left">AU)</th>
<th align="left">Absolute magnitude</th>
<th align="left">Last perihelion</th>
<th align="left">Next perihelion</th>
</tr>
<tr>
<td>C/1625 A1</td>
<td></td>
<td>0.9183</td>
<td>9.05</td>
<td>27.21</td>
<td>28.98</td>
<td>0.7391</td>
<td></td>
<td>1625/01/31</td>
<td>1662</td>
</tr>
<tr>
<td>C/1906 V1</td>
<td>Thiele</td>
<td>0.949</td>
<td>24</td>
<td>110</td>
<td>56.03</td>
<td>1.2086</td>
<td></td>
<td>1906/11/21</td>
<td>2021/06/15<sup id="cite_ref-1" class="reference">[1]</sup></td>
</tr>
<tr>
<td>A/2016 TP93</td>
<td>PANSTARRS</td>
<td>0.56</td>
<td>7.5</td>
<td>20.6</td>
<td>138.31</td>
<td>3.291</td>
<td>15.7</td>
<td>2016/10/05</td>
<td>2038</td>
</tr>
<tr>
<td>A/2016 VY17</td>
<td>Lemmon</td>
<td>0.852</td>
<td>11.3</td>
<td>38</td>
<td>148.42</td>
<td>1.666</td>
<td>15.8</td>
<td>2017/07/02</td>
<td>2055</td>
</tr>
</table>
</div>
</div>
</div>
<div style="font-size:.75em;">
floating, wrapping div should display on right if landscape or below if portrait
Present Position
Sector, Quadrant
Coordinates: X, Y
Previous Position
Sector, Quadrant
Sector, Quadrant
Expanse
X, Y
Total Area
Sector Size
Quadrant size
Territorial Control Sectors
Prohibited Sectors
Occupied Sectors
</div>
</div>
<audio id="audUmmy"/><!--Just leave this here, just needed to be able to query canplay in the initialization code to load compatible media types -->
<script>
window.console && console.log( window.innerWidth
+ ',' + window.innerHeight
+ ',' + window.innerHeight / window.innerWidth * 100
+ ',' + ( window.innerHeight / window.innerWidth ) * window.innerWidth
);
//window.console && console.log( document.body.style );
window.console && console.log( "padding: " +
window.getComputedStyle(document.getElementById("chart_maincontainer")).getPropertyValue("margin")
);
window.console && console.log(
window.getComputedStyle(document.getElementById("chart_maincontainer"),null).getPropertyValue("margin-top")
);
function displayAdjust() {
var squaring = window.innerHeight / window.innerWidth ;
var margins = window.getComputedStyle(document.getElementById("chart_maincontainer"),null).getPropertyValue("margin-top");
margins = margins.replace(/[pP][xX]/,"");
margins = parseInt(margins) + parseInt(window.getComputedStyle(document.getElementById("console_super_controls"),null).getPropertyValue("height").replace(/[pP][xX]/,""));
//window.console && console.log("margins: " + margins);
document.getElementById("chart_maincontainer").style.width = (window.innerWidth - 2 * margins) * squaring + "px";
document.getElementById("chart_maincontainer").style.height= window.innerHeight - 2 * margins + "px";;
}
displayAdjust();
window.onresize = displayAdjust;
function chartZoom(zoomlevel) {
var cart = document.getElementById("chart_prime");
cart.style.zoom = zoomlevel;
}
</script>
<script src="sbs-ui-wireup.js"></script>
</body>
</html>