-
Notifications
You must be signed in to change notification settings - Fork 297
/
playground.html
468 lines (466 loc) · 11.7 KB
/
playground.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
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Caption</title>
<style type="text/css">
body {
font-family: arial,sans-serif;
}
* {
box-sizing: border-box;
}
table {
border: 1px solid #444;
border-spacing: 0;
border-collapse: collapse;
}
caption {
font-size: 22px;
padding: 10px;
background: #FFF;
color: #AE4541;
text-align: left;
}
thead {
text-align: left;
}
th {
background: #AE4541;
}
th, td {
border: 1px solid #444;
padding: 5px;
}
td {
background: #F4F4F4;
}
</style>
</head>
<body>
<h1>Playground</h1>
<p>Sandbox for testing and debugging various things. Currently it:</p>
<ul>
<li>Listens to the <code>cloned.stickyTableHeaders</code> event</li>
<li>Demonstrates an issue with IE11 where the width is slightly off if the table has borders and does not have a width.</li>
<li>Shows an issue with using the <code><caption></code> tag.</li>
</ul>
<table>
<caption>Scoville Chile Heat Chart</caption>
<thead>
<tr>
<th>Scoville Heat Units</th>
<th>Chilli Pepper / Hot Sauce</th>
</tr>
</thead>
<tbody>
<tr>
<td>16,000,000</td>
<td>Pure capsaicin and Dihydrocapsaicin</td>
</tr>
<tr>
<td>16,000,000</td>
<td>Blair's 16 Million Reserve, from Gardner Resources, Inc.</td>
</tr>
<tr>
<td>16,000,000</td>
<td>Blair's 6 A.M., from Gardner Resources, Inc.</td>
</tr>
<tr>
<td>13,500,000</td>
<td>Blair's 2005 Halloween Reserve from Gardner Resources Inc.</td>
</tr>
<tr>
<td>9,100,000</td>
<td>Nordihydrocapsaicin</td>
</tr>
<tr>
<td>8,600,000</td>
<td>Homodihydrocapsaicin and Homocapsaicin</td>
</tr>
<tr>
<td>7,100,000</td>
<td>The Source, from Original Juan Specialty Foods</td>
</tr>
<tr>
<td>5,500,000</td>
<td>Blair's 5 A.M., from Gardner Resources Inc. - No Longer available</td>
</tr>
<tr>
<td>5,300,000</td>
<td>Police grade Pepper spray</td>
</tr>
<tr>
<td>4,000,000</td>
<td>Mad Dog 44 Magnum Pepper Extract, from Ashley Food Company, Inc.</td>
</tr>
<tr>
<td>4,000,000</td>
<td>Blair's 4 A.M., from Gardner Resources Inc. - No Longer available</td>
</tr>
<tr>
<td>2,000,000</td>
<td>Common Pepper spray</td>
</tr>
<tr>
<td>1,500,000 - 2,000,000</td>
<td>Blair's 3 A.M., from Gardner Resources Inc.</td>
</tr>
<tr>
<td>1,500,000</td>
<td>Da' Bomb The Final Answer, from Original Juan Specialty Food</td>
</tr>
<tr>
<td>1,100,000</td>
<td>Blair's Jersey Death from Gardner Resources Inc.</td>
</tr>
<tr>
<td>1,001,304</td>
<td>Naga-Bih Jolokia pepper</td>
</tr>
<tr>
<td>1,000,000</td>
<td>Cool Million Pepper Extract, from the Poison Pepper Co.</td>
</tr>
<tr>
<td>1,000,000</td>
<td>1 Million Scoville Pepper Extract, from Ashley Food Company, Inc.</td>
</tr>
<tr>
<td>923,000</td>
<td>The Dorset Naga Pepper, from Peppers by Post</td>
</tr>
<tr>
<td>855,000 (reported) </td>
<td>The Naga Jolokia pepper (<i>Capsicum frutescens</i>), not confirmed</td>
</tr>
<tr>
<td>800,000</td>
<td>Satan's Blood, from Sauce Crafters Inc.</td>
</tr>
<tr>
<td>700,000</td>
<td>The Slap Heard Around the World, from Tiguana Flats</td>
</tr>
<tr>
<td>600,000 - 900,000</td>
<td>Blair's 2 A.M., from Gardner Resources, Inc.</td>
</tr>
<tr>
<td>600,000</td>
<td>Mad Dog 357 with Bullet Keychain, from Ashley Food Company</td>
</tr>
<tr>
<td>550,000</td>
<td>Blair's Mega Death Sauce, from Gardner Resources, Inc.</td>
</tr>
<tr>
<td>500,000 - 750,000</td>
<td>Dave's Insanity Private Reserve, from Dave's Gourmet (estimated)</td>
</tr>
<tr>
<td>500,000</td>
<td>Pure Cap, from Garden Row Foods</td>
</tr>
<tr>
<td>400,000 - 500,000</td>
<td>Spontaneous Combustion Powder, from Southwest Specialty Foods Inc.</td>
</tr>
<tr>
<td>357,000</td>
<td>Mad Dog 357 Hot Sauce, from Ashley Food Company</td>
</tr>
<tr>
<td>350,000 - 577,000</td>
<td>Red Savina habanero (<i>Capsicum chinense Jacquin</i>)</td>
</tr>
<tr>
<td>350,000</td>
<td>Marie Sharp's Belizian Heat, from Marie Sharp's Fine Foods, Ltd.</td>
</tr>
<tr>
<td>283,000</td>
<td>Blair's Possible Side Effects, from Gardner Resources, Inc.</td>
</tr>
<tr>
<td>250,000</td>
<td>Vicious Viper, from CaJohns Fiery Foods</td>
</tr>
<tr>
<td>250,000</td>
<td>Dave's Ultimate Insanity Sauce, from Dave's Gourmet (estimated)</td>
</tr>
<tr>
<td>234,000</td>
<td>Da' Bomb Ground Zero, from Original Juan Specialty Foods</td>
</tr>
<tr>
<td>225,000</td>
<td>You can't Handle this Hot Sauce, from Peppers</td>
</tr>
<tr>
<td>225,000</td>
<td>Not Cool Chocolate Habanero from Bahama Specialty Foods, Inc.</td>
</tr>
<tr>
<td>180,000</td>
<td>Dave's Insanity Sauce, from Dave's Gourmet (estimated)</td>
</tr>
<tr>
<td>175,000</td>
<td>Predator Great White Shark, from Peppers</td>
</tr>
<tr>
<td>150,000</td>
<td>Mad Dog Inferno Reserve, from Ashley Food Company</td>
</tr>
<tr>
<td>125,000</td>
<td>Crazy Jerry's Mustard Gas, from Crazy Jerry's, Inc.</td>
</tr>
<tr>
<td>119,700</td>
<td>Da' Bomb Beyond Insanity, from Original Juan Specialty Food</td>
</tr>
<tr>
<td>100,000 - 350,000</td>
<td>Habanero (<i>Capsicum chinense Jacquin</i>)</td>
</tr>
<tr>
<td>100,000 - 325,000</td>
<td>Scotch bonnet (<i>Capsicum chinense</i>)</td>
</tr>
<tr>
<td>100,000 - 225,000</td>
<td>Birds Eye pepper</td>
</tr>
<tr>
<td>100,000 - 200,000</td>
<td>Jamaican Hot pepper</td>
</tr>
<tr>
<td>100,000 - 125,000</td>
<td>Carolina Cayenne pepper</td>
</tr>
<tr>
<td>95,000 - 110,000</td>
<td>Bahamian pepper</td>
</tr>
<tr>
<td>90,000</td>
<td>Mad Dog Inferno, from Ashley Food Company</td>
</tr>
<tr>
<td>85,000 - 115,000</td>
<td>Tabiche pepper</td>
</tr>
<tr>
<td>75,000 - 80,000</td>
<td>Red Amazon Pepper</td>
</tr>
<tr>
<td>75,000</td>
<td>Chile-Today Red Amazon Powder, from Chile Today-Hot Tamale</td>
</tr>
<tr>
<td>50,000 - 100,000</td>
<td>Thai pepper (<i>Capsicum annuum</i>)</td>
</tr>
<tr>
<td>50,000 - 100,000</td>
<td>Chiltepin pepper</td>
</tr>
<tr>
<td>49,250</td>
<td>Blair's After Death Sauce, from Gardner Resources, Inc.</td>
</tr>
<tr>
<td>40,000 - 58,000</td>
<td>Piquin pepper</td>
</tr>
<tr>
<td>40,000 - 50,000</td>
<td>Super Chile pepper</td>
</tr>
<tr>
<td>40,000 - 50,000</td>
<td>Santaka pepper</td>
</tr>
<tr>
<td>33,390</td>
<td>Endorphin Rush Beyond Hot Sauce, from Garden Row Foods</td>
</tr>
<tr>
<td>30,000 - 49,999</td>
<td>Lottie's Original Barbados Red Hot, from Lottie's Island Flavours</td>
</tr>
<tr>
<td>30,000 - 50,000</td>
<td>Cayenne pepper (<i>Capsicum baccatum</i> and <i>Capsicum frutescens</i>)</td>
</tr>
<tr>
<td>30,000 - 50,000</td>
<td>Tabasco pepper (<i>Capsicum frutescens</i>)</td>
</tr>
<tr>
<td>15,000 - 30,000</td>
<td>de Arbol pepper</td>
</tr>
<tr>
<td>15,000 - 29,999</td>
<td>Lottie's Traditional Barbados Yellow, from Lottie's Island Flavours</td>
</tr>
<tr>
<td>12,000 - 30,000</td>
<td>Manzano pepper</td>
</tr>
<tr>
<td>11,600</td>
<td>El Yucateco XXXtra Hot Habanero, from El Yucateco Salsas Y Condimentos S.A. de C.V.</td>
</tr>
<tr>
<td>11,000</td>
<td>Crazy Jerry's Brain Damage, from Crazy Jerry's, Inc.</td>
</tr>
<tr>
<td>8,910</td>
<td>El Yucateco Green Chile Habanero, from El Yucateco Salsas Y Condimentos S.A. de C.V.</td>
</tr>
<tr>
<td>7,000 - 8,000</td>
<td>TABASCO® brand Habanero Pepper Sauce, from McIlhenny Company</td>
</tr>
<tr>
<td>6,000 - 23,000</td>
<td>Serrano pepper</td>
</tr>
<tr>
<td>5,790</td>
<td>El Yucateco Red Chile Habanero, from El Yucateco Salsas Y Condimentos S.A. de C.V.</td>
</tr>
<tr>
<td>5,000 - 10,000</td>
<td>Hot Wax pepper</td>
</tr>
<tr>
<td>5,000 - 10,000</td>
<td>Chipotle, a Jalapeño pepper that has been smoked.</td>
</tr>
<tr>
<td>3,600</td>
<td>Cholula Hot Sauce, from Casa Cuervo S.A. de C.V.</td>
</tr>
<tr>
<td>3,400</td>
<td>El Yucateco Chipotle Hot Sauce, from El Yucateco Salsas Y Condimentos S.A. de C.V.</td>
</tr>
<tr>
<td>2,500 - 8,000</td>
<td>Santaka pepper</td>
</tr>
<tr>
<td>2,500 - 5,000</td>
<td>Jalapeño (<i>Capsicum annuum</i>)</td>
</tr>
<tr>
<td>2,500 - 5,000</td>
<td>Guajilla pepper</td>
</tr>
<tr>
<td>2,500 - 5,000</td>
<td>Original TABASCO® brand Pepper Sauce, from McIlhenny Company</td>
</tr>
<tr>
<td>2.085</td>
<td>FRANK'S® REDHOT® XTRA Hot, from Reckitt Benckiser Inc.</td>
</tr>
<tr>
<td>1,500 - 2,500</td>
<td>TABASCO® brand Chipotle Pepper Sauce, from McIlhenny Company</td>
</tr>
<tr>
<td>1,200 - 2,400</td>
<td>TABASCO® brand Garlic Pepper Sauce, from McIlhenny Company</td>
</tr>
<tr>
<td>1,500 - 2,500</td>
<td>Rocotilla pepper</td>
</tr>
<tr>
<td>1,000 - 2,000</td>
<td>pasilla pepper</td>
</tr>
<tr>
<td>1,000 - 2,000</td>
<td>Ancho pepper</td>
</tr>
<tr>
<td>1,000 - 2,000</td>
<td>Poblano pepper</td>
</tr>
<tr>
<td>747</td>
<td>Texas Pete®, from T.W. Garner Food Co.</td>
</tr>
<tr>
<td>700 - 1,000</td>
<td>Coronado pepper</td>
</tr>
<tr>
<td>600 - 1,200</td>
<td>TABASCO® brand Green Pepper Sauce, from McIlhenny Company</td>
</tr>
<tr>
<td>500 - 2,500</td>
<td>Anaheim pepper</td>
</tr>
<tr>
<td>500 - 1,000</td>
<td>New Mexico pepper</td>
</tr>
<tr>
<td>450</td>
<td>FRANK'S® REDHOT® Original, from Reckitt Benckiser Inc.</td>
</tr>
<tr>
<td>400 - 700</td>
<td>Santa Fe Grande pepper</td>
</tr>
<tr>
<td>100 - 1000</td>
<td>Cubanelle Pepper (<i>Capsicum annuum</i>)</td>
</tr>
<tr>
<td>100 - 600</td>
<td>TABASCO® brand SWEET & Spicy Pepper Sauce, from McIlhenny Company</td>
</tr>
<tr>
<td>100 - 500</td>
<td>Pepperoncini, pepper (also known as Tuscan peppers, sweet Italian peppers, and golden Greek peppers.</td>
</tr>
<tr>
<td>100 - 500</td>
<td>Pimento</td>
</tr>
<tr>
<td>0</td>
<td>Sweet Bell pepper</td>
</tr>
</tbody>
</table>
<div style="height:2000px"></div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="../js/jquery.stickytableheaders.js"></script>
<script>
$('table').on('clonedHeader.stickyTableHeaders', function(event){
console.log('header cloned', event);
}).on('enabledStickiness.stickyTableHeaders', function(event){
console.log('enabledStickiness', event);
}).on('disabledStickiness.stickyTableHeaders', function(event){
console.log('disabledStickiness', event);
});
$('table').stickyTableHeaders();
</script>
</body>
</html>