-
Notifications
You must be signed in to change notification settings - Fork 2
/
artemis_console_sampler.html
232 lines (205 loc) · 7.45 KB
/
artemis_console_sampler.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
<!DOCTYPE html>
<html>
<head>
<title>Artemis - html5/css console clone</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) -->
<script src="./sbs-ui.js"></script>
</head>
<body>
<div id="super_container">
<div id="console_super_controls">
<button class="major_action major_action_active">ACTIVATE</button>
<button class="major_action">LAUNCH</button>
<button class="major_action">REVERSE POLARITY</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>
<h2 class="urgent">Red Alert</h2>
<p>CONDITION ACTIVE</p>
<ul>
<li>Gravitational wave detected</li>
<li class="confirmed">Subspace aperture confirmed</li>
<li>polarity nominal</li>
<li>insufficient data</li>
</ul>
<button class="action">SCAN</button>
<p>Button images are similar to, but not exactly the same as official Artemis buttons. If you want to see how close you can get to "real" Artemis, you could just substitute the screen-captured images. They are included for demo purposes only, of course.
</div>
<h3> BASIC DATA TABLES</h3>
<table> <!--As plain as possible-->
<tr>
<td>ALPHA</td>
<td>BETA</td>
<td>DELTA</td>
<td>GAMMA</td>
</tr>
<tr>
<td>100</td>
<td>200</td>
<td>333</td>
<td>400</td>
</tr>
<tr>
<td>248</td>
<td> </td>
<td>39</td>
<td>- </td>
</tr>
</table>
<table class="ship_metrics">
<tr>
<td>ALPHA</td> <td>100</td>
</tr>
<tr>
<td>BETA</td> <td>200</td>
</tr>
<tr>
<td>DELTA</td> <td>333</td>
</tr>
<tr>
<td>GAMMA</td> <td>400</td>
</tr>
</table>
<h3> CARTESIAN PROJECTION - SVG </h3>
<div style="width:502px;height:502px;margin-left:1em;">
<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg">
<defs>
<pattern id="smallGrid" width="10" height="10" patternUnits="userSpaceOnUse">
<path d="M 10 0 L 0 0 0 10" fill="none" stroke="blue" stroke-width="0.5"/>
</pattern>
<pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse">
<rect width="100" height="100" fill="url(#smallGrid)"/>
<path d="M 100 0 L 0 0 0 100" fill="none" stroke="blue" stroke-width="1"/>
</pattern>
</defs>
<rect width="100%" height="100%" fill="url(#grid)" />
<image xlink:href="images/rings.svg" x="50" y="50" width="100" height="100" />
</svg>
</div>
<h3> CARTESIAN PROJECTION - PURE HTML TABLE </h3>
Less fancy, less options for advanced effects and animations, but simpler overall and more backwards-compatible. Also maybe easier to template in "real" data. Actually a couple of different internal layouts possible here. Also: amazing how fancy you can get with CSS3!
<table class="cartograph starry_expanse subgridding">
<tr class="sector-A">
<td class="sector-1"> A1 </td>
<td class="sector-2"> A2 </td>
<td class="sector-3"> A3 </td>
<td class="sector-4"> A4 </td>
<td class="sector-5"> A5 </td>
</tr>
<tr class="sector-B">
<td class="sector-1"> B1 </td>
<td class="sector-2"> B2 </td>
<td class="sector-3"> B3 </td>
<td class="sector-4"> B4 </td>
<td class="sector-5"> B5 </td>
</tr>
<tr class="sector-C">
<td class="sector-1"> C1 </td>
<td class="sector-2"> C2 </td>
<td class="sector-3"> C3 </td>
<td class="sector-4"> C4 </td>
<td class="sector-5"> C5 </td>
</tr>
<tr class="sector-D">
<td class="sector-1"> D1 </td>
<td class="sector-2"> D2 </td>
<td class="sector-3"> D3 </td>
<td class="sector-4"> D4 </td>
<td class="sector-5"> D5 </td>
</tr>
<tr class="sector-E">
<td class="sector-1"> E1 </td>
<td class="sector-2"> E2 </td>
<td class="sector-3"> E3 </td>
<td class="sector-4"> E4 </td>
<td class="sector-5"> E5 </td>
</tr>
</table>
TODO: grab the nested tables version from the glitter project
<ul class="button_stack">
<li> <button class="major_action" onclick="audioAlert();"> SINK BATTLESHIP </button> </li>
<li> <button class="major_action"> SINK DESTROYER</button> </li>
<li> <button class="major_action"> SINK CARRIER</button> </li>
</ul>
<h3> SIDE-BY-SIDES </h3>
<div id="dualpresentation1" class="wrapper2column">
<div class="yscale">
<table>
<tr><td>100</td></tr>
<tr><td>75</td></tr>
<tr><td>50</td></tr>
<tr><td>25</td></tr>
<tr><td>0</td></tr>
<tr><td>-25</td></tr>
</table>
</div>
<div class="maingrid">
<p>3874</p>
<p> <span class="graphbar"> 034 </span> <span class="graphbar"> TODO: bargraphs or something</span> </p>
<p>34893 X</p>
</div>
</div>
<div id="dualpresentation2" class="wrapper2column">
<div class="leftcolumn">
<table class="vertical_threshold_bracket">
<tr><td class="critical_threshold">_</td></tr>
<tr><td class="critical_threshold">_</td></tr>
<tr><td>—</td></tr>
<tr><td> </td></tr>
<tr><td>-</td></tr>
<tr><td>-</td></tr>
</table>
</div>
<div class="rightcolumn">
sine wave or number grid or something?
</div>
</div>
<p></p>
<div id="dualpresentation" class="wrapper2column">
<div class="leftcolumn">
<table class="vertical_threshold_bracket">
<tr><td class="critical_threshold">-</td></tr>
<tr><td>-</td></tr>
<tr><td>-</td></tr>
<tr><td class="nominal_threshold">-</td></tr>
<tr><td class="nominal_threshold">—</td></tr>
<tr><td class="nominal_threshold">-</td></tr>
<tr><td>-</td></tr>
<tr><td>-</td></tr>
<tr><td class="critical_threshold">-</td></tr>
</table>
</div>
<div class="rightcolumn">
<p>
<a href="#INCREMENT_ACTION" class="increment"><img src="images/button_increment.png" /></a>
<button class="increment"></button>
</p>
<p>The goldilocks variation: not too cold not too hot, only right in the middle is green</p>
<p>
<a href="#DECREMENT_ACTION" class="decrement"><img src="images/button_decrement.png" /></a>
<button class="decrement"></button>
</p>
</div>
</div>
<div>
<input type="range" min="0" max="11" value="3" />
<input type="range" min="0" max="11" value="7" />
</div>
</div>
<script>
window.console && console.log("TODO some dynamicness");
</script>
<script src="sbs-ui-wireup.js"></script>
</body>
</html>