forked from gespo89/PAXSignatureGenerator
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
339 lines (235 loc) · 16.4 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
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>PAX Signature Generator Instant Fork</title>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet"/>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"/>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"/>
<![endif]-->
</head>
<body>
<div class="container">
<h1>PAX Signature Generator Instant Fork</h1>
<div class="panel panel-default">
<div class="panel-heading">PAX West</div>
<div class="panel-body">
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="WEST">2004</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="WEST">2005</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="WEST">2006</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="WEST">2007</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="WEST">2008</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="WEST">2009</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="WEST">2010</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="WEST">2011</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="WEST">2012</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="WEST">2013</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="WEST">2014</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="WEST">2015</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="WEST">2016</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="WEST">2017</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="WEST">2018</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="WEST">2019</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="WEST">2021</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="WEST">2022</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="WEST">2023</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="WEST">2024</label>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">PAX East</div>
<div class="panel-body">
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="EAST">2010</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="EAST">2011</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="EAST">2012</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="EAST">2013</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="EAST">2014</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="EAST">2015</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="EAST">2016</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="EAST">2017</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="EAST">2018</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="EAST">2019</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="EAST">2020</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="EAST">2022</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="EAST">2023</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="EAST">2024</label>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">PAX Aus</div>
<div class="panel-body">
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="AUS">2013</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="AUS">2014</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="AUS">2015</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="AUS">2016</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="AUS">2017</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="AUS">2018</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="AUS">2019</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="AUS">2022</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="AUS">2023</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="AUS">2024</label>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">PAX Unplugged</div>
<div class="panel-body">
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="UNPLUGGED">2017</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="UNPLUGGED">2018</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="UNPLUGGED">2019</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="UNPLUGGED">2021</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="UNPLUGGED">2022</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="UNPLUGGED">2023</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="UNPLUGGED">2024</label>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">PAX South</div>
<div class="panel-body">
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="SOUTH">2015</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="SOUTH">2016</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="SOUTH">2017</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="SOUTH">2018</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="SOUTH">2019</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="SOUTH">2020</label>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">PAX Dev</div>
<div class="panel-body">
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="DEV">2011</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="DEV">2012</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="DEV">2013</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="DEV">2014</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="DEV">2015</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="DEV">2016</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="DEV">2017</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="DEV">2018</label>
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="DEV">2019</label>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">PAX Online</div>
<div class="panel-body">
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default"><input type="checkbox" class="paxselect" autocomplete="off" data-pax="ONLINE">2020</label>
</div>
</div>
</div>
<div class="panel panel-primary">
<img id="badges" /><br /><p />
<img id="testbadge" />
</div>
<form method="POST" action="javascript: return false">
<div class="panel panel-primary">
<div class="panel-heading">My PAX</div>
<table class="table table-striped table-bordered table-responsive">
<tbody id="my-pax">
</tbody>
</table>
<div class="panel-footer clearfix">
<label class="btn btn-default">Wrap:
<select name="wrap">
<option value="nowrap">No Wrap</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
</select>
</label>
</div>
</div>
</form>
</div>
<script src="js/es6-promise.js"></script>
<script>var Promise = Promise || ES6Promise.Promise</script>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
<script>
// add or remove My PAX rows as the above year checkboxes are toggled
$('input:checkbox.paxselect').change(function() {
var paxid = $(this).data('pax') + $(this).parent().text();
var year = $(this).parent().text()
var paxname = $(this).data('pax')
if ($(this).is(':checked')) {
$('#my-pax').append(
'<tr id="' + paxid + '">' +
'<td>' + paxid + '</td>' +
'<td>' +
'<input type="hidden" name="Year[]" value="' + year + '"/>' +
'<input type="hidden" name="PAX[]" value="' + paxname + '"/>' +
'<select class="form-control" name="BadgeBase[]">' +
'<option value="ATTENDEE">Regular</option>' +
'<option value="ENFORCER">Enforcer</option>' +
'</select>' +
'</td>' +
'<td>' +
'<select class="form-control" name="Ribbon[]">' +
'<option value="NORIBBON">No Ribbon</option>' +
'<option value="BYOC">BYOC</option>' +
'<option value="MEDIA">Media</option>' +
'<option value="CON">Content Creator</option>' +
'<option value="OMEGANAUT">Omeganaut</option>' +
'<option value="ENFORCER">Enforcer</option>' +
'<option value="EXH">Exhibitor</option>' +
'<option value="SPG">Special Guest</option>' +
'<option value="SPEAKER">Speaker</option>' +
'<option value="VIP">VIP</option>' +
'<option value="STF">Staff</option>' +
'</select>' +
'</td>' +
'<td>' +
'<div class="btn-group" data-toggle="buttons">' +
'<label class="btn btn-default' + (probablyFuture(year, paxname) ? ' active' : '') + '"><input type="checkbox" name="future[]" ' + (probablyFuture(year, paxname) ? 'checked=true ' : '') + '" class="future-pax"/>Future PAX?</label>' +
'</div>' +
'</td>' +
'</tr>');
} else {
$('#' + paxid).remove();
}
// reset the values of the Future PAX checkboxes to match their index
$('.future-pax').each(function(index) {
$(this).attr('value', index);
})
$("#my-pax").closest("form").trigger("change")
})
</script>
<script src="js/jimp.min.js"></script>
<script src="js/instant.js"></script>
</body>
</html>