-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
191 lines (188 loc) · 10.3 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>OSE CHARACTER CREATOR</title>
<link rel="stylesheet" href="style.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
</head>
<body>
<header class="my-4">
<h1>OSE CHARACTER CREATOR</h1>
</header>
<section>
<div class="container-fluid Attributes mb-5 row g-0">
<div class="attributes-container p-1 mb-3">
<h1>Attributes</h1>
</div>
<div class="mb-3">
<label for="str" id="strLabel">STR </label>
<input type="text" class="attributeText" id="str" readonly="readonly">
<input type="button" value="Roll" class="rollButton">
<p id="strModifier" class="Modifier mb-1">Modifier: </p>
<P>Melee att./damage, Open doors</P>
</div>
<div class="mb-3">
<label for="int" id="strLabel">INT </label>
<input type="text" class="attributeText" id="int" readonly="readonly">
<input type="button" value="Roll" class="rollButton">
<p id="intModifier" class="Modifier mb-1">Modifier: </p>
<p>Languages, Literacy</p>
</div>
<div class="mb-3">
<label for="wis" id="strLabel">WIS </label>
<input type="text" class="attributeText" id="wis" readonly="readonly">
<input type="button" value="Roll" class="rollButton">
<p id="wisModifier" class="Modifier mb-1">Modifier: </p>
<p>Saves vs magic</p>
</div>
<div class="mb-3">
<label for="dex" id="strLabel">DEX </label>
<input type="text" class="attributeText" id="dex" readonly="readonly">
<input type="button" value="Roll" class="rollButton">
<p id="dexModifier" class="Modifier mb-1">Modifier: </p>
<p>Missile attacks, AC, Initiative</p>
</div>
<div class="mb-3">
<label for="con" id="strLabel">CON </label>
<input type="text" class="attributeText" id="con" readonly="readonly">
<input type="button" value="Roll" class="rollButton">
<p id="conModifier" class="Modifier mb-1">Modifier: </p>
<p>Hit points</p>
</div>
<div class="mb-3">
<label for="cha" id="strLabel">CHA </label>
<input type="text" class="attributeText" id="cha" readonly="readonly">
<input type="button" value="Roll" class="rollButton">
<p id="chaModifier" class="Modifier mb-1">Modifier: </p>
<p>Reactions, Retainers, Loyalty</p>
</div>
<div class="mb-3">
<p hidden id="restrictedClassesText">Currently Restricted Classes: </p>
</div>
<div class="mb-3">
<input type="button" value="Reset" id="ResetAttButton">
</div>
</div>
</section>
<section>
<div class="container-fluid character-sheet my-5">
<div class="name-container mb-3">
<label for="pcName" id="pcNameLabel">Character Name: </label>
<input type="text" id="pcName">
</div>
<div class="class-container mb-3">
<label for="pcClass">Character Class: </label>
<select id="pcClassSelect" name="Class">
<option value="Acrobat">Acrobat</option>
<option value="Assassin">Assassin</option>
<option value="Barbarian">Barbarian</option>
<option value="Bard">Bard</option>
<option value="Cleric">Cleric</option>
<option value="Drow">Drow</option>
<option value="Druid">Druid</option>
<option value="Duergar">Duergar</option>
<option value="Dwarf">Dwarf</option>
<option value="Elf">Elf</option>
<option value="Fighter">Fighter</option>
<option value="Gnome">Gnome</option>
<option value="Half-Elf">Half-Elf</option>
<option value="Halfling">Halfling</option>
<option value="Half-Orc">Half-Orc</option>
<option value="Illusionist">Illusionist</option>
<option value="Knight">Knight</option>
<option value="Magic-User">Magic-User</option>
<option value="Paladin">Paladin</option>
<option value="Ranger">Ranger</option>
<option value="Svirfneblin">Svirfneblin</option>
<option value="Thief">Thief</option>
</select>
</div>
<div class="alignment-container mb-3">
<label for="pcAlignment">Character Alignment: </label>
<select id="pcAlignment" name="Alignment">
<option value="Lawful">Lawful</option>
<option value="Neutral">Neutral</option>
<option value="Chaotic">Chaotic</option>
</select>
</div>
<div class="hp-container mb-3">
<label for="hpInput">Roll Hit Points: </label>
<input type="text" id="hpInput" readonly="readonly">
<input type="button" value="Roll" id="hpRollButton">
<p id="totalHpText" class="mt-1">Total Hit Points: </p>
</div>
</div>
</section>
<section>
<div class="container-fluid Equipment my-5 row g-0">
<div class="equipment-container p-1 my-4">
<h1>Equipment</h1>
</div>
<div class="mb-3">
<label for="goldInput">Roll Initial gold: </label>
<input type="text" id="goldInput" readonly="readonly">
<input type="button" value="Roll" id="goldRollButton">
</div>
<div class="mb-1">
<h1>Adventuring gear-</h1>
</div>
<div class="row align-items-center">
<div class="col-xs-12 d-flex flex-column" id="gear-container">
<input type="number" min="0" id="gear-1" class="gear" value="0">
<label for="gear-1">Backpack</label>
<input type="number" min="0" id="gear-2" class="gear" value="0">
<label for="gear-2">Crowbar</label>
<input type="number" min="0" id="gear-3" class="gear" value="0">
<label for="gear-3">Garlic</label>
<input type="number" min="0" id="gear-4" class="gear" value="0">
<label for="gear-4">Grappling hook</label>
<input type="number" min="0" id="gear-5" class="gear" value="0">
<label for="gear-5">Hammer (small)</label>
<input type="number" min="0" id="gear-6" class="gear" value="0">
<label for="gear-6">Holy symbol</label>
<input type="number" min="0" id="gear-7" class="gear" value="0">
<label for="gear-7">Holy water (vial)</label>
<input type="number" min="0" id="gear-8" class="gear" value="0">
<label for="gear-8">Iron spikes (12)</label>
<input type="number" min="0" id="gear-9" class="gear" value="0">
<label for="gear-9">Lantern</label>
<input type="number" min="0" id="gear-10" class="gear" value="0">
<label for="gear-10">Mirror (hand-sized, steel)</label>
<input type="number" min="0" id="gear-11" class="gear" value="0">
<label for="gear-11">Oil (1 flask)</label>
<input type="number" min="0" id="gear-12" class="gear" value="0">
<label for="gear-12">Pole (10’ long, wooden)</label>
<input type="number" min="0" id="gear-13" class="gear" value="0">
<label for="gear-13">Rations (iron, 7 days)</label>
<input type="number" min="0" id="gear-14" class="gear" value="0">
<label for="gear-14">Rations (standard, 7 days)</label>
<input type="number" min="0" id="gear-15" class="gear" value="0">
<label for="gear-15">Rope (50’)</label>
<input type="number" min="0" id="gear-16" class="gear" value="0">
<label for="gear-16">Sack (large)</label>
<input type="number" min="0" id="gear-17" class="gear" value="0">
<label for="gear-17">Sack (small)</label>
<input type="number" min="0" id="gear-18" class="gear" value="0">
<label for="gear-18">Stakes (3) and mallet</label>
<input type="number" min="0" id="gear-19" class="gear" value="0">
<label for="gear-19">Thieves’ tools</label>
<input type="number" min="0" id="gear-20" class="gear" value="0">
<label for="gear-20">Tinder box (flint & steel)</label>
<input type="number" min="0" id="gear-21" class="gear" value="0">
<label for="gear-21">Torches (6)</label>
<input type="number" min="0" id="gear-22" class="gear" value="0">
<label for="gear-22">Waterskin</label>
<input type="number" min="0" id="gear-23" class="gear" value="0">
<label for="gear-23">Wine (2 pints)</label>
<input type="number" min="0" id="gear-24" class="gear" value="0">
<label for="gear-24">Wolfsbane (1 bunch)</label>
</div>
</div>
</div>
</section>
</body>
<script type="module" src="Scripts/index.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
</html>