comparison default/node_modules/tablesaw/demo/stack.html @ 0:1d038bc9b3d2 default tip

Up:default
author Liny <dev@neowd.com>
date Sat, 31 May 2025 09:21:51 +0800
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:1d038bc9b3d2
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 Stack 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 <style>
13 .democolwidth {
14 width: 150px;
15 }
16 </style>
17
18 <!-- <script src="../dist/dependencies/jquery.js"></script>
19 <script src="../dist/tablesaw.jquery.js"></script> -->
20 <script src="../dist/tablesaw.js"></script>
21 <script src="../dist/tablesaw-init.js"></script>
22 <script src="//filamentgroup.github.io/demo-head/loadfont.js"></script>
23 </head>
24 <body>
25 <div class="demo-header">
26 <div class="company">
27 <img src="http://filamentgroup.com/images/fg-logo-positive-sm-crop.png">
28 </div>
29 <div class="details">
30 <h1 class="description-container">Demo of <span class="repo-name">Tablesaw</span>
31 <span class="description">A group of plugins for responsive tables.</span>
32 </h1>
33 <ul class="outbound-links">
34 <li><a href="https://github.com/filamentgroup/tablesaw">Code</a></li>
35 <li><a href="https://github.com/filamentgroup/tablesaw/issues">Issues</a></li>
36 </ul>
37 </div>
38 </div>
39 <div class="nav-container">
40 <div class="docs-globalnav">
41 <nav class="docs-nav">
42 <a href="kitchensink.html">Kitchen Sink</a>
43 <a href="modeswitch.html">Mode Switch</a>
44 <a href="sort.html">Sortable</a>
45 <a href="stack.html" class="current">Stack</a>
46 <a href="stackonly.html">Stack Only</a>
47 <a href="swipe.html">Swipe Table</a>
48 <a href="toggle.html">Toggle</a>
49 <a href="checkall.html">Check All</a>
50 </nav>
51 </div>
52 </div>
53 <div class="docs-main">
54 <h2>Stack Table</h2>
55 <p>The Stack Table stacks the table headers to a two column layout with headers on the left. Resize your viewport to across the 40em (640px) breakpoint to see the change.</p>
56 <table class="tablesaw" data-tablesaw-mode="stack">
57 <thead>
58 <tr>
59 <th scope="col" data-tablesaw-priority="persist">Movie Title</th>
60 <th scope="col" data-tablesaw-sortable-default-col data-tablesaw-priority="3">Rank</th>
61 <th scope="col" data-tablesaw-priority="2">Year</th>
62 <th scope="col" data-tablesaw-priority="1"><abbr title="Rotten Tomato Rating">Rating</abbr></th>
63 <th scope="col" data-tablesaw-priority="4">Gross</th>
64 </tr>
65 </thead>
66 <tbody>
67 <tr>
68 <td class="title"><a href="http://en.wikipedia.org/wiki/Avatar_(2009_film)">Avatar</a></td>
69 <td>1</td>
70 <td>2009</td>
71 <td>83%</td>
72 <td>$2.7B</td>
73 </tr>
74 <tr>
75 <td class="title"><a href="http://en.wikipedia.org/wiki/Titanic_(1997_film)">Titanic</a></td>
76 <td>2</td>
77 <td>1997</td>
78 <td>88%</td>
79 <td>$2.1B</td>
80 </tr>
81 <tr>
82 <td class="title"><a href="http://en.wikipedia.org/wiki/The_Avengers_(2012_film)">The Avengers</a></td>
83 <td>3</td>
84 <td>2012</td>
85 <td>92%</td>
86 <td>$1.5B</td>
87 </tr>
88 <tr>
89 <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>
90 <td>4</td>
91 <td>2011</td>
92 <td>96%</td>
93 <td>$1.3B</td>
94 </tr>
95 <tr>
96 <td class="title"><a href="http://en.wikipedia.org/wiki/Frozen_(2013_film)">Frozen</a></td>
97 <td>5</td>
98 <td>2013</td>
99 <td>89%</td>
100 <td>$1.2B</td>
101 </tr>
102 <tr>
103 <td class="title"><a href="http://en.wikipedia.org/wiki/Iron_Man_3">Iron Man 3</a></td>
104 <td>6</td>
105 <td>2013</td>
106 <td>78%</td>
107 <td>$1.2B</td>
108 </tr>
109 <tr>
110 <td class="title"><a href="http://en.wikipedia.org/wiki/Transformers:_Dark_of_the_Moon">Transformers: Dark of the Moon</a></td>
111 <td>7</td>
112 <td>2011</td>
113 <td>36%</td>
114 <td>$1.1B</td>
115 </tr>
116 <tr>
117 <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>
118 <td>8</td>
119 <td>2003</td>
120 <td>95%</td>
121 <td>$1.1B</td>
122 </tr>
123 <tr>
124 <td class="title"><a href="http://en.wikipedia.org/wiki/Skyfall">Skyfall</a></td>
125 <td>9</td>
126 <td>2012</td>
127 <td>92%</td>
128 <td>$1.1B</td>
129 </tr>
130 <tr>
131 <td class="title"><a href="http://en.wikipedia.org/wiki/Transformers:_Age_of_Extinction">Transformers: Age of Extinction</a></td>
132 <td>10</td>
133 <td>2014</td>
134 <td>18%</td>
135 <td>$1.0B</td>
136 </tr>
137 </tbody>
138 </table>
139 </div>
140
141 </body>
142 </html>