-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
735 lines (727 loc) · 31.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
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
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
<!--
Card-Generator. A program designed to make cards.
Copyright (C) 2020 Elijah Anderson<contact@frustratedprogrammer.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, version 3 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title id="title"></title>
<link href="fonts.css" rel="stylesheet">
<link href="index.css" rel="stylesheet">
<link href="step1.css" rel="stylesheet">
<link href="step2.css" rel="stylesheet">
<link href="step3.css" rel="stylesheet">
<link href="step35.css" rel="stylesheet">
<link href="step4.css" rel="stylesheet">
<link href="step5.css" rel="stylesheet">
</head>
<body id="actual_body">
<div id="header">
<button class="header_step_button" id="header_step_1" disabled>
<span class="header_step_title">Step 1</span>
<br>
<span class="header_step_description">Choose spell book.</span>
</button>
<button class="header_step_button" id="header_step_2" disabled>
<span class="header_step_title">Step 2</span>
<br>
<span class="header_step_description">Verify spells.</span>
</button>
<button class="header_step_button" id="header_step_3" disabled>
<span class="header_step_title">Step 3</span>
<br>
<span class="header_step_description">Choose card style.</span>
</button>
<button class="header_step_button" id="header_step_35" style="display: none" disabled>
<span class="header_step_title">3.5</span>
<br>
<span class="header_step_description">Custom Card Editing.</span>
</button>
<button class="header_step_button" id="header_step_4" disabled>
<span class="header_step_title">Step 4</span>
<br>
<span class="header_step_description">Generating cards.</span>
</button>
<button class="header_step_button" id="header_step_5" disabled>
<span class="header_step_title">Step 5</span>
<br>
<span class="header_step_description">Download cards.</span>
</button>
</div>
<div id="body">
<div id="error">
<h1 id="error_name">ERROR</h1>
<p id="error_exp" style="font-family: mplantin"></p>
<p id="error_msg"></p>
<button id="close_error" style="transform: translate(-50%,-50%); float: right;">Close</button>
</div>
<div id="step0" class="step" style="display: block; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 1;">
<h1 style="text-align: center; font-family: ringbearer; font-size: 400%">Loading. . .</h1>
<img src="./images/website/Loading.svg" style="display: block; margin-left: auto; margin-right: auto;">
<noscript>Your JavaScript is disabled or blocked. This site relies heavily of JavaScript, so if you wish to use this site:</noscript><br>
<noscript>Please allow Javascript and reload the page.</noscript>
</div>
<div id="step1" class="step" style="display: none;">
<h1 id="step1_title">Choose Your Spell Book!</h1>
<div style="display:flex;" class="class_selection">
<button id="bard_selection">
<img alt="Img of a ornate card with the BARD logo." src="./images/website/preview/bard_back.png">
</button>
<button id="cleric_selection">
<img alt="Img of a ornate card with the CLERIC logo." src="./images/website/preview/cleric_back.png">
</button>
<button id="wizard_selection">
<img alt="Img of a ornate card with the WIZARD logo." src="./images/website/preview/wizard_back.png">
</button>
<button id="druid_selection">
<img alt="Img of a ornate card with the DRUID logo." src="./images/website/preview/druid_back.png">
</button>
</div>
<div style="display:flex;" class="class_selection">
<button id="sorcerer_selection">
<img alt="Img of a ornate card with the SORCERER logo." src="./images/website/preview/sorcerer_back.png">
</button>
<button id="warlock_selection">
<img alt="Img of a ornate card with the WARLOCK logo." src="./images/website/preview/warlock_back.png">
</button>
<button id="ranger_selection">
<img alt="Img of a ornate card with the RANGER logo." src="./images/website/preview/ranger_back.png">
</button>
<button id="paladin_selection">
<img alt="Img of a ornate card with the PALADIN logo." src="./images/website/preview/paladin_back.png">
</button>
<button id="custom_selection">
<img alt="Img of a ornate card with a gear to symbolize CUSTOM." src="./images/website/preview/custom_back.png">
</button>
</div>
</div>
<div id="step2" class="step" style="padding-top: 30px;">
<button id="approve_step2">APPROVE</button>
<h1 id="step2_title">Are these the spells?</h1>
<span id="step2_subtitle">Check all these spells to double check you have all of your desired spells.<br>Hover over a spell for a while to get all of that spell's details.</span>
<table id="step2_spell_list"></table>
<div id="spell_preview">
<img src="./images/website/ScrollEdge.png">
<div id="spell_preview_list"></div>
<img src="./images/website/ScrollEdge.png">
</div>
</div>
<div id="step3" class="step" style="left:1000px; top:-1000px;">
<div>
<h1 id="step3_title">Note: backside of cards will be resized to match the size of the frontside</h1>
<p style="text-align: center;width: 100%;font-family: mplantin;">Also Note: Images shown here are in low quality for quick loading. While the actual images used are in high quality.</p>
<div id="step3_frontside" class="step3_img_choice_container">
<select id="front_card_select">
<option value="none" hidden selected disabled>Select Frontside</option>
<option value="custom" disabled hidden id="step_3_front_custom"></option>
<option value="nbeebz">nBeebz's spell cards</option>
<option value="color">Colored template cards</option>
<option value="class">Classed template cards</option>
<option value='upload' class="step3_upload" id="front_select_upload">
<button>Upload custom template</button>
</option>
</select>
<input type="file" id="step3_front_hiddenInput" accept="image/*" style="display:none">
<select style="display: none" id="select_front_for_colors">
<option hidden selected disabled value="none">Select color</option>
<option value="red">Dark Red</option>
<option>Purple</option>
<option>Orange</option>
<option>Yellow</option>
<option>Green</option>
<option>Brown</option>
<option>Blue</option>
<option>Lime</option>
</select>
<select style="display: none" id="select_front_for_class">
<option value="none" hidden selected disabled>Select class</option>
<option>Bard</option>
<option>Cleric</option>
<option>Druid</option>
<option>Paladin</option>
<option>Ranger</option>
<option>Sorcerer</option>
<option>Warlock</option>
<option>Wizard</option>
</select>
<div class="step3_img_container">
<img alt="preview of what the front of the card would look like." id="step3_preview_front" src="">
</div>
</div>
<div id="step3_backside" class="step3_img_choice_container">
<select id="back_card_select">
<option value="none" hidden selected disabled>Select Backside</option>
<option value="custom" id="step_3_back_custom" hidden disabled></option>
<option value="nothing">None</option>
<option value="class">Class backgrounds</option>
<option value="simple">Simple background</option>
<option value="complex">Complex background</option>
<option value="upload" class="step3_upload">Upload background</option>
</select>
<input type="file" id="step3_back_hiddenInput" accept="image/*" style="display:none">
<select style="display: none" id="select_back_for_class">
<option value="none" hidden selected disabled>Select class</option>
<option>Bard</option>
<option>Cleric</option>
<option>Druid</option>
<option>Paladin</option>
<option>Ranger</option>
<option>Sorcerer</option>
<option>Warlock</option>
<option>Wizard</option>
</select>
<div class="step3_img_container">
<img alt="preview of what the back of the card would look like." id="step3_preview_back">
</div>
</div>
<button disabled id="step3_approve" class="none">Continue</button>
</div>
<div id="step3ArrowGroup">
<p>Extra Settings</p>
<img src="./images/website/arrow.png" id="step3Arrow">
</div>
</div>
<div id="step35" class="step">
<div id="hiddenWidthChecker"></div>
<div id="step35_more_settings">
<div class="step35_more_settings_box">
<span>Text:</span>
<input id="step35_settings_text" type="text">
</div>
<div class="step35_more_settings_box">
<span>Font style:</span>
<select id="step35_settings_fontStyle" style="width: 100%;">
<option style="font-family: Serif">Serif</option>
<option style="font-family: sans-serif">sans-serif</option>
<option style="font-family: cursive">cursive</option>
<option style="font-family: impact">impact</option>
<option style="font-family: monospace">monospace</option>
<option style="font-family: mplantin" selected>mplantin</option>
<option style="font-family: ringbearer">ringbearer</option>
<option style="font-family: widelatin">widelatin</option>
</select>
</div>
<div class="step35_more_settings_box">
<span>Font style:</span>
<select id="step35_settings_textAlign" style="width: 100%;">
<option selected>Left</option>
<option>Center</option>
<option>Right</option>
</select>
</div>
<div class="step35_more_settings_box">
<span>Font type:</span>
<select id="step35_settings_fontSize_choice">
<option>AUTO</option>
<option>FIXED</option>
</select>
</div>
<div class="step35_more_settings_box none step35_fontSize_hide">
<span>Font size:</span>
<input id="step35_settings_fontsize" type="number">
</div>
<br>
<div class="step35_more_settings_box">
<span>X:</span>
<input id="step35_settings_x" type="number">
</div>
<div class="step35_more_settings_box">
<span>Y:</span>
<input id="step35_settings_y" type="number">
</div>
<div class="step35_more_settings_box">
<span>Width:</span>
<input id="step35_settings_width" type="number">
</div>
<div class="step35_more_settings_box">
<span>Height:</span>
<input id="step35_settings_height" type="number">
</div>
</div>
<div>
<h3>Place inputs on your template.</h3>
<span>After adding an input, try clicking it and then right-clicking it.</span>
<button id="step35_continue">Continue</button>
<h1 id="step35_help">{ ? }</h1>
<canvas id="step35Canvas" width="1000" height="350">
Unfortunately Your browser or extensions don't support or is disabling the <canvas> tag. Go back to
Step
3 and use a pre-made template.
</canvas>
<button id="step35_AddInput">Add Input</button>
<div id="step35_simpleSettings" style="display: none;">
<button id="step35_edittext">Edit Text</button>
<button id="step35_delete">Delete <img alt="Image of a trashcan." src="./images/website/TrashCan.png"></button>
<button id="step35_more">More...</button>
</div>
</div>
</div>
<div id="step4" class="step">
<h1 id="step4_generating">Generating. . .</h1>
<img src="./images/website/Loading.svg" style="display: block; margin-left: auto; margin-right: auto;">
<span id="step4_updates">Setting up Web Worker</span>
<span id="step4_detailed"></span>
<span id="step4_length">This step tends to take several minutes. Please be patient.</span>
</div>
<div id="step5" class="step">
<h1 id="step5_generating">Generating. . .</h1>
<img src="./images/website/Loading.svg" style="display: block; margin-left: auto; margin-right: auto;">
<iframe id="step5_frame"></iframe>
<img id-="step5Secret" style="opacity: 0; position: absolute; left:1000px; top:-1000px;">
<canvas id="step5Canvas" width="516" height="792" style="display: none"/>
<canvas id="step5Canvas2" style="display: none"/>
</div>
<div id="popup1" class="popup">
<div id="popup1_container" class="popup_container">
<div id="popup1_body" class="popup_body">
<h3>What does each spell need to be included?</h3>
<div>
<div id="popup_custom_spells_school_group" class="popup_custom_spells_group">
<span id="popup_custom_spells_school_group_title" class="popup_custom_spells_group_title">Schools</span>
<div>
<div style="display: flex">
<div class="popup_custom_spells_school_item popup_custom_spells_item">
<img src="./images/website/icons/icon_abjuration.png">
<span>Abjuration</span>
</div>
<div class="popup_custom_spells_school_item popup_custom_spells_item">
<img src="./images/website/icons/icon_conjuration.png">
<span>Conjuration</span>
</div>
<div class="popup_custom_spells_school_item popup_custom_spells_item">
<img src="./images/website/icons/icon_divination.png">
<span>Divination</span>
</div>
<div class="popup_custom_spells_school_item popup_custom_spells_item">
<img src="./images/website/icons/icon_evocation.png">
<span>Evocation</span>
</div>
</div>
<div style="display: flex">
<div class="popup_custom_spells_school_item popup_custom_spells_item">
<img src="./images/website/icons/icon_enchantment.png">
<span>Enchantment</span>
</div>
<div class="popup_custom_spells_school_item popup_custom_spells_item">
<img src="./images/website/icons/icon_illusion.png">
<span>Illusion</span>
</div>
<div class="popup_custom_spells_school_item popup_custom_spells_item">
<img src="./images/website/icons/icon_necromancy.png">
<span>Necromancy</span>
</div>
<div class="popup_custom_spells_school_item popup_custom_spells_item">
<img src="./images/website/icons/icon_transmutation.png">
<span>Transmutation</span>
</div>
</div>
</div>
</div>
<div id="popup_custom_spells_class_group" class="popup_custom_spells_group">
<span id="popup_custom_spells_class_group_title"
class="popup_custom_spells_group_title">Class</span>
<div id="popup_custom_spells_class_andor" class="popup_custom_spells_andor">
<button>OR</button>
<button>AND</button>
</div>
<div>
<div style="display: flex">
<div class="popup_custom_spells_class_item popup_custom_spells_item">
<img src="./images/website/icons/class_bard.png">
<span>Bard</span>
</div>
<div class="popup_custom_spells_class_item popup_custom_spells_item">
<img src="./images/website/icons/class_cleric.png">
<span>Cleric</span>
</div>
<div class="popup_custom_spells_class_item popup_custom_spells_item">
<img src="./images/website/icons/class_druid.png">
<span>Druid</span>
</div>
<div class="popup_custom_spells_class_item popup_custom_spells_item">
<img src="./images/website/icons/class_paladin.png">
<span>Paladin</span>
</div>
</div>
<div style="display: flex">
<div class="popup_custom_spells_class_item popup_custom_spells_item">
<img src="./images/website/icons/class_ranger.png">
<span>Ranger</span>
</div>
<div class="popup_custom_spells_class_item popup_custom_spells_item">
<img src="./images/website/icons/class_sorcerer.png">
<span>Sorcerer</span>
</div>
<div class="popup_custom_spells_class_item popup_custom_spells_item">
<img src="./images/website/icons/class_warlock.png">
<span>Warlock</span>
</div>
<div class="popup_custom_spells_class_item popup_custom_spells_item">
<img src="./images/website/icons/class_wizard.png">
<span>Wizard</span>
</div>
</div>
</div>
</div>
<div id="popup_custom_spells_other_group">
<span id="popup_custom_spells_other_group_title"
class="popup_custom_spells_group_title">Other</span>
<div>
<div class="popup_custom_spells_checkboxes_grid">
<div class="popup_custom_spells_checkbox_group">
<span><input type="checkbox" id="somatic">Somatic</span>
</div>
<div class="popup_custom_spells_checkbox_group">
<span><input type="checkbox" id="verbal">Verbal</span>
</div>
</div>
<div class="popup_custom_spells_checkboxes_grid">
<div class="popup_custom_spells_checkbox_group">
<span><input type="checkbox" id="ritual">Ritual</span>
</div>
<div class="popup_custom_spells_checkbox_group">
<span><input type="checkbox" id="material">Material</span>
</div>
</div>
<div class="popup_custom_spells_checkbox_group">
<span><input type="checkbox" id="concentration">Concentration</span>
</div>
<div class="popup_custom_spells_checkbox_group">
<span><input type="number" id="level_low" class="remove_arrows"><span
style="font-size: 150%">-</span><input
class="remove_arrows" type="number"
id="level_high"> Level</span>
</div>
<div class="popup_custom_spells_checkbox_group">
<span> Range
<select id="popup_range_select">
<option selected value="any">Any range</option>
<option value="touch">Touch</option>
<option value="self">Self</option>
<option value="number"><number></option>
</select>
<span id="popup_range_number"><input type="number" class="remove_arrows"
id="range_low"><span
style="font-size: 150%">-</span><input type="number" class="remove_arrows"
id="range_high">ft</span>
</span>
</div>
</div>
</div>
<div id="popup_custom_spells_code">
<span id="popup_custom_spells_code_group_title"
class="popup_custom_spells_group_title">Code <span
id="popup_custom_spells_code_hover">{ }</span></span>
<textarea type="text" id="popup_custom_spells_code_textarea"></textarea>
</div>
<button id="popup1_done">Done</button>
</div>
</div>
</div>
</div>
<div id="popup2" class="popup">
<div id="popup2_container" class="popup_container">
<div id="popup2_body" class="popup_body">
<h3>Text Editing Help.</h3>
<span>All templates <code>{text}</code> will be replaced with their corresponding ending</span>
<table>
<tr>
<th>TEMPLATE</th>
<th>ENDING</th>
</tr>
<tr>
<td class="popup2_template" step35_help>{title}</td>
<td>The title of the spell.</td>
</tr>
<tr>
<td class="popup2_template">{school}</td>
<td>The school of the spell.</td>
</tr>
<tr>
<td class="popup2_template">{level}</td>
<td>The spell level.</td>
</tr>
<tr>
<td class="popup2_template">{duration}</td>
<td>The duration of the spell.</td>
</tr>
<tr>
<td class="popup2_template">{range}</td>
<td>The range of the spell.</td>
</tr>
<tr>
<td class="popup2_template">{casting}</td>
<td>The casting time required for the spell.</td>
</tr>
<tr>
<td class="popup2_template">{materials}</td>
<td>The materials required for the spell.</td>
</tr>
<tr>
<td class="popup2_template">{description}</td>
<td>The description of the spell.</td>
</tr>
<tr>
<td class="popup2_template">{athigherlevel}</td>
<td>What the spell does at higher levels.</td>
</tr>
</table>
</div>
</div>
</div>
<div id="popup3" style="z-index: 12;" class="popup">
<div style="height: auto;" id="popup3_container" class="popup_container">
<div id="popup3_body" class="popup_body">
<h3 style="margin-bottom: 0;">Missing spells? Add them here</h3>
<p style="margin-bottom: 0;">This only TEMPORARILY adds the spells, as I cannot legally distribute them.<br>Note: you will have to go back to Step 1 for these spells to be accessed.</p>
<div id="popup3_buttons">
<span>
<button id="addspells_button_add">Add Spell</button>
<button id="addspells_button_exit">Cancel</button>
</span>
<span>
<button id=addspells_button_done>Add & Exit</button>
<button id="addspells_button_reset">Reset</button>
</span>
</div>
<table>
<tr>
<td style="width: 1px; vertical-align: top; padding-top: 20px;">
<span style="white-space: nowrap">Name: <input style="float:right; width: 100px" id="addspell_name"></span>
<span style="white-space: nowrap">Level: <input id="addspell_level" style="width: 100px" type="number"></span>
<div id="specialSelect" style="width: 99%; height: 32px; position: relative; display:block;">
<div id="specialSelect_title" style="height: 32px; width: 100%;background-color: white;border:black solid 1px;">
<img id="specialSelect_value_img">
<span id="specialSelect_value">Select School</span><span style="float:right">▼</span>
</div>
<div id="specialSelect_values" style="display: none; position: absolute; width: 100%; z-index: 10">
<div class="specialSelect_item">
<img src="./images/website/icons/icon_abjuration.png">
<span>Abjuration</span>
</div>
<div class="specialSelect_item">
<img src="./images/website/icons/icon_conjuration.png">
<span>Conjuration</span>
</div>
<div class="specialSelect_item">
<img src="./images/website/icons/icon_divination.png">
<span>Divination</span>
</div>
<div class="specialSelect_item">
<img src="./images/website/icons/icon_enchantment.png">
<span>Enchantment</span>
</div>
<div class="specialSelect_item">
<img src="./images/website/icons/icon_evocation.png">
<span>Evocation</span>
</div>
<div class="specialSelect_item">
<img src="./images/website/icons/icon_illusion.png">
<span>Illusion</span>
</div>
<div class="specialSelect_item">
<img src="./images/website/icons/icon_necromancy.png">
<span>Necromancy</span>
</div>
<div class="specialSelect_item">
<img src="./images/website/icons/icon_transmutation.png">
<span>Transmutation</span>
</div>
</div>
</div>
</td>
<td style="width: 250px">
<br>
<div>
<span style="white-space: nowrap"><img style="height: 16px;" src="./images/website/icons/verbal.png"/>Verbal:<input id="addspell_verbal" type="checkbox" style="float: right" checked=""></span><br>
<span style="white-space: nowrap"><img style="height: 16px;" src="./images/website/icons/somatic.png"/>Somatic:<input id="addspell_somatic" type="checkbox" style="float: right" checked=""></span><br>
<span style="white-space: nowrap"><img style="height: 16px;" src="./images/website/icons/concentration.png"/>Concentration:<input id="addspell_concentration" style="float: right" type="checkbox" checked=""></span><br>
<span style="white-space: nowrap"><img style="height: 16px;" src="./images/website/icons/ritual.png"/>Ritual:<input id="addspell_ritual" style="float: right" type="checkbox" checked=""></span>
</div>
<div id="popup4_material_container">
<img src="./images/website/icons/material.png">
<div>
<table style="height: 100%">
<tr>
<td>Material Count:</td>
<td class="popup4_material_form_td"><input id="addspell_materialCount" type="number"></td>
</tr>
<tr>
<td>Materials:</td>
<td class="popup4_material_form_td">
<button id="popup3_editMaterial"></button>
</td>
</tr>
</table>
</div>
</div>
</td>
<td style="vertical-align: top; padding-top: 20px;">
<div id="popup4_extratexts">
<span>Range: <button id="popup3_editRange"></button></span>
<span>Duration: <button id="popup3_editDuration"></button></span>
<span>Casting: <button id="popup3_editCasting"></button></span>
<span>Description: <button id="popup3_editDescription"></button></span>
<span>At Higher Levels: <button id="popup3_editAtHigherLevel"></button></span>
</div>
</td>
</tr>
<tr>
<td colspan="3">
<div id="popup_create_spells_class_group" style="position: relative; width: 97%;">
<span id="popup_create_spells_class_group_title"
class="popup_create_spells_group_title">Class</span>
<div>
<div style="display: flex">
<div class="popup_create_spells_class_item popup_custom_spells_item">
<img src="./images/website/icons/class_bard.png">
<span>Bard</span>
</div>
<div class="popup_create_spells_class_item popup_custom_spells_item">
<img src="./images/website/icons/class_cleric.png">
<span>Cleric</span>
</div>
<div class="popup_create_spells_class_item popup_custom_spells_item">
<img src="./images/website/icons/class_druid.png">
<span>Druid</span>
</div>
<div class="popup_create_spells_class_item popup_custom_spells_item">
<img src="./images/website/icons/class_paladin.png">
<span>Paladin</span>
</div>
<div class="popup_create_spells_class_item popup_custom_spells_item">
<img src="./images/website/icons/class_ranger.png">
<span>Ranger</span>
</div>
<div class="popup_create_spells_class_item popup_custom_spells_item">
<img src="./images/website/icons/class_sorcerer.png">
<span>Sorcerer</span>
</div>
<div class="popup_create_spells_class_item popup_custom_spells_item">
<img src="./images/website/icons/class_warlock.png">
<span>Warlock</span>
</div>
<div class="popup_create_spells_class_item popup_custom_spells_item">
<img src="./images/website/icons/class_wizard.png">
<span>Wizard</span>
</div>
</div>
</div>
</div>
</td>
</tr>
</table>
</div>
</div>
</div>
<div id="popup4" style="display: none; z-index: 13;">
<div id="popup4_body">
<h2 style="font-size: 200%; text-align: center; margin-bottom: 1px; ">Editing: <span id="popup4_title" style="font-family: ringbearer;"></span></h2>
<textarea style="margin-left: auto;margin-right: auto;display: block;width: 80%;height: 60%;"></textarea>
<div style="height: 10%; width: 35%; margin-top: 2%;float:right;">
<button id="popup4Save">SAVE</button>
<button id="popup4Cancel">CANCEL</button>
</div>
</div>
</div>
<div id="popup5" class="popup" style="z-index: 12;">
<div style="height:auto" id="popup5_container" class="popup_container">
<div id="popup5_body" class="popup_body">
<h2 style="font-size: 200%; text-align: center; margin-bottom: 1px; ">Settings</span></h2>
<div>
<table id="settings_table" >
<tr>
<td rowspan="2">Card Size:</td>
<td>Width</td>
<td class="settings_table_td"><input type="number" placeholder="Auto" min="1" max="612" id="settingswidth"></td>
</tr>
<tr>
<td>Height</td>
<td class="settings_table_td"><input type="number" placeholder="Auto" min="1" max="792" id="settingsheight"></td>
</tr>
<tr>
<td rowspan="2">Cards Per Page:</td>
<td>Horizontally</td>
<td class="settings_table_td"><input type="number" placeholder="Auto" min="1" max="612" id="settingshorizontally"></td>
</tr>
<tr>
<td>Vertically</td>
<td class="settings_table_td"><input type="number" placeholder="Auto" min="1" max="792" id="settingsvertically"></td>
</tr>
</table>
<div id="settings_buttons">
<button id="settings_export">Export Custom Spells</button>
<button id="settings_import">Import Custom Spells</button>
<button id="settings_remove" style="font-size: 108%">Remove all Custom Spells</button>
</div>
<input type="file" id="popup5_upload" accept="json" style="display:none">
<br>
<table>
<tr>
<td rowspan="3" style="font-family: ringbearer;font-size: 120%;">Card's Border</td>
<td>Thickness:</td>
<td><input id="settingsThickness" type="range" min="0" max="100"></td>
<td rowspan="3" style="position:relative;"><div style="margin-left: 10px;
position: absolute;
top: 0;"><div id="settingsPreview" style="border:0px solid black"><img src="images/website/preview/Back_Simple.png"></div><img id="settingsPreviewImg" src="images/website/preview/Back_Simple.png"></div></td>
</tr>
<tr>
<td>Color:</td>
<td><input id="settingsColor" style="width: 95%;" type="color"></td>
</tr>
<tr>
<td>Disable:</td>
<td><input id="settingsDisable" type="checkbox"></td>
</tr>
</table><br>
<p style="font-family: mplantin;font-size: 120%; text-align: center;">Any questions just email: <em>contact@frustratedprogrammer.com</em><br>Or leave an issue on the <a href="https://github.com/Frustrated-Programmer/card-generator">GitHub</a> page</p>
</div>
</div>
</div>
</div>
<div id="popup6" class="popup" style="z-index: 10">
<div id="popup6_container" class="popup_container">
<div id="popup6_body" class="popup_body">
<h2 style="font-size: 200%; text-align: center; margin-bottom: 1px; ">Does this look right?</h2>
<p>If everything looks good then (thumbsup), I did my job!<br><br>Otherwise I have more settings you can customize <span id="popup6_special">here</span>,<br>or click on the cog where the arrow is pointing.</p>
<p>Any questions just email: <em>contact@frustratedprogrammer.com</em><br>Or leave an issue on the <a href="https://github.com/Frustrated-Programmer/card-generator">GitHub</a> page</p>
<div id="step6ArrowGroup">
<p>Extra Settings</p>
<img src="./images/website/curved-arrow.png" style="float:left;" id="step6Arrow">
</div>
</div>
</div>
</div>
</div>
<div id="footer">
<button id="settings"><img src="./images/website/Cog.png"></button>
<p>Created by <a target="_blank" rel="noopener noreferrer" href="http://frustratedprogrammer.com">Elijah
Anderson</a>.<br>Full credit and licences can be found: <a target="_blank" rel="noopener noreferrer"
href="./credits.html">Here</a></p>
<p style="margin-left: 15px; width: 34%;">Note: Spells here are only spells in the SRD that are legally allowed to
be distributed. To temporarily add spells click
<button id="addSpells">here</button>
</p>
<div id="becomePatreon">
<a style="height: inherit; width: inherit" href="https://www.patreon.com/bePatron?u=32078542">
<img style="height: inherit; width: inherit" src="./images/website/become_a_patron_button.png"
alt="Become a patron button.">
</a>
</div>
<div id="buyCoffee">
<a target="_blank" style="height: 85%;" href="https://www.buymeacoffee.com/Frustrated"><img style="height: 100%; width: auto" src="./images/website/buy_a_coffee.png"></a>
</div>
</div>
</body>
<script src="./browsered.js"></script>
</html>