forked from theaspect/ror
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
199 lines (188 loc) · 11 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<script src="https://d3js.org/d3.v5.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pako/1.0.8/pako_inflate.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
crossorigin="anonymous">
<link rel="stylesheet" href="index.css">
<title>Regions of Ruin Map v0.7</title>
</head>
<body onhashchange="onHashChange()">
<div class="container-fluid">
<div class="row">
<div class="col-8">
<svg id="map" width="100%" viewBox="0 0 1028 770" preserveAspectRatio="xMinYMin meet"></svg>
</div>
<div class="col-4">
<h4>Regions of Ruin Map v0.7</h4>
<p>
<h5>Filters</h5>
<div>
<strong>Groups:</strong>
<select id="terrain" onchange="setHash('terrain', this.value)">
<option value="" selected>Select group</option>
<optgroup label="Terrains">
<option value="city">city</option>
<option value="forest">forest</option>
<option value="ruins">ruins</option>
<option value="cave">cave</option>
<option value="swamp">swamp</option>
<option value="desert">desert</option>
<option value="fort">fort</option>
<option value="home">Home</option>
<option value="rothgar">Rothgar</option>
</optgroup>
<optgroup label="Attitude">
<option value="attitude-friendly">Friendly</option>
<option value="attitude-hostile">Hostile</option>
</optgroup>
</select>
</div>
<div>
<strong>Contain:</strong>
<select id="contain" onchange="setHash('contain', this.value)">
<option value="" selected>Select item</option>
<optgroup label="Beacons">
<option value="beacon-hall">Treasure Hall Beacons</option>
<option value="beacon-wide">Rothgar Beacon</option>
<option value="beacon-gesdun">Gedsun Beacon</option>
</optgroup>
<optgroup label="Foes">
<option value="foe-total">Total Foes</option>
<option value="foe-bosses">Bosses</option>
<option value="foe-goblins">Goblins</option>
<option value="foe-red-goblins">Redskin Goblins</option>
<option value="foe-blue-goblin">Blueskin Goblins</option>
<option value="foe-black-goblin">Ironclad Goblins</option>
<option value="foe-kobolds">Kobolds</option>
<option value="foe-purple-kobolds">Purple Kobolds</option>
<option value="foe-red-kobolds">Red Kobolds</option>
<option value="foe-orcs">Orcs</option>
<option value="foe-troll">Trolls</option>
<option value="foe-undead">Undead</option>
<option value="foe-wolves">Wolves</option>
<option value="foe-white-wolves">White Wolves</option>
<option value="foe-red-wolfs">Red Wolves</option>
<option value="foe-wargs">Wargs</option>
<option value="foe-crawlers">Crawlers</option>
<option value="foe-ice-crawlers">Ice Crawlers</option>
<option value="foe-poison-slug">Poison Slugs</option>
<option value="foe-fire-slug">Fire Slugs</option>
<option value="foe-blue-slug">Blue Slugs</option>
<option value="foe-ice-slugs">Ice Slugs</option>
<option value="foe-poison-mushrooms">Poison Mushrooms</option>
<option value="foe-fire-mushrooms">Fire Mushrooms</option>
<option value="foe-thorns">Weeds</option>
<option value="foe-fire-thorns">Fire Weeds</option>
<option value="foe-druids">Druids</option>
<option value="foe-sentinel">Sentinels</option>
<option value="foe-crazy-dwarf">Crazy Dwarves</option>
</optgroup>
<optgroup label="Resources">
<option value="res-wood">Wood</option>
<option value="res-food">Food</option>
<option value="res-leather">Leather</option>
<option value="res-stone">Stone</option>
<option value="res-cotton">Cotton</option>
<option value="res-coal">Coal</option>
<option value="res-ore">Ore</option>
<option value="res-copper">Copper</option>
<!-- <option value="res-iron">Iron</option> -->
<option value="res-bronze">Bronze</option>
<!-- <option value="res-steel">Steel</option> -->
<option value="res-adamantine">Adamantine</option>
</optgroup>
<optgroup label="Stockpiles">
<option value="sp-wood">Wood</option>
<option value="sp-food">Food</option>
<option value="sp-leather">Leather</option>
<option value="sp-stone">Stone</option>
<option value="sp-cotton">Cotton</option>
<option value="sp-coal">Coal</option>
<option value="sp-ore">Ore</option>
<!-- <option value="sp-copper">Copper</option> -->
<!-- <option value="sp-iron">Iron</option> -->
<!-- <option value="sp-bronze">Bronze</option> -->
<!-- <option value="sp-steel">Steel</option> -->
<!-- <option value="sp-adamantine">Adamantine</option> -->
</optgroup>
<optgroup label="Loot">
<option value="loot-small-chest">Small Chest</option>
<option value="loot-middle-chest">Middle Chest</option>
<option value="loot-stone-chest">Stone Chest</option>
<option value="loot-golden-chest">Golden Chest</option>
<option value="loot-big-golden-chest">Big Golden Chest</option>
<option value="loot-weapon-rack">Weapon Rack</option>
<option value="loot-armor-rack">Armor Rack</option>
<option value="loot-book">Book</option>
<option value="loot-secret">Secret</option>
<option value="loot-caged-dwarf">Caged Dwarf</option>
</optgroup>
<optgroup label="Buildings">
<option value="building-blacksmith">Blacksmith</option>
<option value="building-small-apothecary">Small Apothecary</option>
<option value="building-middle-apothecary">Middle Apothecary</option>
<option value="building-shop">Shop</option>
<option value="building-tavern">Tavern</option>
<option value="building-heal">Heal</option>
</optgroup>
</select>
</div>
<div>
<strong>Search:</strong>
<input id="search" placeholder="Type a name" onchange="setHash('search', this.value)" onkeyup="setHash('search', this.value)">
</div>
</p>
<p>
<h5>Info</h5>
<div>
<strong>Location: </strong>
<span id="info-location"></span>
</div>
<div>
<strong>Type: </strong>
<span id="info-type"></span>
</div>
<div>
<strong>Contain: </strong>
<span id="info-contain"></span>
</div>
<div>
<strong>Comment: </strong>
<span id="info-comment"></span>
</div>
</p>
<p>
<h5>Usage</h5>
<ul>
<li>Click on location to get info</li>
<li>Double click on location to mark it</li>
<li>You can copy location link</li>
<li>Select an item from contain dropbox to see amount</li>
<li>Keep a mouse over location to see the name</li>
<li>If you spot a mistake report to the Steam
<a href="http://steamcommunity.com/app/680360/discussions/0/1700542332328947043/">Discussion</a>
</li>
</ul>
</p>
<div class="copy">
<small>Copyright © 2017
<a href="https://github.com/theaspect/ror">theaspect</a>.
<a href="#contents" onclick="setHash('contents', '')">contents</a>
</small>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<p id="contents" style="display: none"></p>
</div>
</div>
</div>
<script src="index.js"></script>
</body>
</html>