0
|
1 <!doctype html>
|
|
2 <html lang="en">
|
|
3 <head>
|
|
4 <meta charset="utf-8">
|
|
5 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
6 <meta name="viewport" content="width=device-width, initial-scale=1">
|
|
7 <title>TableSaw Sortable Table</title>
|
|
8
|
|
9 <link rel="stylesheet" href="../dist/tablesaw.css">
|
|
10 <link rel="stylesheet" href="demo.css">
|
|
11 <link rel="stylesheet" href="//filamentgroup.github.io/demo-head/demohead.css">
|
|
12 <script>
|
|
13 var TablesawConfig = {
|
|
14 i18n: {
|
|
15 swipePreviousColumn: "The column before",
|
|
16 swipeNextColumn: "The column after"
|
|
17 },
|
|
18 swipe: {
|
|
19 horizontalThreshold: 45,
|
|
20 verticalThreshold: 45
|
|
21 }
|
|
22 };
|
|
23 </script>
|
|
24 <!-- <script src="../dist/dependencies/jquery.js"></script>
|
|
25 <script src="../dist/tablesaw.jquery.js"></script> -->
|
|
26 <script src="../dist/tablesaw.js"></script>
|
|
27 <script src="../dist/tablesaw-init.js"></script>
|
|
28 <script src="//filamentgroup.github.io/demo-head/loadfont.js"></script>
|
|
29 </head>
|
|
30 <body>
|
|
31 <div class="demo-header">
|
|
32 <div class="company">
|
|
33 <img src="http://filamentgroup.com/images/fg-logo-positive-sm-crop.png">
|
|
34 </div>
|
|
35 <div class="details">
|
|
36 <h1 class="description-container">Demo of <span class="repo-name">Tablesaw</span>
|
|
37 <span class="description">A group of plugins for responsive tables.</span>
|
|
38 </h1>
|
|
39 <ul class="outbound-links">
|
|
40 <li><a href="https://github.com/filamentgroup/tablesaw">Code</a></li>
|
|
41 <li><a href="https://github.com/filamentgroup/tablesaw/issues">Issues</a></li>
|
|
42 </ul>
|
|
43 </div>
|
|
44 </div>
|
|
45 <div class="nav-container">
|
|
46 <div class="docs-globalnav">
|
|
47 <nav class="docs-nav">
|
|
48 <a href="kitchensink.html">Kitchen Sink</a>
|
|
49 <a href="modeswitch.html">Mode Switch</a>
|
|
50 <a href="sort.html">Sortable</a>
|
|
51 <a href="stack.html">Stack</a>
|
|
52 <a href="stackonly.html">Stack Only</a>
|
|
53 <a href="swipe.html" class="current">Swipe Table</a>
|
|
54 <a href="toggle.html">Toggle</a>
|
|
55 <a href="checkall.html">Check All</a>
|
|
56 </nav>
|
|
57 </div>
|
|
58 </div>
|
|
59 <div class="docs-main">
|
|
60 <h2>Swipe Table</h2>
|
|
61
|
|
62 <table class="tablesaw tablesaw-swipe" data-tablesaw-mode="swipe">
|
|
63 <thead>
|
|
64 <tr>
|
|
65 <th class="title" scope="col" data-tablesaw-sortable-col data-tablesaw-priority="persist">Movie Title</th>
|
|
66 <th scope="col" data-tablesaw-sortable-col data-tablesaw-sortable-default-col data-tablesaw-priority="3">Rank</th>
|
|
67 <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="2">Year</th>
|
|
68 <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="1"><abbr title="Rotten Tomato Rating">Rating</abbr></th>
|
|
69 <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="4">Gross</th>
|
|
70 </tr>
|
|
71 </thead>
|
|
72 <tbody>
|
|
73 <tr>
|
|
74 <td class="title"><a href="http://en.wikipedia.org/wiki/Avatar_(2009_film)">Avatar</a></td>
|
|
75 <td>1</td>
|
|
76 <td>2009</td>
|
|
77 <td>83%</td>
|
|
78 <td>$2.7B</td>
|
|
79 </tr>
|
|
80 <tr>
|
|
81 <td class="title"><a href="http://en.wikipedia.org/wiki/Titanic_(1997_film)">Titanic</a></td>
|
|
82 <td>2</td>
|
|
83 <td>1997</td>
|
|
84 <td>88%</td>
|
|
85 <td>$2.1B</td>
|
|
86 </tr>
|
|
87 <tr>
|
|
88 <td class="title"><a href="http://en.wikipedia.org/wiki/The_Avengers_(2012_film)">The Avengers</a></td>
|
|
89 <td>3</td>
|
|
90 <td>2012</td>
|
|
91 <td>92%</td>
|
|
92 <td>$1.5B</td>
|
|
93 </tr>
|
|
94 <tr>
|
|
95 <td class="title"><a href="http://en.wikipedia.org/wiki/Harry_Potter_and_the_Deathly_Hallows_%E2%80%93_Part_2">Harry Potter and the Deathly Hallows—Part 2</a></td>
|
|
96 <td>4</td>
|
|
97 <td>2011</td>
|
|
98 <td>96%</td>
|
|
99 <td>$1.3B</td>
|
|
100 </tr>
|
|
101 <tr>
|
|
102 <td class="title"><a href="http://en.wikipedia.org/wiki/Frozen_(2013_film)">Frozen</a></td>
|
|
103 <td>5</td>
|
|
104 <td>2013</td>
|
|
105 <td>89%</td>
|
|
106 <td>$1.2B</td>
|
|
107 </tr>
|
|
108 <tr>
|
|
109 <td class="title"><a href="http://en.wikipedia.org/wiki/Iron_Man_3">Iron Man 3</a></td>
|
|
110 <td>6</td>
|
|
111 <td>2013</td>
|
|
112 <td>78%</td>
|
|
113 <td>$1.2B</td>
|
|
114 </tr>
|
|
115 <tr>
|
|
116 <td class="title"><a href="http://en.wikipedia.org/wiki/Transformers:_Dark_of_the_Moon">Transformers: Dark of the Moon</a></td>
|
|
117 <td>7</td>
|
|
118 <td>2011</td>
|
|
119 <td>36%</td>
|
|
120 <td>$1.1B</td>
|
|
121 </tr>
|
|
122 <tr>
|
|
123 <td class="title"><a href="http://en.wikipedia.org/wiki/The_Lord_of_the_Rings:_The_Return_of_the_King">The Lord of the Rings: The Return of the King</a></td>
|
|
124 <td>8</td>
|
|
125 <td>2003</td>
|
|
126 <td>95%</td>
|
|
127 <td>$1.1B</td>
|
|
128 </tr>
|
|
129 <tr>
|
|
130 <td class="title"><a href="http://en.wikipedia.org/wiki/Skyfall">Skyfall</a></td>
|
|
131 <td>9</td>
|
|
132 <td>2012</td>
|
|
133 <td>92%</td>
|
|
134 <td>$1.1B</td>
|
|
135 </tr>
|
|
136 <tr>
|
|
137 <td class="title"><a href="http://en.wikipedia.org/wiki/Transformers:_Age_of_Extinction">Transformers: Age of Extinction</a></td>
|
|
138 <td>10</td>
|
|
139 <td>2014</td>
|
|
140 <td>18%</td>
|
|
141 <td>$1.0B</td>
|
|
142 </tr>
|
|
143 </tbody>
|
|
144 </table>
|
|
145
|
|
146 <h3>Swipe Table with Mini Map</h3>
|
|
147
|
|
148 <table class="tablesaw" data-tablesaw-mode="swipe" data-tablesaw-minimap>
|
|
149 <thead>
|
|
150 <tr>
|
|
151 <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="persist">Movie Title</th>
|
|
152 <th scope="col" data-tablesaw-sortable-col data-tablesaw-sortable-default-col data-tablesaw-priority="3">Rank</th>
|
|
153 <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="2">Year</th>
|
|
154 <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="1"><abbr title="Rotten Tomato Rating">Rating</abbr></th>
|
|
155 <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="4">Gross</th>
|
|
156 </tr>
|
|
157 </thead>
|
|
158 <tbody>
|
|
159 <tr>
|
|
160 <td class="title"><a href="http://en.wikipedia.org/wiki/Avatar_(2009_film)">Avatar</a></td>
|
|
161 <td>1</td>
|
|
162 <td>2009</td>
|
|
163 <td>83%</td>
|
|
164 <td>$2.7B</td>
|
|
165 </tr>
|
|
166 <tr>
|
|
167 <td class="title"><a href="http://en.wikipedia.org/wiki/Titanic_(1997_film)">Titanic</a></td>
|
|
168 <td>2</td>
|
|
169 <td>1997</td>
|
|
170 <td>88%</td>
|
|
171 <td>$2.1B</td>
|
|
172 </tr>
|
|
173 <tr>
|
|
174 <td class="title"><a href="http://en.wikipedia.org/wiki/The_Avengers_(2012_film)">The Avengers</a></td>
|
|
175 <td>3</td>
|
|
176 <td>2012</td>
|
|
177 <td>92%</td>
|
|
178 <td>$1.5B</td>
|
|
179 </tr>
|
|
180 <tr>
|
|
181 <td class="title"><a href="http://en.wikipedia.org/wiki/Harry_Potter_and_the_Deathly_Hallows_%E2%80%93_Part_2">Harry Potter and the Deathly Hallows—Part 2</a></td>
|
|
182 <td>4</td>
|
|
183 <td>2011</td>
|
|
184 <td>96%</td>
|
|
185 <td>$1.3B</td>
|
|
186 </tr>
|
|
187 <tr>
|
|
188 <td class="title"><a href="http://en.wikipedia.org/wiki/Frozen_(2013_film)">Frozen</a></td>
|
|
189 <td>5</td>
|
|
190 <td>2013</td>
|
|
191 <td>89%</td>
|
|
192 <td>$1.2B</td>
|
|
193 </tr>
|
|
194 <tr>
|
|
195 <td class="title"><a href="http://en.wikipedia.org/wiki/Iron_Man_3">Iron Man 3</a></td>
|
|
196 <td>6</td>
|
|
197 <td>2013</td>
|
|
198 <td>78%</td>
|
|
199 <td>$1.2B</td>
|
|
200 </tr>
|
|
201 <tr>
|
|
202 <td class="title"><a href="http://en.wikipedia.org/wiki/Transformers:_Dark_of_the_Moon">Transformers: Dark of the Moon</a></td>
|
|
203 <td>7</td>
|
|
204 <td>2011</td>
|
|
205 <td>36%</td>
|
|
206 <td>$1.1B</td>
|
|
207 </tr>
|
|
208 <tr>
|
|
209 <td class="title"><a href="http://en.wikipedia.org/wiki/The_Lord_of_the_Rings:_The_Return_of_the_King">The Lord of the Rings: The Return of the King</a></td>
|
|
210 <td>8</td>
|
|
211 <td>2003</td>
|
|
212 <td>95%</td>
|
|
213 <td>$1.1B</td>
|
|
214 </tr>
|
|
215 <tr>
|
|
216 <td class="title"><a href="http://en.wikipedia.org/wiki/Skyfall">Skyfall</a></td>
|
|
217 <td>9</td>
|
|
218 <td>2012</td>
|
|
219 <td>92%</td>
|
|
220 <td>$1.1B</td>
|
|
221 </tr>
|
|
222 <tr>
|
|
223 <td class="title"><a href="http://en.wikipedia.org/wiki/Transformers:_Age_of_Extinction">Transformers: Age of Extinction</a></td>
|
|
224 <td>10</td>
|
|
225 <td>2014</td>
|
|
226 <td>18%</td>
|
|
227 <td>$1.0B</td>
|
|
228 </tr>
|
|
229 </tbody>
|
|
230 </table>
|
|
231 </div>
|
|
232 </body>
|
|
233 </html>
|