-
Notifications
You must be signed in to change notification settings - Fork 0
/
dnd35eMonsters.html
381 lines (320 loc) · 18.6 KB
/
dnd35eMonsters.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
<!doctype html>
<html lang="en" data-bs-theme="dark">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>DND 3.5e Monsters</title>
<link href="bootstrap.css" rel="stylesheet">
<link href="dnd35eMonsters.css" rel="stylesheet">
</head>
<body>
<!-- Your Monsters -->
<div class="card rounded-4 m-2">
<div class="card-header text-center fw-bold bg-info-subtle"> YOUR MONSTER LIST </div>
<div class="card-body bg-primary-subtle" id="your-monsters"></div>
</div>
<!-- Nav Items -->
<ul class="nav nav-tabs" id="myTab" role="tablist">
<!-- SRD TAB -->
<li class="nav-item" role="presentation">
<button class="nav-link active" id="srd-monsters" data-bs-toggle="tab" data-bs-target="#srd-monsters-pane" type="button" role="tab" aria-controls="srd-monsters-pane" aria-selected="true">SRD Monsters</button>
</li>
<!-- CUSTOM TAB -->
<li class="nav-item" role="presentation">
<button class="nav-link" id="custom-monsters" data-bs-toggle="tab" data-bs-target="#custom-monsters-pane" type="button" role="tab" aria-controls="custom-monsters-pane" aria-selected="false">New Custom Monster</button>
</li>
<!-- SELECTED MONSTER -->
<li class="nav-item" role="presentation">
<button class="nav-link" id="selected-monsters" data-bs-toggle="tab" data-bs-target="#selected-monsters-pane" type="button" role="tab" aria-controls="selected-monsters-pane" aria-selected="false">Selected Monster</button>
</li>
</ul>
<div class="tab-content" id="myTabContent">
<!-------------------------------------- SRD CONTENT-------------------------------------------------->
<div class="tab-pane fade show active" id="srd-monsters-pane" role="tabpanel" aria-labelledby="srd-monsters" tabindex="0">
<!-- dropdown -->
<div class="m-3" style="display: flex; align-items: center; flex-direction: row;">
<div class="m-1 col-5">
<span for="monsterDropdown"> Select a Monster</span>
<select class="form-select" id="monsterDropdown">
<option selected value="">
</option>
</select>
</div>
<!---- DATALIST DOESNT WORK ON TALESPIRE
<div class="m-1">
<span for="input-datalist">Or Search</span>
<input class="form-control" type="text" list="srd-monster-datalist" id="input-datalist">
</div>
<div class="m-1"><br>
<button id="search-monster" class="btn btn-sm btn-success" onclick="searchsrdmonster();">Search</button>
</div>
---->
<div class="m-1 col-5">
<span for="input-datalist">Or Search</span>
<input class="form-control" type="text" id="input-search-monster" oninput="searchSrdMonster();">
<div>
<input type="file" id="fileInput" style="display: none;">
</div>
</div>
</div>
<!-- data -->
<div id="search-results" class="rounded-6 m-1">
</div>
<div class="card rounded-6 m-1">
<div id="selectedSrdMonster">
</div>
</div>
</div>
<!---------------------------------- CUSTOM CONTENT--------------------------------------------------->
<div class="tab-pane fade" id="custom-monsters-pane" role="tabpanel" aria-labelledby="custom-monsters" tabindex="1">
<div class="card rounded-6 m-2" style="display: flex; flex-direction: row;">
<div>
<button type="button" class="btn btn-success m-2" onclick="AddNewMonster();">Add to your monsters</button>
</div>
<div>
<button class="btn btn-outline-success m-2" id="import-file-btn">Import from file</button>
<input type="file" id="import-file-input" style="display: none;">
</div>
<div>
<button type="button" class="btn btn-outline-success m-2" onclick="ExportMonster(true);">Export monster to file</button>
</div>
<div>
<button type="button" class="btn btn-outline-success m-2" onclick="ExportMonster(false);">Copy to Clipboard</button>
</div>
</div>
<div class="card rounded-6 m-2">
<a class="btn btn-outline-warning" data-bs-toggle="collapse" href="#collapse-export-note" role="button" aria-expanded="false" aria-controls="collapse-export-note">
Note on Export
</a>
<div class="collapse" id="collapse-export-note">
<div class="card card-body">
It doesn't work inside talespire. You can use the dnd35eMonsters.html in your browser to create and export a monster to a single .json file to share.<br><br>
You can also click the "Copy to Clipboard" button, then paste the data in notepad and save the file wherever you want as a .json file.<br><br>You will be able to import those files here with the "Import from file" button.
</div>
</div>
</div>
<div class="card rounded-6 m-2">
<div class="card-body" id="customMonsterData">
<form id="customMonsterForm">
<div class="row g-1 align-items-center m-3">
<div class="col-4">
<label for="name" class="col-form-label">Name</label>
</div>
<div class="col-8">
<input type="text" id="name" class="form-control" value=" my scary monster">
</div>
</div>
<div class="row g-1 align-items-center m-3">
<div class="col-4">
<label for="challenge_rating" class="col-form-label">Challenge Rating</label>
</div>
<div class="col-2">
<input type="text" id="challenge_rating" class="form-control">
</div>
</div>
<div class="row g-1 align-items-center m-3">
<div class="col-4">
<label for="alignment" class="col-form-label">Alignment</label>
</div>
<div class="col-5">
<select class="form-select" id="alignment">
<option value="Lawful Evil">Lawful Evil</option>
<option value="Lawful Good">Lawful Good</option>
<option value="Lawful Neutral">Lawful Neutral</option>
<option value="Neutral Neutral" selected>Neutral Neutral</option>
<option value="Chaotic Neutral">Chaotic Neutral</option>
<option value="Chaotic Good">Chaotic Good</option>
<option value="Chaotic Evil">Chaotic Evil</option>
</select>
</div>
</div>
<div class="row g-1 align-items-center m-3">
<div class="col-4">
<label for="size" class="col-form-label">Size</label>
</div>
<div class="col-4">
<select class="form-select" id="size">
<option value="Fine">Fine</option>
<option value="Diminutive">Diminutive</option>
<option value="Tiny">Tiny</option>
<option value="Small">Small</option>
<option value="Medium" selected>Medium</option>
<option value="Large">Large</option>
<option value="Huge">Huge</option>
<option value="Gargantuan">Gargantuan</option>
<option value="Colossal">Colossal</option>
</select>
</div>
</div>
<div class="row g-1 align-items-center m-3">
<div class="col-4">
<label for="type" class="col-form-label">Type</label>
</div>
<div class="col-4">
<input type="text" id="type" class="form-control">
</div>
</div>
<div class="row g-1 align-items-center m-3">
<div class="col-4">
<label for="hit_dice" class="col-form-label">Hit Dice</label>
</div>
<div class="col-4">
<input type="text" id="hit_dice" class="form-control">
<div class="form-text">Ex: 2d8+1 (12 hp)</div>
</div>
</div>
<div class="row g-1 align-items-center m-3">
<div class="col-4">
<label for="initiative" class="col-form-label">Initiative</label>
</div>
<div class="col-2">
<input type="text" id="initiative" class="form-control">
<div class="form-text">Ex: +3 </div>
</div>
</div>
<div class="row g-1 align-items-center m-3">
<div class="col-4">
<label for="speed" class="col-form-label">Speed</label>
</div>
<div class="col-6">
<input type="text" id="speed" class="form-control">
</div>
</div>
<div class="row g-1 align-items-center m-3">
<div class="col-4">
<label for="armor_class" class="col-form-label">Armor Class</label>
</div>
<div class="col-8">
<input type="text" id="armor_class" class="form-control">
<div class="form-text">Ex: 16 (-2 size, +1 Dex, +7 natural), touch 9, flat-footed 15 </div>
</div>
</div>
<div class="row g-1 align-items-center m-3">
<div class="col-4">
<label for="base_attack" class="col-form-label">Base Attack</label>
</div>
<div class="col-2">
<input type="text" id="base_attack" class="form-control">
<div class="form-text">Ex: +3 </div>
</div>
</div>
<div class="row g-1 align-items-center m-3">
<div class="col-4">
<label for="grapple" class="col-form-label">Grapple</label>
</div>
<div class="col-2">
<input type="text" id="grapple" class="form-control">
<div class="form-text">Ex: +5 </div>
</div>
</div>
<div class="row g-1 align-items-center m-3">
<div class="col-4">
<label for="attack" class="form-label">Attack</label>
</div>
<div class="col-8">
<textarea class="form-control" id="attack" rows="1"></textarea>
<div class="form-text">Ex: Bite +3 Damage 2d6+3 </div>
</div>
</div>
<div class="row g-1 align-items-center m-3">
<div class="col-4">
<label for="full_attack" class="form-label">Full Attack</label>
</div>
<div class="col-8">
<textarea class="form-control" id="full_attack" rows="2"></textarea>
<div class="form-text">Ex: Bite +3 -> 2d6+3 Claw +5 Claw damage 1d8 , Tail +2 does 1d6 of damage </div>
</div>
</div>
<div class="row g-1 align-items-center m-3">
<div class="col-4">
<label for="space" class="col-form-label">Space</label>
</div>
<div class="col-1">
<input type="text" id="space" class="form-control">
</div> ft
</div>
<div class="row g-1 align-items-center m-3">
<div class="col-4">
<label for="reach" class="col-form-label">Reach</label>
</div>
<div class="col-1">
<input type="text" id="reach" class="form-control">
</div> ft
</div>
<div class="row g-1 align-items-center m-3">
<div class="col-4">
<label for="special_attacks" class="col-form-label">Special Attacks</label>
</div>
<div class="col-8">
<input type="text" id="special_attacks" class="form-control">
<div class="form-text">line of lightning 12d6 (DC 25), crush 2d8+12 (DC 25) </div>
</div>
</div>
<div class="row g-1 align-items-center m-3">
<div class="col-4">
<label for="special_qualities" class="col-form-label">Special Qualities</label>
</div>
<div class="col-8">
<input type="text" id="special_qualities" class="form-control">
</div>
</div>
<div class="row g-1 align-items-center m-3">
<div class="col-4">
<label for="saves" class="col-form-label">Saves</label>
</div>
<div class="col-8">
<input type="text" id="saves" class="form-control">
<div class="form-text">Fort +7, Ref +3, Will +11</div>
</div>
</div>
<div class="row g-1 align-items-center m-3">
<div class="col-4">
<label for="abilities" class="col-form-label">Abilities</label>
</div>
<div class="col-8">
<input type="text" id="abilities" class="form-control">
<div class="form-text">Str 27, Dex 10, Con 21, Int 20, Wis 21, Cha 20</div>
</div>
</div>
<div class="row g-1 align-items-center m-3">
<div class="col-4">
<label for="skills" class="col-form-label">Skills</label>
</div>
<div class="col-8">
<input type="text" id="skills" class="form-control">
<div class="form-text">Climb +14, Concentration +8, Escape Artist +5</div>
</div>
</div>
<div class="row g-1 align-items-center m-3">
<div class="col-4">
<label for="feats" class="col-form-label">Feats</label>
</div>
<div class="col-8">
<input type="text" id="feats" class="form-control">
</div>
</div>
<div class="row g-1 align-items-center m-3">
<div class="mb-3">
<label for="details" class="form-label mt-2">
<h3>Description and Details</h3>
</label>
<textarea class="form-control" id="details" rows="10"></textarea>
</div>
</div>
</form>
</div>
</div>
</div>
<!--------------------------- SELECTED MONSTER ---------------------------------------------------->
<div class="tab-pane fade" id="selected-monsters-pane" role="tabpanel" aria-labelledby="selected-monsters" tabindex="2">
<!-- data -->
<div class="card rounded-6 m-2">
<div class="card-body" id="selectedListMonster">
</div>
</div>
</div>
</div>
<script src="bootstrap.js"></script>
<script src="dnd35eMonsters.js"></script>
</body>
</html>