forked from starclaws/5etools
-
Notifications
You must be signed in to change notification settings - Fork 36
/
statgen.html
177 lines (163 loc) · 5.43 KB
/
statgen.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
<!DOCTYPE html>
<html lang="en">
<head>
<!--5ETOOLS_VERSION-->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Statgen - 5etools</title>
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/style.css">
<link rel="icon" href="favicon.png">
<script type="text/javascript" src="lib/js-cookie.js"></script>
<script type="text/javascript" src="js/styleswitch.js"></script>
<script type="text/javascript" src="js/navigation.js"></script>
<style>
button#reset {
border-radius: 4px;
}
.old-text {
text-decoration: line-through;
}
.crypto-true {
color: #00b400;
}
.crypto-false {
color: #ff3100;
}
[class^="crypto-"] {
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
padding: 2px;
margin-bottom: -2px;
margin-top: -2px;
background-color: white;
cursor: help;
}
.stat-roll-line {
display: flex;
justify-content: space-between;
}
.stat-roll-item {
width: 100%;
text-align: center;
cursor: help;
}
</style>
</head>
<body>
<header class="hidden-xs hidden-sm">
<div class="container">
<h1>Statgen</h1>
<p>Change method on the left, refer to method that appears on the right.</p>
</div>
</header>
<nav class="container" id="navigation">
<ul class="nav nav-pills" id="navbar">
</ul>
</nav>
<main class="container bodyContent">
<div class="row">
<div class="col-sm-3">
<nav>
<ul class="nav" id="rolltabs">
<li role="presentation"><a href="#rolled">Rolling</a></li>
<li role="presentation"><a href="#array">Array</a></li>
<li role="presentation"><a href="#pointbuy">Point Buy</a></li>
</ul>
</nav>
</div>
<div class="col-sm-9 statmethod" id="rolled" style="display: none">
<h3>Rolled Stats</h3>
<div class="input-group">
<span class="input-group-addon" id="roller-mode"></span>
<input class="form-control" placeholder="Enter dice formula" value="4d6dl1" id="stats-formula">
<span class="input-group-btn">
<button type="button" id="rollbutton" class="btn btn-default">Roll Stats</button>
</span>
</div>
<h3 id="rolls"></h3>
</div>
<div class="col-sm-9 statmethod" id="array" style="display: none">
<h3>Standard Array</h3>
<h4>15, 14, 13, 12, 10, 8</h4>
<p>Assign these numbers to your abilities as desired.</p>
</div>
<div class="col-sm-9 statmethod" id="pointbuy" style="display: none">
<h3>Point Buy</h3>
<label>Budget: <input id="budget" type="number" min="10" value="27"></label>
<label>Remaining: <input id="remaining" type="number" min="10" value="27" readonly></label>
<button type="button" id="reset" class="btn btn-default">Reset</button>
<table>
<tr>
<td></td>
<td>Base</td>
<td>Racial</td>
<td>Total</td>
<td>Mod</td>
<td class="choose"></td>
</tr>
<tr id="str">
<td>STR</td>
<td><input type="number" min="8" max="15" value="8" data-prev="8" class="base"></td>
<td><input type="number" class="racial" readonly></td>
<td><input type="number" readonly></td>
<td><input type="number" readonly></td>
<td><input type="checkbox" class="choose"></td>
</tr>
<tr id="dex">
<td>DEX</td>
<td><input type="number" min="8" max="15" value="8" data-prev="8" class="base"></td>
<td><input type="number" class="racial" readonly></td>
<td><input type="number" readonly></td>
<td><input type="number" readonly></td>
<td><input type="checkbox" class="choose"></td>
</tr>
<tr id="con">
<td>CON</td>
<td><input type="number" min="8" max="15" value="8" data-prev="8" class="base"></td>
<td><input type="number" class="racial" readonly></td>
<td><input type="number" readonly></td>
<td><input type="number" readonly></td>
<td><input type="checkbox" class="choose"></td>
</tr>
<tr id="int">
<td>INT</td>
<td><input type="number" min="8" max="15" value="8" data-prev="8" class="base"></td>
<td><input type="number" class="racial" readonly></td>
<td><input type="number" readonly></td>
<td><input type="number" readonly></td>
<td><input type="checkbox" class="choose"></td>
</tr>
<tr id="wis">
<td>WIS</td>
<td><input type="number" min="8" max="15" value="8" data-prev="8" class="base"></td>
<td><input type="number" class="racial" readonly></td>
<td><input type="number" readonly></td>
<td><input type="number" readonly></td>
<td><input type="checkbox" class="choose"></td>
</tr>
<tr id="cha">
<td>CHA</td>
<td><input type="number" min="8" max="15" value="8" data-prev="8" class="base"></td>
<td><input type="number" class="racial" readonly></td>
<td><input type="number" readonly></td>
<td><input type="number" readonly></td>
<td><input type="checkbox" class="choose"></td>
</tr>
</table>
<select id="race"></select>
<p id="choose"></p>
</div>
</div>
</main> <!--5ETOOLS_SCRIPT_ANCHOR-->
<script type="text/javascript" src="js/utils.js"></script>
<script type="text/javascript" src="js/omnisearch.js"></script>
<script type="text/javascript" src="js/entryrender.js"></script>
<script type="text/javascript" src="js/statgen.js"></script>
<script type="text/javascript" src="lib/jquery.js"></script>
<script type="text/javascript" src="lib/bootstrap.js"></script>
<script type="text/javascript" src="lib/elasticlunr.js"></script>
</body>
</html>