forked from chaoticbackup/chaoticcardcreator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
236 lines (236 loc) · 13 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
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="./css/main.css" />
<link rel="stylesheet" href="./font/fonts.css" />
</head>
<body>
<div style="margin: 0 auto; width: 350px; background-color: rgba(114, 109, 109, .95);">
<div style="margin: 0 auto;">
<canvas id="canvas" width=250 height=350 style="display: block; margin: auto;"></canvas>
</div>
<p></p>
<div style="margin: 0 auto;">
<button id="update" class="isDisabled" onclick="submit();">Update</button>
<a id="download" class="isDisabled" download="" href="" onclick="download_img(this);"><button type="button">Download</button></a>
</div>
<p></p>
<div style="margin-left: 8px;">
<table>
<tr>
<td style="width: 70px;"><label for="art">Art</label></td>
<td><input id="art" type="file" accept="image/*"></td>
</tr>
</table>
<form id="common-form" autocomplete="off">
<table>
<tr>
<td><label for="type">Card Type</label></td>
<td><select id="type" name="type">
<option disabled selected value style="display:none"></option>
<option value="attack">Attack</option>
<option value="battlegear">Battlegear</option>
<option value="creature">Creature</option>
<option value="location">Location</option>
<option value="mugic">Mugic</option>
</select></td>
</tr>
<!-- For tweaking the offsets in real time
<tr>
<td><label for="offsetx">OffsetX</label></td>
<td><input id="offsetx" name="offsetx" type="text" value="21.2"></td>
</tr>
<tr>
<td><label for="offsety">OffsetY</label></td>
<td><input id="offsety" name="offsety" type="text" value="225"></td>
</tr>
<tr>
<td><label for="maxx">MaxX</label></td>
<td><input id="maxx" name="maxx" type="text" value="228.94"></td>
</tr>
<tr>
<td><label for="maxy">MaxY</label></td>
<td><input id="maxy" name="maxy" type="text" value="191.9"></td>
</tr>
-->
<tr>
<td><label for="name">Name</label></td>
<td><input id="name" name="name" type="text"></td>
</tr>
<tr>
<td><label for="name">Subname</label></td>
<td><input id="subname" name="subname" type="text"></td>
</tr>
<tr>
<td><label for="subtype">Subtype(s)</td>
<td><input id="subtype" name="subtype" type="text"></td>
</tr>
<tr>
<td><label for="set">Set</label></td>
<td><select id="set" name="set">
<option value>None</option>
<option selected value="dop">Dawn Of Perim</option>
<option value="zoth">Zenith of the Hive</option>
<option value="btd">M'arrillian Invasion</option>
<option value="roto">Rise of the Oligarch</option>
<option value="tott">Turn of the Tide</option>
<option value="fun">Forged Unity</option>
<option value="au">Alliances Unraveled</option>
<option value="fas">Fire and Stone</option>
</select></td>
</tr>
<tr>
<td><label for="rarity">Rarity</label></td>
<td><select id="rarity" name="rarity">
<option selected value="common">Common</option>
<option value="uncommon">Uncommon</option>
<option value="rare">Rare</option>
<option value="super rare">Super Rare</option>
<option value="ultra rare">Ultra Rare</option>
<option value="promo">Promo</option>
</select></td>
</tr>
<tr>
<td>
<label for="loyal">Loyal</label>
<input type="checkbox" id="loyal" name="loyal" value="true">
</td>
<td><input type="text" id="loyal_restrict" name="loyal_restrict"></td>
</tr>
</table>
<div style="width: 100%; display: flex; margin: 2px">
<div style="float: left; display: block; padding: 1px; width: 72px; ">
<label for="unique">Unique</label>
<input type="checkbox" id="unique" name="unique" value="true">
</div>
<div style="float: left; display: block; padding: 1px;">
<label for="legendary">Legendary</label>
<input type="checkbox" id="legendary" name="legendary" value="true">
</div>
</div>
<table>
<tr>
<td><label for="ability">Ability</label></td>
<td><textarea id="ability" name="ability" rows="4" cols="22"></textarea></td>
</tr>
<tr>
<td><label for="ability">Flavor</label></td>
<td><textarea id="flavor" name="flavor" rows="2" cols="22"></textarea></td>
</tr>
<tr>
<td><label for="name">Artist</label></td>
<td><input id="artist" name="artist" type="text"></td>
</tr>
</table>
</form>
<form id="type-form">
<div class="creature mugic">
<label for="tribe">Tribe:</label>
<select id="tribe" name="tribe">
<option disabled value style="display:none"></option>
<option selected value="tribeless">Tribeless</option>
<option value="overworld">OverWorld</option>
<option value="underworld">UnderWorld</option>
<option value="mipedian">Mipedian</option>
<option value="danian">Danian</option>
<option value="m'arrillian">M'arrillian</option>
</select>
</div>
<div class="creature">
<p></p>
<span>Elements:</label>
<table>
<tr>
<td>
<label for="fire">Fire</label>
<input type="checkbox" id="fire" name="fire" value="true">
</td>
<td>
<label for="air">Air</label>
<input type="checkbox" id="air" name="air" value="true">
</td>
<td>
<label for="earth">Earth</label>
<input type="checkbox" id="earth" name="earth" value="true">
</td>
<td>
<label for="water">Water</label>
<input type="checkbox" id="water" name="water" value="true">
</td>
</tr>
</table>
<table>
<tr>
<td><label for="courage">Courage</label></td>
<td><input id="courage" name="courage" type="text" maxlength="4" size="4"></td>
<td><label for="power">Power</label></td>
<td><input id="power" name="power" type="text" maxlength="4" size="4"></td>
</tr>
<tr>
<td><label for="wisdom">Wisdom</label></td>
<td><input id="wisdom" name="wisdom" type="text" maxlength="4" size="4"></td>
<td><label for="speed">Speed</label></td>
<td><input id="speed" name="speed" type="text" maxlength="4" size="4"></td>
</tr>
<tr>
<td><label for="mc">Mugic Ability</label></td>
<td><input id="mc" name="mc" type="text" maxlength="1" size="4"></td>
<td><label for="energy">Energy</label></td>
<td><input id="energy" name="energy" type="text" maxlength="4" size="4"></td>
</tr>
</table>
</div>
<div class="attack">
<table>
<tr>
<td><label for="basedamage">Base</label></td>
<td><input id="basedamage" name="basedamage" type="text" maxlength="4" size="4" value="0"></td>
<td><label for="bp">B.P.</label></td>
<td><input id="bp" name="bp" type="text" maxlength="4" size="4" value="0"></td>
</tr>
<tr>
<td><label for="firedamage">Fire</label></td>
<td><input id="firedamage" name="firedamage" type="text" maxlength="4" size="4"></td>
<td><label for="airdamage">Air</label></td>
<td><input id="airdamage" name="airdamage" type="text" maxlength="4" size="4"></td>
</tr>
<tr>
<td><label for="earthdamage">Earth</label></td>
<td><input id="earthdamage" name="earthdamage" type="text" maxlength="4" size="4"></td>
<td><label for="waterdamage">Water</label></td>
<td><input id="waterdamage" name="waterdamage" type="text" maxlength="4" size="4"></td>
</tr>
</table>
</div>
<div class="location">
<table>
<tr>
<td><label for="initiative">Initiative</label></td>
<td><input id="initiative" name="initiative" type="text"></td>
</tr>
</table>
</div>
<div class="mugic">
<table>
<tr>
<td><label for="cost">Mugic Cost</label></td>
<td><input id="cost" name="cost" type="text" maxlength="1" size="4"></td>
</tr>
</table>
</div>
</form>
</div>
</div>
<!-- Due to font loading missing the timing on first render, we load all of the fonts into empty elements-->
<span style="font-family: Eurostile;"></span>
<span style="font-family: Eurostile-Normal"></span>
<span style="font-family: Eurostile-Bold"></span>
<span style="font-family: Eurostile-BoldExtendedTwo;"></span>
<!-- Load and bind the javascript to the button event handlers-->
<script type="module">
import {download, submit} from './js/index.js';
window.download_img = download;
window.submit = submit;
</script>
</body>
</html>