-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
184 lines (154 loc) · 10.2 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<link href="https://fonts.googleapis.com/css2?family=PT+Serif&family=Teko:wght@600&display=swap" rel="stylesheet">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<link rel="stylesheet" href="./css/stratagen.css">
<title>StrataGen</title>
<script src="https://kit.fontawesome.com/324895d590.js" crossorigin="anonymous"></script>
</head>
<body class="bg-light">
<div class="container bg-secondary py-2">
<h1 class="text-light">StrataGen</h1>
<p class="lead text-light">Generate Warhammer 40k data cards.</p>
<p class="text-light">Create and export stratagem, psychic power and tactical objective data cards for Warhammer 40k.</p>
</div>
<div class="container">
<div class="row">
<div class="col-md-6 order-md-1">
<h4 class="m-3">Card Details</h4>
<form>
<div class="form-group row">
<label class="col-sm-3 col-form-label" for="cardtype">Card Type</label>
<select class="form-control col-sm-9" name="" id="cardtype">
<option value="Stratagem">Stratagem</option>
<option value="Psychic Power">Psychic Power</option>
<option value="Tactical Objective">Tactical Objective</option>
<option value="Prayer">Prayer</option>
</select>
</div>
<div class="form-group row">
<label class="col-sm-3 col-form-label" for="cardstyle">Style</label>
<select class="form-control col-sm-9" name="" id="cardstyle">
<option value="Classic">Classic</option>
<option value="9th Edition">9th Edition</option>
</select>
</div>
<div class="form-group row">
<label class="col-sm-3 col-form-label" for="cardheader">Header</label>
<input class="form-control col-sm-9" type="text" id="cardheader" placeholder=""
value="Stratagem">
</div>
<div class="form-group row">
<label class="col-sm-3 col-form-label" for="cardtitle">Title</label>
<input class="form-control col-sm-9" type="text" id="cardtitle" placeholder="Title" value=""
required>
</div>
<div class="form-group row">
<label class="col-sm-3 col-form-label" for="cardfluff">Fluff</label>
<textarea class="form-control col-sm-9" type="text" id="cardfluff" cols="40" rows="5"
placeholder="Fluff text"></textarea>
</div>
<div class="form-group row">
<label class="col-sm-3 col-form-label" for="cardrule">Rule</label>
<textarea class="form-control col-sm-9" name="" id="cardrule" cols="40" rows="5"
placeholder="Rule text" required></textarea>
</div>
<div class="form-group row" id="cardvaluecontrol">
<label class="col-sm-6 col-form-label" for="cardvalue" id="cardvaluelabel">Command Points</label>
<input class="form-control col-sm-6" type="text" id="cardvalue" value="1"
required>
</div>
<div class="form-group row" id="cardfootercontrol">
<label class="col-sm-3 col-form-label" for="cardfooter">Footer</label>
<input class="form-control col-sm-9" type="text" id="cardfooter" placeholder="<Footer>" value="OBJECTIVE">
</div>
</form>
</div>
<hr class="my-4">
<div class="col-md-6 order-md-2">
<h4 class="m-3">Preview</h4>
<div style="text-align:center">
<canvas id="preview" width="400" height="560">
</canvas>
</div>
<div>
<button class="btn btn-secondary" id="previouscard">Previous Card</button>
<button class="btn btn-secondary" id="nextcard">Next Card</button>
</div>
</div>
</div>
<hr class="my-4">
<div class="container">
<div>
<div class="form-group row">
<label class="col-sm-3 col-form-label" for="outputdpi">Output DPI</label>
<input class="col-sm-3 form-control" type="number" id="outputdpi" min="96" max="900" value="300" required>
</div>
<div class="form-group row">
<label class="col-sm-3 col-form-label" for="outputmargin">Output Margin (mm)</label>
<input class="col-sm-3 form-control" type="number" id="outputmargin" min="0" max="10" value="3" required>
</div>
<div class="form-group row" hidden>
<div class="input-group col-sm-6">
<div class="custom-file">
<input type="file" class="custom-file-input" files="backgroundfile" id="backgroundfile" name="backgroundfile" accept="image/png, image/jpeg">
<label class="custom-file-label" for="backgroundfile">Select background image file (.png or .jpg)</label>
</div>
</div>
<label class="col-sm-3 col-form-label" for="bgopacity">Background Opacity</label>
<input class="col-form-control-range" type="range" id="bgopacity" name="bgopacity" min="0" max="100">
<label class="col-sm-3 col-form-label" for="bgsaturation">Background Saturation</label>
<input class="col-form-control-range" type="range" id="bgsaturation" name="bgsaturation" min="0" max="100">
<img src="" alt="">
</div>
</div>
<div>
<button class="btn btn-primary m-2" id="createcard">Create</button>
<button class="btn btn-secondary m-2" id="savecard">Save</button>
<button class="btn btn-secondary m-2" id="loadcard">Load</button>
</div>
<hr class="my-4">
<h4>Batch Mode</h4>
<div class="input-group col-md-6">
<div class="custom-file">
<input type="file" class="custom-file-input" files="datacardfile" id="datacardfile" name="datacardfile">
<label class="custom-file-label" for="datacardfile">Select datacard file (.csv or .tsv)</label>
</div>
</div>
</div>
<footer class="my-5 pt-5 text-muted text-center text-small">
<p class="mb-1">© 2020-2022 Rick Weyrauch</p>
<ul class="list-inline">
<li class="list-inline-item"><a href="about.html">About</a></li>
<li class="list-inline-item"><a href="help.html">Help</a></li>
</ul>
</footer>
</div>
<!-- Error dialog -->
<div class="modal fade" id="errorDialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Message</h4>
<button type="button" class="close" data-dismiss="modal">×</button>
</div>
<div class="modal-body" id="errorText">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
<script type="module" src="dist/stratagen.js"></script>
</body>
</html>