-
Notifications
You must be signed in to change notification settings - Fork 17
/
lifegen.html
161 lines (137 loc) · 4.93 KB
/
lifegen.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
<!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>This Is Your Life - 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>
h4 {
border-bottom: 1px solid black;
width: 100%;
}
h5 {
text-decoration: underline;
margin-bottom: 3px;
}
.output-wrp-border {
border-radius: 4px;
margin-bottom: 3px;
}
.wrp-sect-head {
display: flex;
justify-content: space-between;
}
.wrp-sect-head > button {
margin: 6px 0 6px 6px;
}
.output {
background: none;
}
.btn-supp-fam {
margin-top: 7px;
margin-bottom: 7px;
display: block;
}
.btn-supp-fam::before {
content: "Roll Supplemental Tables Details";
}
.note {
display: inline-block;
margin: 3px 10px;
font-style: italic;
user-select: none;
}
.btn-reroll::before {
content: "Reroll";
}
</style>
</head>
<body>
<header class="hidden-xs hidden-sm">
<div class="container">
<h1>This Is Your Life</h1>
<p>Select options, and hit generate.</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="form-group col-xs-3">
<label for="race">Race</label>
<select class="form-control form-inline" id="race"></select>
</div>
<div class="form-group col-xs-3">
<label for="cha">Charisma Modifier</label>
<select class="form-control form-inline" id="cha"></select>
</div>
<div class="form-group col-xs-3">
<label for="race">Background</label>
<select class="form-control form-inline" id="background"></select>
</div>
<div class="form-group col-xs-3">
<label for="race">Class</label>
<select class="form-control form-inline" id="class"></select>
</div>
</div>
<div class="row">
<div class="form-group col-xs-12">
<button type="button" class="btn btn-default" onclick="roll()">Generate</button>
</div>
</div>
<div class="row" style="padding: 0 3em;">
<p>Based on the tables and rules in Xanathar's Guide to Everything, pages 61-73.</p>
<p><i>NOTE: Italic results are rolled for the sake of speed. These do not correspond to rolls on any table, nor do they have officially associated weightings or chances. Ignore or use them as you see fit.</i></p>
</div>
<hr class="output" style="display: none;">
<div class="row output" style="display: none;">
<div class="wrp-sect-head"><h4>Parents</h4><button type="button" class="btn btn-xs btn-default btn-reroll" onclick="sectParents()"></button></div>
<p id="parents"></p>
</div>
<div class="row output" style="display: none;">
<div class="wrp-sect-head"><h4>Birthplace</h4><button type="button" class="btn btn-xs btn-default btn-reroll" onclick="sectBirthplace()"></button></div>
<p id="birthplace"></p>
</div>
<div class="row output" style="display: none;">
<div class="wrp-sect-head"><h4>Siblings</h4><button type="button" class="btn btn-xs btn-default btn-reroll" onclick="sectSiblings()"></button></div>
<p id="siblings"></p>
</div>
<div class="row output" style="display: none;">
<div class="wrp-sect-head"><h4>Family and Friends</h4><button type="button" class="btn btn-xs btn-default btn-reroll" onclick="sectFamily()"></button></div>
<p id="family"></p>
</div>
<div class="row output" style="display: none;">
<div class="wrp-sect-head"><h4>Personal Decisions</h4><button type="button" class="btn btn-xs btn-default btn-reroll" onclick="sectPersonalDecisions()"></button></div>
<p id="personal"></p>
</div>
<div class="row output" style="display: none;">
<div class="wrp-sect-head"><h4>Class Training</h4><button type="button" class="btn btn-xs btn-default btn-reroll" onclick="sectClassTraining()"></button></div>
<p id="clss"></p>
</div>
<div class="row output" style="display: none;">
<div class="wrp-sect-head"><h4>Life Events</h4><button type="button" class="btn btn-xs btn-default btn-reroll" onclick="sectLifeEvents()"></button></div>
<p id="events"></p>
</div>
</main>
<footer class="container">
</footer> <!--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/lifegen.js"></script>
<script type="text/javascript" src="lib/list.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>