-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
328 lines (305 loc) · 18.6 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
<!DOCTYPE html>
<html>
<head>
<title>Bedrock Viz Viewer</title>
<meta charset="utf-8" />
<script src="js/jquery-1.11.2.min.js"></script>
<link rel="stylesheet" href="js/bootstrap.min.css" />
<script src="js/bootstrap.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<link rel="stylesheet" href="js/ol.css" type="text/css" />
<script src="js/ol.js"></script>
<link rel="stylesheet" href="js/bootstrap-tour.min.css" />
<script src="js/bootstrap-tour.min.js"></script>
<link rel="stylesheet" href="bedrock_viz.css" type="text/css" />
<script src="bedrock_viz.js"></script>
<script src="output.js"></script>
<script src="output.geojson"></script>
</head>
<body>
<div class="container-fluid" data-role="content">
<div class="row-fluid">
<div class="span12">
<div id="map" class="map"></div>
</div>
</div>
</div>
<div class="navbar navbar-inverse navbar-fixed-bottom" data-role="navbar">
<div class="container-fluid">
<div class="btn-group dropup navbar-btn">
<button type="button" class="btn btn-primary dropdown-toggle mytooltip" data-toggle="dropdown" title="Select Dimension">
<span id="dimensionSelectName">Dimension</span>
<span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="#" class="dimensionSelect" data-id="0">Overworld</a></li>
<li><a href="#" class="dimensionSelect" data-id="1">Nether</a></li>
<li><a href="#" class="dimensionSelect" data-id="2">The End</a></li>
</ul>
</div>
<div class="btn-group navbar-btn">
<button type="button" class="btn btn-primary mytooltip" id="layerPrev" title="Go to Lower Layer">↓</button>
<div class="btn-group dropup">
<button type="button" class="btn btn-primary dropdown-toggle mytooltip" data-toggle="dropdown" title="Select Layer">
<span id="layerNumber">Go to Layer</span>
<span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="#" class="layerGoto" data-id="255" href="#">Layer 255 (Build Limit)</a></li>
<li><a href="#" class="layerGoto" data-id="250" href="#">Layer 250</a></li>
<li><a href="#" class="layerGoto" data-id="240" href="#">Layer 240</a></li>
<li><a href="#" class="layerGoto" data-id="230" href="#">Layer 230</a></li>
<li><a href="#" class="layerGoto" data-id="220" href="#">Layer 220</a></li>
<li><a href="#" class="layerGoto" data-id="210" href="#">Layer 210</a></li>
<li><a href="#" class="layerGoto" data-id="200" href="#">Layer 200</a></li>
<li><a href="#" class="layerGoto" data-id="190" href="#">Layer 190</a></li>
<li><a href="#" class="layerGoto" data-id="180" href="#">Layer 180</a></li>
<li><a href="#" class="layerGoto" data-id="170" href="#">Layer 170</a></li>
<li><a href="#" class="layerGoto" data-id="160" href="#">Layer 160</a></li>
<li><a href="#" class="layerGoto" data-id="150" href="#">Layer 150</a></li>
<li><a href="#" class="layerGoto" data-id="140" href="#">Layer 140</a></li>
<li><a href="#" class="layerGoto" data-id="130" href="#">Layer 130</a></li>
<li><a href="#" class="layerGoto" data-id="120" href="#">Layer 120</a></li>
<li><a href="#" class="layerGoto" data-id="110" href="#">Layer 110</a></li>
<li><a href="#" class="layerGoto" data-id="100" href="#">Layer 100</a></li>
<li><a href="#" class="layerGoto" data-id="90" href="#">Layer 90</a></li>
<li><a href="#" class="layerGoto" data-id="80" href="#">Layer 80</a></li>
<li><a href="#" class="layerGoto" data-id="70" href="#">Layer 70</a></li>
<li><a href="#" class="layerGoto" data-id="62" href="#">Layer 62 (Sea Level)</a></li>
<li><a href="#" class="layerGoto" data-id="60" href="#">Layer 60</a></li>
<li><a href="#" class="layerGoto" data-id="50" href="#">Layer 50</a></li>
<li><a href="#" class="layerGoto" data-id="40" href="#">Layer 40</a></li>
<li><a href="#" class="layerGoto" data-id="30" href="#">Layer 30</a></li>
<li><a href="#" class="layerGoto" data-id="20" href="#">Layer 20</a></li>
<li><a href="#" class="layerGoto" data-id="10" href="#">Layer 10</a></li>
<li><a href="#" class="layerGoto" data-id="0" href="#">Layer 0 (Bedrock)</a></li>
</ul>
</div>
<button type="button" class="btn btn-primary mytooltip" id="layerNext" title="Go to Higher Layer">↑</button>
</div>
<div class="btn-group dropup navbar-btn">
<button type="button" class="btn btn-primary dropdown-toggle mytooltip" data-toggle="dropdown" title="Select Main Image">
<span id="imageSelectName">Main Image</span>
<span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="#" class="imageSelect" data-id="0">Overview</a></li>
<li><a href="#" class="imageSelect" data-id="1">Biome</a></li>
<li><a href="#" class="imageSelect" data-id="2">Height</a></li>
<li><a href="#" class="imageSelect" data-id="3">Height (Grayscale)</a></li>
<li><a href="#" class="imageSelect" data-id="4">Block Light</a></li>
<li><a href="#" class="imageSelect" data-id="5">Grass Color</a></li>
</ul>
</div>
<div class="btn-group dropup navbar-btn menu-stay">
<button type="button" class="btn btn-primary dropdown-toggle mytooltip" data-toggle="dropdown" id="menuPassiveMobs" title="Show Passive Mobs">
Passive Mobs
<span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="#" class="entityToggle" data-type="P" data-id="19">Bat</a></li>
<li><a href="#" class="entityToggle" data-type="P" data-id="122">Cat</a></li>
<li><a href="#" class="entityToggle" data-type="P" data-id="10">Chicken</a></li>
<li><a href="#" class="entityToggle" data-type="P" data-id="11">Cow</a></li>
<li><a href="#" class="entityToggle" data-type="P" data-id="24">Donkey</a></li>
<li><a href="#" class="entityToggle" data-type="P" data-id="23">Horse</a></li>
<li><a href="#" class="entityToggle" data-type="P" data-id="26">Horse, Skeleton</a></li>
<li><a href="#" class="entityToggle" data-type="P" data-id="27">Horse, Zombie</a></li>
<li><a href="#" class="entityToggle" data-type="P" data-id="20">Iron Golem</a></li>
<li><a href="#" class="entityToggle" data-type="P" data-id="29">Llama</a></li>
<li><a href="#" class="entityToggle" data-type="P" data-id="16">Mooshroom</a></li>
<li><a href="#" class="entityToggle" data-type="P" data-id="25">Mule</a></li>
<li><a href="#" class="entityToggle" data-type="P" data-id="22">Ocelot</a></li>
<li><a href="#" class="entityToggle" data-type="P" data-id="123">Panda</a></li>
<li><a href="#" class="entityToggle" data-type="P" data-id="30">Parrot</a></li>
<li><a href="#" class="entityToggle" data-type="P" data-id="12">Pig</a></li>
<li><a href="#" class="entityToggle" data-type="P" data-id="28">Polar Bear</a></li>
<li><a href="#" class="entityToggle" data-type="P" data-id="18">Rabbit</a></li>
<li><a href="#" class="entityToggle" data-type="P" data-id="13">Sheep</a></li>
<li><a href="#" class="entityToggle" data-type="P" data-id="21">Snow Golem</a></li>
<li><a href="#" class="entityToggle" data-type="P" data-id="15">Villager</a></li>
<li><a href="#" class="entityToggle" data-type="P" data-id="14">Wolf</a></li>
<li role="separator" class="divider"></li>
<li><a href="#" class="entityToggle" data-type="P" data-id="112">Cod</a></li>
<li><a href="#" class="entityToggle" data-type="P" data-id="31">Dolphin</a></li>
<li><a href="#" class="entityToggle" data-type="P" data-id="108">Pufferfish</a></li>
<li><a href="#" class="entityToggle" data-type="P" data-id="109">Salmon</a></li>
<li><a href="#" class="entityToggle" data-type="P" data-id="17">Squid</a></li>
<li><a href="#" class="entityToggle" data-type="P" data-id="111">Tropical Fish</a></li>
<li><a href="#" class="entityToggle" data-type="P" data-id="74">Turtle</a></li>
<li role="separator" class="divider"></li>
<li><a href="#" class="entityToggle" data-type="P" data-id="63">Player</a></li>
<li role="separator" class="divider"></li>
<li><a href="#" class="featureToggleAddAll" data-type="P">Show All</a></li>
<li><a href="#" class="featureToggleRemoveAll" data-type="P">Hide All</a></li>
</ul>
</div>
<div class="btn-group dropup navbar-btn menu-stay">
<button type="button" class="btn btn-primary dropdown-toggle mytooltip" data-toggle="dropdown" id="menuHostileMobs" title="Show Hostile Mobs">
Hostile Mobs
<span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="#" class="entityToggle" data-type="H" data-id="40">Cave Spider</a></li>
<li><a href="#" class="entityToggle" data-type="H" data-id="33">Creeper</a></li>
<li><a href="#" class="entityToggle" data-type="H" data-id="110">Drowned</a></li>
<li><a href="#" class="entityToggle" data-type="H" data-id="38">Enderman</a></li>
<li><a href="#" class="entityToggle" data-type="H" data-id="104">Evoker</a></li>
<li><a href="#" class="entityToggle" data-type="H" data-id="49">Guardian</a></li>
<li><a href="#" class="entityToggle" data-type="H" data-id="50">Guardian, Elder</a></li>
<li><a href="#" class="entityToggle" data-type="H" data-id="47">Husk</a></li>
<li><a href="#" class="entityToggle" data-type="H" data-id="51">NPC</a></li>
<li><a href="#" class="entityToggle" data-type="H" data-id="39">Silverfish</a></li>
<li><a href="#" class="entityToggle" data-type="H" data-id="34">Skeleton</a></li>
<li><a href="#" class="entityToggle" data-type="H" data-id="48">Skeleton, Wither</a></li>
<li><a href="#" class="entityToggle" data-type="H" data-id="37">Slime</a></li>
<li><a href="#" class="entityToggle" data-type="H" data-id="35">Spider</a></li>
<li><a href="#" class="entityToggle" data-type="H" data-id="46">Stray</a></li>
<li><a href="#" class="entityToggle" data-type="H" data-id="105">Vex</a></li>
<li><a href="#" class="entityToggle" data-type="H" data-id="45">Witch</a></li>
<li><a href="#" class="entityToggle" data-type="H" data-id="52">Wither</a></li>
<li><a href="#" class="entityToggle" data-type="H" data-id="32">Zombie</a></li>
<li><a href="#" class="entityToggle" data-type="H" data-id="44">Zombie Villager</a></li>
<li role="separator" class="divider"></li>
<li><a href="#" class="entityToggle" data-type="H" data-id="43">Blaze</a></li>
<li><a href="#" class="entityToggle" data-type="H" data-id="41">Ghast</a></li>
<li><a href="#" class="entityToggle" data-type="H" data-id="42">Magma Cube</a></li>
<li><a href="#" class="entityToggle" data-type="H" data-id="36">Zombie Pigman</a></li>
<li role="separator" class="divider"></li>
<li><a href="#" class="entityToggle" data-type="H" data-id="53">Ender Dragon</a></li>
<li><a href="#" class="entityToggle" data-type="H" data-id="55">Endermite</a></li>
<li><a href="#" class="entityToggle" data-type="H" data-id="54">Shulker</a></li>
<li role="separator" class="divider"></li>
<li><a href="#" class="entityToggle" data-type="H" data-id="63">Player</a></li>
<li role="separator" class="divider"></li>
<li><a href="#" class="featureToggleAddAll" data-type="H">Show All</a></li>
<li><a href="#" class="featureToggleRemoveAll" data-type="H">Hide All</a></li>
</ul>
</div>
<div class="btn-group dropup navbar-btn menu-stay">
<button type="button" class="btn btn-primary dropdown-toggle mytooltip" data-toggle="dropdown" id="menuObjects" title="Show Objects">
Objects
<span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="#" class="tileEntityToggle" data-type="O" data-id="Village">Village</a></li>
<li><a href="#" class="tileEntityToggle" data-type="O" data-id="MobSpawner">Mob Spawner</a></li>
<li><a href="#" class="tileEntityToggle" data-type="O" data-id="NetherPortal">Nether Portal</a></li>
<li><a href="#" class="tileEntityToggle" data-type="O" data-id="SignNonBlank">Sign (Non-blank)</a></li>
<li><a href="#" class="tileEntityToggle" data-type="O" data-id="SignBlank">Sign (Blank)</a></li>
<li role="separator" class="divider"></li>
<li><a href="#" class="tileEntityToggle" data-type="O" data-id="Chest">Chest</a></li>
<li><a href="#" class="tileEntityToggle" data-type="O" data-id="ShulkerBox">Shulker Box</a></li>
<li><a href="#" class="tileEntityToggle" data-type="O" data-id="EnderChest">Ender Chest</a></li>
<li><a href="#" class="tileEntityToggle" data-type="O" data-id="Hopper">Hopper</a></li>
<li><a href="#" class="tileEntityToggle" data-type="O" data-id="Dropper">Dropper</a></li>
<li><a href="#" class="tileEntityToggle" data-type="O" data-id="Dispenser">Dispenser</a></li>
<li role="separator" class="divider"></li>
<li><a href="#" class="entityToggle" data-type="O" data-id="61">Armor Stand</a></li>
<li><a href="#" class="entityToggle" data-type="O" data-id="90">Boat</a></li>
<li><a href="#" class="entityToggle" data-type="O" data-id="64">Dropped Item</a></li>
<li><a href="#" class="entityToggle" data-type="O" data-id="84">Minecart</a></li>
<li><a href="#" class="entityToggle" data-type="O" data-id="98">Minecart with Chest</a></li>
<li><a href="#" class="entityToggle" data-type="O" data-id="96">Minecart with Hopper</a></li>
<li><a href="#" class="entityToggle" data-type="O" data-id="97">Minecart with TNT</a></li>
<li role="separator" class="divider"></li>
<li><a href="#" class="featureToggleAddAll" data-type="O">Show All</a></li>
<li><a href="#" class="featureToggleRemoveAll" data-type="O">Hide All</a></li>
</ul>
</div>
<div class="btn-group dropup navbar-btn menu-stay" id="blockSelectButton">
<button type="button" class="btn btn-primary dropdown-toggle mytooltip" data-toggle="dropdown" id="menuBlocks" title="Show Blocks">
Blocks
<span class="caret"></span></button>
<ul class="dropdown-menu" id="blockSelectList">
<li role="separator" class="divider"></li>
<li><a href="#" class="blockToggleAddAll">Show All</a></li>
<li><a href="#" class="blockToggleRemoveAll">Hide All</a></li>
</ul>
</div>
<div class="btn-group dropup navbar-btn menu-stay">
<button type="button" class="btn btn-primary dropdown-toggle mytooltip" data-toggle="dropdown" id="menuOptions" title="Options">
Options
<span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="#" id="gridToggle">Show Chunk Grid</a></li>
<li><a href="#" id="chunkDisplayToggle">Show Chunk Coordinates</a></li>
<li><a href="#" id="showNetherCoordinatesToggle">Show Nether Coordinate Conversion</a></li>
<li><a href="#" id="slimeChunksToggle">Show Slime Chunks</a></li>
<li><a href="#" id="checkPlayerDistanceToggle">Only Show Mobs Within 128 Blocks of Player</a></li>
<li role="separator" class="divider"></li>
<li><a href="#" id="elevationAlphaToggle">Show Height Shading</a>
<ul>
<li class="input-group">
<span class="input-group-addon">Opacity: <span id="elevationAlphaOpacityOut"></span>%</span>
<input id="elevationAlphaOpacity" class="mytooltip" title="Overlay Opacity" type="range" min="0" max="100" data-default="60" value="60"/>
</li>
</ul>
</li>
<li role="separator" class="divider"></li>
<li><a href="#" id="elevationStaticToggle">Show Shaded Relief (Pre-generated)</a>
<ul>
<li class="input-group">
<span class="input-group-addon">Opacity: <span id="elevationStaticOpacityOut"></span>%</span>
<input id="elevationStaticOpacity" class="mytooltip" title="Overlay Opacity" type="range" min="0" max="100" data-default="30" value="30"/>
</li>
</ul>
</li>
<li role="separator" class="divider dynamicShadedRelief"></li>
<li class="dynamicShadedRelief"><a href="#" id="elevationToggle">Show Shaded Relief (Dynamic)</a>
<ul class="input-group">
<li class="input-group dynamicShadedRelief">
<span class="input-group-addon">Intensity: <span id="vertOut"></span></span>
<input id="vert" class="mytooltip" title="Vertical Exaggeration" type="range" min="1" max="10" data-default="3" value="3"/>
</li>
<li class="input-group dynamicShadedRelief">
<span class="input-group-addon">Altitude: <span id="sunElOut"></span>°</span>
<input id="sunEl" class="mytooltip" title="Sun Altitude" type="range" min="0" max="90" data-default="45" value="45"/>
</li>
<li class="input-group dynamicShadedRelief">
<span class="input-group-addon">Azimuth: <span id="sunAzOut"></span>°</span>
<input id="sunAz" class="mytooltip" title="Sun Azimuth" type="range" min="0" max="360" data-default="315" value="315"/>
</li>
<li class="input-group dynamicShadedRelief">
<span class="input-group-addon">Opacity: <span id="shadeOpacityOut"></span>%</span>
<input id="shadeOpacity" class="mytooltip" title="Overlay Opacity" type="range" min="0" max="100" data-default="30" value="30"/>
</li>
<li class="input-group dynamicShadedRelief"><button type="button" class="btn" id="elevationReset">Reset Settings</button></li>
</ul>
</li>
<li role="separator" class="divider"></li>
<li><a href="#" id="btnCheckUpdate">Check for <b>Bedrock Viz</b> update...</a></li>
<li><a href="#" id="btnAbout">About <b>Bedrock Viz</b>...</a></li>
</ul>
</div>
<div class="btn-group">
<button type="button" class="btn btn-danger mytooltip" id="btnHelp" title="Help">Help</button>
</div>
<div class="navbar-header navbar-right">
<div id="worldInfo" class="navbar-text">
</div>
<div class="navbar-brand">
<a target="_blank" href="https://github.com/bedrock-viz/bedrock-viz/">Bedrock Viz</a> by the <a target="_blank" href="https://github.com/orgs/bedrock-viz/people">Bedrock Viz Team</a>
</div>
</div>
</div>
</div>
<div class="hide">
<div id="popover" class="mypopover"></div>
</div>
<div id="throbber" class="ui-corner-all" style="display:none;">
<div id="throbber-content">
<div class="throbber-image"><b>Loading...</b><br/><span id="throbber-msg"></span></div>
</div>
</div>
<div class="modal fade" style="display:none;">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title"></h4>
</div>
<div class="modal-body">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Ok</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
</body>
</html>