forked from inexorabletash/travellermap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
world.html
255 lines (214 loc) · 7.63 KB
/
world.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
<!DOCTYPE html>
<html mozNoMarginBoxes>
<title>World Data Sheet - Traveller Map</title>
<meta charset="utf-8">
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="site.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.5/handlebars.min.js"></script>
<script src="https://cdn.rawgit.com/inexorabletash/polyfill/v0.1.29/polyfill.min.js"></script>
<script src="map.js?update=2016-10-13"></script>
<script src="world_util.js?update=2016-10-13"></script>
<script src="world.js?update=2016-09-16"></script>
<style>
@import url(https://fonts.googleapis.com/css?family=PT+Sans+Narrow);
html, body { margin: 0; padding: 0; }
body.nopage { margin: 0; padding: 0; overflow: hidden; }
#wds-paper { text-align: left; background-color: white; color: black; overflow: hidden; }
#wds-page { position: relative; width: 7in; height: 9in;}
h1 a { text-decoration: none; }
h1 a:hover { text-decoration: underline; }
h1 small { font-size: 75%; }
@media only screen {
#wds-page { margin: 0.25in; }
}
@media only screen and (min-width: 8in) {
body { text-align: center; background-color: gray; width: 100%; }
#wds-paper { width: 8in; height: 9.75in; margin: 0.25in auto; box-shadow: 0 0 30px 5px #202020;}
#wds-page { margin: 0.5in; }
.nopage #wds-paper { width: 8in; height: 6.5in; margin: 0; }
.nopage #wds-page { width: 7in; height: 5.5in; }
}
.nopage #footer { display: none; }
@media only print {
@page {
size: portrait;
margin: 0.5in;
}
#wds-page, #wds-paper { margin: 0; padding: 0; }
}
td { vertical-align: top; }
.nowrap { white-space: nowrap; }
/* World Image */
#wds-world-image {
visibility: hidden;
position: absolute;
top: 0; right: 0;
width: 140px;
height: 140px;
border: 2px solid black;
}
#wds-world-image.wds-ready {
visibility: visible;
}
/* Data Blocks */
.wds-decode { white-space: nowrap; margin: 10px 10px; }
.wds-decode tr:first-of-type td { padding-bottom: 4px; font-weight: bold;}
.wds-decode td {
padding: 0; margin: 0; width: 16px; font-size: 14px; line-height: 14px;
x-vertical-align: middle;
text-align: center;
overflow: hidden;
}
.wds-decode img {
margin-top: 2px;
}
.wds-decode td:first-of-type {
text-align: right; padding-right: 4px; font-size: 11px; width: 150px; }
.wds-decode td:last-of-type {
text-align: left; padding-left: 4px; font-size: 11px; width: auto; }
/* Specific Data Fields */
.wds-imp-blurb { font-weight: normal; }
.wds-stars { font-size: 117%; }
.wds-stars .wds-star:after,
.wds-bases .wds-base:after,
.wds-nobility .wds-noble:after { content: ' \2014 '; } /* U+2014 EM DASH */
.wds-stars .wds-star:last-child:after,
.wds-bases .wds-base:last-child:after,
.wds-nobility .wds-noble:last-child:after { content: ''; }
.wds-zone-amber { background-color: yellow; padding: 2px 20px; display: inline-block; }
.wds-zone-red { background-color: red; padding: 2px 20px; display: inline-block; }
/* UWP Table */
.wds-uwp th { font-size: 9pt; text-align: left; }
.wds-uwp td, .wds-uwp th { padding-right: 0.5em; white-space: nowrap}
.wds-uwp td { font-family: "PT Sans Narrow"; font-size: 8.5pt; }
#wds-jumpmap { width: 236px; height: 254px; cursor: pointer; }
#wds-neighborhood { width: 100%; }
.wds-uwp a { text-decoration: none; }
.wds-uwp a:hover { text-decoration: underline; }
</style>
<div id=wds-paper>
<div id=wds-page>
<canvas id=wds-world-image width=280 height=280></canvas>
<div id=wds-world-data></div>
<script id=wds-world-template type="text/x-handlebars-template">
<h1>
{{#if Name}} <a target=wiki href="{{world_url}}">{{Name}}</a> {{else}} (Unnamed) {{/if}}
<small>
{{#if SubsectorName}} / <a target=wiki href="{{ss_url}}">{{SubsectorName}}</a> {{/if}}
<a target=wiki href="{{sector_url}}">({{Sector}}</a> {{Hex}})
</small>
</h1>
{{#if AllegianceName}}
<table class=wds-decode><tr>
<td>Allegiance:
<td><big>{{AllegianceName}}</big> ({{Allegiance}})
</table>
{{/if}}
<table class=wds-decode><tr>
<td>System:
<td>
<div class=wds-stars>
{{#Stars}} <span class=wds-star>{{.}}</span> {{/Stars}}
</div>
<div>
<big>{{PBG.GG}}</big> <small>Gas Giants</small>
—
<big>{{PBG.Belts}}</big> <small>Planetoid Belts</small>
{{#if OtherWorlds}}
—
<big>{{OtherWorlds}}</big> <small>Other Worlds</small>
{{/if}}
</div>
<div class=wds-bases>
{{#Bases}} <span class=wds-base>{{.}}</span> {{/Bases}}
</div>
</table>
{{#UWP}}
<table class=wds-decode>
<tr><td>Universal World Profile:<td>{{Starport}}<td>{{Siz}}<td>{{Atm}}<td>{{Hyd}}<td>{{Pop}}<td>{{Gov}}<td>{{Law}}<td>–<td>{{Tech}}<td>
<tr><td>Starport ({{StarportBlurb}})<td colspan=9 rowspan=4><img width="144" height="49" src="res/world/uwp.svg" alt=""><td>Technology Level ({{TechBlurb}})
<tr><td>Size ({{SizBlurb}})<td>Law Level ({{LawBlurb}})
<tr><td>Atmosphere ({{AtmBlurb}})<td>Government Type ({{GovBlurb}})
<tr><td>Hydrosphere ({{HydBlurb}})<td>Population ({{PopBlurb}})
</table>
{{/UWP}}
{{#Ix}}
<table class=wds-decode>
<tr><td>Importance {Ix}:<td>{<td>{{Imp}}<td>} <td> <span class=wds-imp-blurb>{{ImpBlurb}}</span>
</table>
{{/Ix}}
{{#Ex}}
<table class=wds-decode>
<tr><td>Economics (Ex):<td>(<td>{{Res}}<td>{{Lab}}<td>{{Inf}}<td>{{Eff}}<td>)<td>
<tr><td>Resources ({{ResBlurb}})<td colspan=6 rowspan=2><img width="96" height="21" src="res/world/ex.svg" alt=""><td>Efficiency ({{EffBlurb}})
<tr><td>Labor ({{LabBlurb}})<td>Infrastructure ({{InfBlurb}})
</table>
{{/Ex}}
{{#Cx}}
<table class=wds-decode>
<tr><td>Culture [Cx]:<td>[<td>{{Hom}}<td>{{Acc}}<td>{{Str}}<td>{{Sym}}<td>]<td>
<tr><td>Homogeneity ({{HomBlurb}})<td colspan=6 rowspan=2><img width="96" height="21" src="res/world/cx.svg" alt=""><td>Symbols ({{SymBlurb}})
<tr><td>Acceptance ({{AccBlurb}})<td>Strangeness ({{StrBlurb}})
</table>
{{/Cx}}
{{#if TotalPopulation }}
<table class=wds-decode><tr>
<td style="vertical-align: bottom">Total Population:
<td><big>{{PopMult}} × 10<sup>{{PopExp}}</sup> = {{TotalPopulation}}</big>
</table>
{{/if}}
{{#if Nobility}}
<table class=wds-decode><tr>
<td>Nobility:
<td><big class=wds-nobility>{{#Nobility}} <span class=wds-noble>{{.}}</span> {{/Nobility}}</big>
</table>
{{/if}}
{{#if Remarks}}
<table class=wds-decode><tr>
<td>Remarks:
<td style="white-space: normal">
{{#Remarks}}<span class=nowrap><big>{{code}}</big> <small>{{detail}}</small></span> {{/Remarks}}
</table>
{{/if}}
{{#Zone}}
<table class=wds-decode><tr>
<td>Travel Zone:
<td><big class="wds-zone-{{className}}">{{rule}}</big> <br> <small>Travellers' Aid Society Rating: {{rating}}</small>
</table>
{{/Zone}}
</script>
<div id=wds-neighborhood-data></div>
<script id=wds-neighborhood-template type="text/x-handlebars-template">
<h2 style="margin-top: 0;">Jump-2 Neighborhood</h2>
<table id=wds-neighborhood>
<tr>
<td><img id=wds-jumpmap></td>
<td><div class=wds-uwp>
<table class=wds-uwp>
<tr><th>Name<th>Hex<th>UWP<th>B<th>Remarks<th>Z<th>PBG<th>A<th>Stellar</tr>
{{#Worlds}}
<tr>
<td><a href="?sector={{Sector}}&hex={{Hex}}">{{Name}}</a>
<td><a href="?sector={{Sector}}&hex={{Hex}}">{{Hex}}</a>
<td>{{UWP}}
<td>{{Bases}}
<td>{{Remarks}}
<td>{{Zone}}
<td>{{PBG}}
<td>{{Allegiance}}
<td>{{Stellar}}
{{/Worlds}}
</table>
</div></td>
</tr>
</table>
</script>
<div id=footer style="text-align: center; font-size: 8pt;">
The <em class=product>Traveller</em> game in all forms is owned by Far
Future Enterprises. Copyright © 1977 – 2017 Far Future
Enterprises.
<a href="http://farfuture.net/FFEFairUsePolicy2008.pdf">Fair Use Policy</a>
</div>
</div>
</div>
</html>