1 |
|
2 | <html>
|
3 | <head>
|
4 | <meta charset="utf-8">
|
5 | <title>TableFilter column operations tests</title>
|
6 | <link rel="stylesheet" href="libs/qunit/qunit.css">
|
7 | <script src="libs/qunit/qunit.js"></script>
|
8 | <script src="libs/polyfill.js"></script>
|
9 | </head>
|
10 | <body>
|
11 | <table id="demo" cellpadding="0" cellspacing="0">
|
12 | <tfoot>
|
13 | <tr>
|
14 | <td>Sum:</td>
|
15 | <td></td>
|
16 | <td id="sum1"></td>
|
17 | <td id="sum2"></td>
|
18 | <td></td>
|
19 | </tr>
|
20 | <tr>
|
21 | <td>Mean:</td>
|
22 | <td></td>
|
23 | <td id="mean1"></td>
|
24 | <td id="mean2"></td>
|
25 | <td></td>
|
26 | </tr>
|
27 | <tr>
|
28 | <td>Min:</td>
|
29 | <td></td>
|
30 | <td id="min1"></td>
|
31 | <td id="min2"></td>
|
32 | <td></td>
|
33 | </tr>
|
34 | <tr>
|
35 | <td>Max:</td>
|
36 | <td></td>
|
37 | <td id="max1"></td>
|
38 | <td id="max2"></td>
|
39 | <td></td>
|
40 | </tr>
|
41 | <tr>
|
42 | <td>Median:</td>
|
43 | <td></td>
|
44 | <td id="median1"></td>
|
45 | <td id="median2"></td>
|
46 | <td></td>
|
47 | </tr>
|
48 | <tr>
|
49 | <td>Q1:</td>
|
50 | <td></td>
|
51 | <td id="q1-1"></td>
|
52 | <td id="q1-2"></td>
|
53 | <td></td>
|
54 | </tr>
|
55 | <tr>
|
56 | <td>Q3:</td>
|
57 | <td></td>
|
58 | <td id="q3-1"></td>
|
59 | <td id="q3-2"></td>
|
60 | <td></td>
|
61 | </tr>
|
62 | </tfoot>
|
63 | <tbody>
|
64 | <tr>
|
65 | <th>From</th>
|
66 | <th>Destination</th>
|
67 | <th>Road Distance (km)</th>
|
68 | <th>By Air (hrs)</th>
|
69 | <th width="15%">By Rail (hrs)</th>
|
70 | </tr>
|
71 | <tr>
|
72 | <td><strong>Sydney</strong></td>
|
73 | <td>Adelaide</td>
|
74 | <td>1412</td>
|
75 | <td>1.4</td>
|
76 | <td>25.3</td>
|
77 | </tr>
|
78 | <tr>
|
79 | <td><strong>Sydney</strong></td>
|
80 | <td>Brisbane</td>
|
81 | <td>982</td>
|
82 | <td>1.5</td>
|
83 | <td>16</td>
|
84 | </tr>
|
85 | <tr>
|
86 | <td><strong>Sydney</strong></td>
|
87 | <td>Canberra</td>
|
88 | <td>286</td>
|
89 | <td>.6</td>
|
90 | <td>4.3</td>
|
91 | </tr>
|
92 | <tr>
|
93 | <td><strong>Sydney</strong></td>
|
94 | <td>Melbourne</td>
|
95 | <td>872</td>
|
96 | <td>1.1</td>
|
97 | <td>10.5</td>
|
98 | </tr>
|
99 | <tr>
|
100 | <td><strong>Adelaide</strong></td>
|
101 | <td>Perth</td>
|
102 | <td>2781</td>
|
103 | <td>3.1</td>
|
104 | <td>38</td>
|
105 | </tr>
|
106 | <tr>
|
107 | <td><strong>Adelaide</strong></td>
|
108 | <td>Alice Springs</td>
|
109 | <td>1533</td>
|
110 | <td>2</td>
|
111 | <td>20.25</td>
|
112 | </tr>
|
113 | <tr>
|
114 | <td><strong>Adelaide</strong></td>
|
115 | <td>Brisbane</td>
|
116 | <td>2045</td>
|
117 | <td>2.15</td>
|
118 | <td>40</td>
|
119 | </tr>
|
120 | </tbody>
|
121 | </table>
|
122 |
|
123 | <script src="../dist/tablefilter/tablefilter.js"></script>
|
124 | <script src="test-col-ops.js"></script>
|
125 |
|
126 | <div id="qunit"></div>
|
127 | <div id="qunit-fixture"></div>
|
128 | </body>
|
129 | </html>
|