-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
444 lines (443 loc) · 22.1 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
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
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Haven Planer</title>
<link href="./tailwind.css" rel="stylesheet">
<script src="./code.js"></script>
<script src="./data.js"></script>
</head>
<body class="max-h-[100vh] w-full">
<div class="flex flex-row justify-between">
<div class="w-1/4">
<h1 class="text-3xl font-bold underline">
Haven Planer
</h1>
</div>
</div>
<div class="flex flex-row gap-8">
<div class="flex flex-col">
<div id="attr" class="border-gray-400 border-2 p-2" >
<table>
<tr>
<th>Attributes</th>
<th>Base Value</th>
<th>+Gear</th>
</tr>
<tr>
<td>Strength</td>
<td id="t-str"><input class="w-14" type="number" value="1"></td>
</tr>
<tr>
<td>Agility</td>
<td id="t-agi"><input class="w-14" type="number" value="1"></td>
</tr>
<tr>
<td>Intelligence</td>
<td id="t-int"><input class="w-14" type="number" value="1"></td>
</tr>
<tr>
<td>Perception</td>
<td id="t-per"><input class="w-14" type="number" value="1"></td>
</tr>
<tr>
<td>Charisma</td>
<td id="t-cha"><input class="w-14" type="number" value="1"></td>
</tr>
<tr>
<td>Dexterity</td>
<td id="t-dex"><input class="w-14" type="number" value="1"></td>
</tr>
<tr>
<td>Will</td>
<td id="t-wil"><input class="w-14" type="number" value="1"></td>
</tr>
<tr>
<td>Psyche</td>
<td id="t-psy"><input class="w-14" type="number" value="1"></td>
</tr>
</table>
</div>
<div id="abil" class="border-gray-400 border-2 p-2" >
<table>
<tr>
<th>Attributes</th>
<th>Base Value</th>
<th>+Gear</th>
</tr>
<tr>
<td>Unarmed Combat</td>
<td id="t-Unarmed-Combat"><input class="w-14" type="number" value="1"></td>
</tr>
<tr>
<td>Melee Combat</td>
<td id="t-Melee-Combat"><input class="w-14" type="number" value="1"></td>
</tr>
<tr>
<td>Marksmanship</td>
<td id="t-Marksmanship"><input class="w-14" type="number" value="1"></td>
</tr>
<tr>
<td>Exploration</td>
<td id="t-Exploration"><input class="w-14" type="number" value="1"></td>
</tr>
<tr>
<td>Stealth</td>
<td id="t-Stealth"><input class="w-14" type="number" value="1"></td>
</tr>
<tr>
<td>Sewing</td>
<td id="t-Sewing"><input class="w-14" type="number" value="1"></td>
</tr>
<tr>
<td>Smithing</td>
<td id="t-Smithing"><input class="w-14" type="number" value="1"></td>
</tr>
<tr>
<td>Masonry</td>
<td id="t-Masonry"><input class="w-14" type="number" value="1"></td>
</tr>
<tr>
<td>Carpentry</td>
<td id="t-Carpentry"><input class="w-14" type="number" value="1"></td>
</tr>
<tr>
<td>Cooking</td>
<td id="t-Cooking"><input class="w-14" type="number" value="1"></td>
</tr>
<tr>
<td>Farming</td>
<td id="t-Farming"><input class="w-14" type="number" value="1"></td>
</tr>
<tr>
<td>Survival</td>
<td id="t-Survival"><input class="w-14" type="number" value="1"></td>
</tr>
<tr>
<td>Lore</td>
<td id="t-Lore"><input class="w-14" type="number" value="1"></td>
</tr>
</table>
</div>
</div>
<div id="slots" class="border-gray-400 border-2 p-2">
<h2>Slots</h2>
<table>
<tbody>
<tr>
<td>
<div class="flex justify-center items-center relative w-16 h-16 border-black border-2 cursor-pointer" onclick="slot_selected('1L')">
<span class="absolute top-0 left-0">1L</span>
<img id="1L-icon" src="" alt="">
</div>
</td>
<td>
<div class="flex justify-center items-center relative w-16 h-16 border-black border-2 cursor-pointer" onclick="slot_selected('1R')">
<span class="absolute top-0 left-0">1R</span>
<img id="1R-icon" src="" alt="">
</div>
</td>
</tr>
<tr>
<td>
<div class="flex justify-center items-center relative w-16 h-16 border-black border-2 cursor-pointer" onclick="slot_selected('2L')">
<span class="absolute top-0 left-0">2L</span>
<img id="1L-icon" src="" alt="">
</div>
</td>
<td>
<div class="flex justify-center items-center relative w-16 h-16 border-black border-2 cursor-pointer" onclick="slot_selected('2R')">
<span class="absolute top-0 left-0">2R</span>
<img id="1R-icon" src="" alt="">
</div>
</td>
</tr>
<tr>
<td>
<div class="flex justify-center items-center relative w-16 h-16 border-black border-2 cursor-pointer" onclick="slot_selected('3L')">
<span class="absolute top-0 left-0">3L</span>
<img id="1L-icon" src="" alt="">
</div>
</td>
<td>
<div class="flex justify-center items-center relative w-16 h-16 border-black border-2 cursor-pointer" onclick="slot_selected('3R')">
<span class="absolute top-0 left-0">3R</span>
<img id="1R-icon" src="" alt="">
</div>
</td>
</tr>
<tr>
<td>
<div class="flex justify-center items-center relative w-16 h-16 border-black border-2 cursor-pointer" onclick="slot_selected('4L')">
<span class="absolute top-0 left-0">4L</span>
<img id="1L-icon" src="" alt="">
</div>
</td>
<td>
<div class="flex justify-center items-center relative w-16 h-16 border-black border-2 cursor-pointer" onclick="slot_selected('4R')">
<span class="absolute top-0 left-0">4R</span>
<img id="1R-icon" src="" alt="">
</div>
</td>
</tr>
<tr>
<td>
<div class="flex justify-center items-center relative w-16 h-16 border-black border-2 cursor-pointer" onclick="slot_selected('5L')">
<span class="absolute top-0 left-0">5L</span>
<img id="1L-icon" src="" alt="">
</div>
</td>
<td>
<div class="flex justify-center items-center relative w-16 h-16 border-black border-2 cursor-pointer" onclick="slot_selected('5R')">
<span class="absolute top-0 left-0">5R</span>
<img id="1R-icon" src="" alt="">
</div>
</td>
</tr>
<tr>
<td>
<div class="flex justify-center items-center relative w-16 h-16 border-black border-2 cursor-pointer" onclick="slot_selected('6L')">
<span class="absolute top-0 left-0">6L</span>
<img id="1L-icon" src="" alt="">
</div>
</td>
<td>
<div class="flex justify-center items-center relative w-16 h-16 border-black border-2 cursor-pointer" onclick="slot_selected('6R')">
<span class="absolute top-0 left-0">6R</span>
<img id="1R-icon" src="" alt="">
</div>
</td>
</tr>
<tr>
<td>
<div class="flex justify-center items-center relative w-16 h-16 border-black border-2 cursor-pointer" onclick="slot_selected('7L')">
<span class="absolute top-0 left-0">7L</span>
<img id="1L-icon" src="" alt="">
</div>
</td>
<td>
<div class="flex justify-center items-center relative w-16 h-16 border-black border-2 cursor-pointer" onclick="slot_selected('7R')">
<span class="absolute top-0 left-0">7R</span>
<img id="1R-icon" src="" alt="">
</div>
</td>
</tr>
<tr>
<td>
<div class="flex justify-center items-center relative w-16 h-16 border-black border-2 cursor-pointer" onclick="slot_selected('8L')">
<span class="absolute top-0 left-0">8L</span>
<img id="1L-icon" src="" alt="">
</div>
</td>
<td>
<div class="flex justify-center items-center relative w-16 h-16 border-black border-2 cursor-pointer" onclick="slot_selected('8R')">
<span class="absolute top-0 left-0">8R</span>
<img id="1R-icon" src="" alt="">
</div>
</td>
</tr>
<tr>
<td>
<div class="flex justify-center items-center relative w-16 h-16 border-black border-2 cursor-pointer" onclick="slot_selected('9L')">
<span class="absolute top-0 left-0">9L</span>
<img id="1L-icon" src="" alt="">
</div>
</td>
<td>
<div class="flex justify-center items-center relative w-16 h-16 border-black border-2 cursor-pointer" onclick="slot_selected('9R')">
<span class="absolute top-0 left-0">9R</span>
<img id="1R-icon" src="" alt="">
</div>
</td>
</tr>
<tr>
<td>
<div class="flex justify-center items-center relative w-16 h-16 border-black border-2 cursor-pointer" onclick="slot_selected('10L')">
<span class="absolute top-0 left-0">10L</span>
<img id="1L-icon" src="" alt="">
</div>
</td>
<td>
<div class="flex justify-center items-center relative w-16 h-16 border-black border-2 cursor-pointer" onclick="slot_selected('10R')">
<span class="absolute top-0 left-0">10R</span>
<img id="1R-icon" src="" alt="">
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="item_maker" class="flex flex-col min-w-72 w-1/2 max-w-96 border-gray-400 border-2 p-2">
<div id="maker-base-item">
<label class="border-2 border-gray-400" for="item-select">Item</label>
<select onchange="item_selected(this.value)" id="item-select">
<option value="-1">--Please choose a slot--</option>
</select>
<table>
<tr>
<td><h2 class="text-2xl font-bold">Item</h2></td>
</tr>
<tr>
<td>Selected slot:</td>
<td class="w-16" id="selected_slot"></td>
<td class="w-16">
<div class="flex justify-center items-center w-16 h-16 border-black border-2">
<img class="max-w-16 max-h-16" id="maker_base_item_icon" src="" alt="">
</div>
</td>
</tr>
<tr>
<td>Slots:</td>
<td id="maker_base_item_slots" colspan="2"></td>
</tr>
<tr>
<td><h2 class="text-2xl font-bold">Bonus</h2></td>
</tr>
<tr>
<td colspan="3" id="maker_base_item_bonus"></td>
</tr>
<tr id="row_armor_0">
<td><h2 class="text-2xl font-bold">Armor</h2></td>
</tr>
<tr id="row_armor_1">
<td>HP:</td>
<td id="selected_armor_hp"></td>
</tr>
<tr id="row_armor_2">
<td>Abs X:</td>
<td id="selected_armor_abs_x"></td>
</tr>
<tr id="row_armor_3">
<td>Abs Y:</td>
<td id="selected_armor_abs_y"></td>
</tr>
<tr>
<td><h2 class="text-2xl font-bold">Gilding</h2></td>
</tr>
<tr >
<td>Affinity:</td>
<td id="selected_affinity" colspan="2"></td>
</tr>
<tr id="maker_base_item_gild_chances">
<td>Min:</td>
<td id="maker_base_item_chance_min"></td>
<td>Max:</td>
<td id="maker_base_item_chance_max"></td>
</tr>
</table>
</div>
<div class="border-2 h-1" ></div>
<h2 class="text-2xl font-bold">Slots</h2>
<div id="maker_slots">
<div id="maker-slot-1" class="hidden">
<table class="w-full">
<tr>
<td class="w-1/4">
<img src="" alt="?">
</td>
<td colspan="2" class="w-1/2">
<a href="" target="_blank">Name</a>
</td>
<td>
<button class="bg-red-300 rounded-full border-black border-2 w-8 h-8 font-bold">X</button>
</td>
</tr>
<tr>
<td colspan="4" class="font-bold">Chance to apply:</td>
</tr>
<tr>
<td>Min:</td>
<td>0%</td>
<td>Max:</td>
<td>0%</td>
</tr>
</table>
<div class="border-2 h-1" ></div>
</div>
</div>
</div>
<div class="flex flex-col border-gray-400 border-2 p-2 max-h-[80vh]">
<div>
<h2 class="text-2xl font-bold" >Gilding</h2>
<div class="flex flex-row">
<h2 class="text-1xl font-bold">Affinity:</h2>
<select onchange="gilding_affinity_filter_selected(this.value)" id="affinity-select">
<option value="-1">--Please choose an affinity--</option>
<option value="Agility">Agility</option>
<option value="Carpentry">Carpentry</option>
<option value="Charisma">Charisma</option>
<option value="Constitution">Constitution</option>
<option value="Cooking">Cooking</option>
<option value="Dexterity">Dexterity</option>
<option value="Exploration">Exploration</option>
<option value="Farming">Farming</option>
<option value="Intelligence">Intelligence</option>
<option value="Lore">Lore</option>
<option value="Masonry">Masonry</option>
<option value="Melee">Melee</option>
<option value="Perception">Perception</option>
<option value="Psyche">Psyche</option>
<option value="Sewing">Sewing</option>
<option value="Smithing">Smithing</option>
<option value="Stealth">Stealth</option>
<option value="Strength">Strength</option>
<option value="Survival">Survival</option>
<option value="Unarmed">Unarmed</option>
<option value="Will">Will</option>
</select>
</div>
<div class="flex flex-row">
<h2 class="text-1xl font-bold">Bonus:</h2>
<select onchange="gilding_bonus_filter_selected(this.value)" class="w-full" name="filter" id="bonus-select">
<option value="-1">--Please choose a bonus--</option>
<option value="Agility">Agility</option>
<option value="Carpentry">Carpentry</option>
<option value="Charisma">Charisma</option>
<option value="Constitution">Constitution</option>
<option value="Cooking">Cooking</option>
<option value="Dexterity">Dexterity</option>
<option value="Exploration">Exploration</option>
<option value="Farming">Farming</option>
<option value="Intelligence">Intelligence</option>
<option value="Lore">Lore</option>
<option value="Masonry">Masonry</option>
<option value="Melee">Melee</option>
<option value="Perception">Perception</option>
<option value="Psyche">Psyche</option>
<option value="Sewing">Sewing</option>
<option value="Smithing">Smithing</option>
<option value="Stealth">Stealth</option>
<option value="Strength">Strength</option>
<option value="Survival">Survival</option>
<option value="Unarmed">Unarmed</option>
<option value="Will">Will</option>
</select>
</div>
</div>
<div class="flex flex-col h-full overflow-y-scroll">
<div class="border-2 h-1 mt-1 mb-1" ></div>
<div id="gilding-results">
</div>
</div>
</div>
</div>
<footer class="w-full flex flex-row justify-between p-4">
<a class="cursor-pointer flex flex-row" href="https://github.com/joaoschoen/Haven-Planer">
<img class="max-w-5 h-5" src="https://github.githubassets.com/assets/GitHub-Mark-ea2971cee799.png" alt="github icon">
<h1 class="text-1xl font-bold underline">
GitHub
</h1>
</a>
<p class="w-3/4">
In case you want to give any suggestions or report any bugs feel free to open an issue on github or contact me on discord, my username is Hordian
</p>
</footer>
<div class="hidden">
<div class="bg-slate-200"></div>
<div class="bg-slate-300"></div>
<div class="bg-blue-300"></div>
<div class="ml-auto mr-4"></div>
</div>
</body>
</html>