Debian Codegraph @

docs/example-option-theme-metro-style.html

raw symbols SCIP
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>jQuery tablesorter 2.0 - Pager plugin</title>
6
7 <!-- jQuery -->
8 <script src="js/jquery-latest.min.js"></script>
9
10 <!-- Demo stuff -->
11 <link rel="stylesheet" href="css/jq.css">
12 <link href="css/prettify.css" rel="stylesheet">
13 <script src="js/prettify.js"></script>
14 <script src="js/docs.js"></script>
15
16 <!-- Tablesorter: required -->
17 <link rel="stylesheet" href="../css/theme.metro-dark.css">
18 <script src="../js/jquery.tablesorter.js"></script>
19 <script src="../js/jquery.tablesorter.widgets.js"></script>
20
21 <!-- Tablesorter: optional -->
22 <link rel="stylesheet" href="../addons/pager/jquery.tablesorter.pager.css">
23 <script src="../addons/pager/jquery.tablesorter.pager.js"></script>
24
25 <style id="css">.table-title {
26 margin: 8px 4px;
27 font: bold 16px 'Segoe UI Semilight', 'Open Sans', Verdana, Arial, Helvetica, sans-serif;
28 color: #fff;
29 }</style>
30
31 <script id="js">$(function() {
32
33 $("table")
34 .tablesorter({
35 theme: 'metro-dark',
36 sortList: [[0,0],[1,0],[2,0]],
37 widthFixed: true,
38 widgets: ['zebra', 'columns', 'filter']
39 })
40 .tablesorterPager({
41 // target the pager markup - see the HTML block below
42 container: $(".pager"),
43 output: '{startRow} to {endRow} ({totalRows})'
44 });
45
46 });</script>
47 </head>
48 <body id="pager-demo">
49 <div id="banner">
50 <h1>table<em>sorter</em></h1>
51 <h2>Metro Style</h2>
52 <h3>Flexible client-side table sorting</h3>
53 <a href="index.html">Back to documentation</a>
54 </div>
55
56 <div id="main">
57
58 <p class="tip">
59 <em>NOTE!</em>
60 </p>
61 <ul>
62 <li>Only the Windows Metro Dark theme has been included; for other colors:
63 <ul>
64 <li>Create your own dynamically by modifying <a href="http://codepen.io/Mottie/pen/gCslk">this demo</a>.</li>
65 <li>Change the <code>@headerBackground</code> to any valid color (some styles inspired by <a href="http://www.jtable.org/">JTable</a> have been listed in the comments).</li>
66 <li>If you don't like the look of the style, you might also want to check out <a href="http://jquit.com/builder/">this jQuery UI theme builder</a> which creates metro style themes.</li>
67 </ul>
68 </li>
69 <li>For alternate <code>thead</code> &amp; <code>tfoot</code> row colors, add the class name <code>dark-row</code>. See the HTML below.</li>
70 </ul>
71
72 <h1>Demo</h1>
73
74 <div id="demo"><table class="tablesorter">
75 <thead>
76 <tr class="dark-row">
77 <th colspan="7" class="sorter-false">
78 <h2 class="table-title">Table Title</h2>
79 </th>
80 </tr>
81 <tr>
82 <th>Name</th>
83 <th>Major</th>
84 <th>Sex</th>
85 <th>English</th>
86 <th>Japanese</th>
87 <th>Calculus</th>
88 <th class="sorter-false">Geometry</th>
89 </tr>
90 </thead>
91 <tfoot>
92 <tr>
93 <th>Name</th>
94 <th>Major</th>
95 <th>Sex</th>
96 <th>English</th>
97 <th>Japanese</th>
98 <th>Calculus</th>
99 <th>Geometry</th>
100 </tr>
101 <tr class="dark-row">
102 <th colspan="7">
103 <div class="pager">
104 <button type="button" class="first">&lt;&lt;</button>
105 <button type="button" class="prev">&lt;</button>
106 <span class="pagedisplay"></span>
107 <button type="button" class="next">&gt;</button>
108 <button type="button" class="last">&gt;&gt;</button>
109 <select class="pagesize" title="Select page size">
110 <option value="10">10</option>
111 <option value="20">20</option>
112 <option value="30">30</option>
113 <option value="40">40</option>
114 </select>
115 <select class="gotoPage" title="Select page number"></select>
116 </div>
117 </th>
118 </tr>
119 </tfoot>
120 <tbody>
121 <tr><td>Student01</td><td>Languages</td><td>male</td><td>80</td><td>70</td><td>75</td><td>80</td></tr>
122 <tr><td>Student02</td><td>Mathematics</td><td>male</td><td>90</td><td>88</td><td>100</td><td>90</td></tr>
123 <tr><td>Student03</td><td>Languages</td><td>female</td><td>85</td><td>95</td><td>80</td><td>85</td></tr>
124 <tr><td>Student04</td><td>Languages</td><td>male</td><td>60</td><td>55</td><td>100</td><td>100</td></tr>
125 <tr><td>Student05</td><td>Languages</td><td>female</td><td>68</td><td>80</td><td>95</td><td>80</td></tr>
126 <tr><td>Student06</td><td>Mathematics</td><td>male</td><td>100</td><td>99</td><td>100</td><td>90</td></tr>
127 <tr><td>Student07</td><td>Mathematics</td><td>male</td><td>85</td><td>68</td><td>90</td><td>90</td></tr>
128 <tr><td>Student08</td><td>Languages</td><td>male</td><td>100</td><td>90</td><td>90</td><td>85</td></tr>
129 <tr><td>Student09</td><td>Mathematics</td><td>male</td><td>80</td><td>50</td><td>65</td><td>75</td></tr>
130 <tr><td>Student10</td><td>Languages</td><td>male</td><td>85</td><td>100</td><td>100</td><td>90</td></tr>
131 <tr><td>Student11</td><td>Languages</td><td>male</td><td>86</td><td>85</td><td>100</td><td>100</td></tr>
132 <tr><td>Student12</td><td>Mathematics</td><td>female</td><td>100</td><td>75</td><td>70</td><td>85</td></tr>
133 <tr><td>Student13</td><td>Languages</td><td>female</td><td>100</td><td>80</td><td>100</td><td>90</td></tr>
134 <tr><td>Student14</td><td>Languages</td><td>female</td><td>50</td><td>45</td><td>55</td><td>90</td></tr>
135 <tr><td>Student15</td><td>Languages</td><td>male</td><td>95</td><td>35</td><td>100</td><td>90</td></tr>
136 <tr><td>Student16</td><td>Languages</td><td>female</td><td>100</td><td>50</td><td>30</td><td>70</td></tr>
137 <tr><td>Student17</td><td>Languages</td><td>female</td><td>80</td><td>100</td><td>55</td><td>65</td></tr>
138 <tr><td>Student18</td><td>Mathematics</td><td>male</td><td>30</td><td>49</td><td>55</td><td>75</td></tr>
139 <tr><td>Student19</td><td>Languages</td><td>male</td><td>68</td><td>90</td><td>88</td><td>70</td></tr>
140 <tr><td>Student20</td><td>Mathematics</td><td>male</td><td>40</td><td>45</td><td>40</td><td>80</td></tr>
141 <tr><td>Student21</td><td>Languages</td><td>male</td><td>50</td><td>45</td><td>100</td><td>100</td></tr>
142 <tr><td>Student22</td><td>Mathematics</td><td>male</td><td>100</td><td>99</td><td>100</td><td>90</td></tr>
143 <tr><td>Student23</td><td>Mathematics</td><td>male</td><td>82</td><td>77</td><td>0</td><td>79</td></tr>
144 <tr><td>Student24</td><td>Languages</td><td>female</td><td>100</td><td>91</td><td>13</td><td>82</td></tr>
145 <tr><td>Student25</td><td>Mathematics</td><td>male</td><td>22</td><td>96</td><td>82</td><td>53</td></tr>
146 <tr><td>Student26</td><td>Languages</td><td>female</td><td>37</td><td>29</td><td>56</td><td>59</td></tr>
147 <tr><td>Student27</td><td>Mathematics</td><td>male</td><td>86</td><td>82</td><td>69</td><td>23</td></tr>
148 <tr><td>Student28</td><td>Languages</td><td>female</td><td>44</td><td>25</td><td>43</td><td>1</td></tr>
149 <tr><td>Student29</td><td>Mathematics</td><td>male</td><td>77</td><td>47</td><td>22</td><td>38</td></tr>
150 <tr><td>Student30</td><td>Languages</td><td>female</td><td>19</td><td>35</td><td>23</td><td>10</td></tr>
151 <tr><td>Student31</td><td>Mathematics</td><td>male</td><td>90</td><td>27</td><td>17</td><td>50</td></tr>
152 <tr><td>Student32</td><td>Languages</td><td>female</td><td>60</td><td>75</td><td>33</td><td>38</td></tr>
153 <tr><td>Student33</td><td>Mathematics</td><td>male</td><td>4</td><td>31</td><td>37</td><td>15</td></tr>
154 <tr><td>Student34</td><td>Languages</td><td>female</td><td>77</td><td>97</td><td>81</td><td>44</td></tr>
155 <tr><td>Student35</td><td>Mathematics</td><td>male</td><td>5</td><td>81</td><td>51</td><td>95</td></tr>
156 <tr><td>Student36</td><td>Languages</td><td>female</td><td>70</td><td>61</td><td>70</td><td>94</td></tr>
157 <tr><td>Student37</td><td>Mathematics</td><td>male</td><td>60</td><td>3</td><td>61</td><td>84</td></tr>
158 <tr><td>Student38</td><td>Languages</td><td>female</td><td>63</td><td>39</td><td>0</td><td>11</td></tr>
159 <tr><td>Student39</td><td>Mathematics</td><td>male</td><td>50</td><td>46</td><td>32</td><td>38</td></tr>
160 <tr><td>Student40</td><td>Languages</td><td>female</td><td>51</td><td>75</td><td>25</td><td>3</td></tr>
161 <tr><td>Student41</td><td>Mathematics</td><td>male</td><td>43</td><td>34</td><td>28</td><td>78</td></tr>
162 <tr><td>Student42</td><td>Languages</td><td>female</td><td>11</td><td>89</td><td>60</td><td>95</td></tr>
163 <tr><td>Student43</td><td>Mathematics</td><td>male</td><td>48</td><td>92</td><td>18</td><td>88</td></tr>
164 <tr><td>Student44</td><td>Languages</td><td>female</td><td>82</td><td>2</td><td>59</td><td>73</td></tr>
165 <tr><td>Student45</td><td>Mathematics</td><td>male</td><td>91</td><td>73</td><td>37</td><td>39</td></tr>
166 <tr><td>Student46</td><td>Languages</td><td>female</td><td>4</td><td>8</td><td>12</td><td>10</td></tr>
167 <tr><td>Student47</td><td>Mathematics</td><td>male</td><td>89</td><td>10</td><td>6</td><td>11</td></tr>
168 <tr><td>Student48</td><td>Languages</td><td>female</td><td>90</td><td>32</td><td>21</td><td>18</td></tr>
169 <tr><td>Student49</td><td>Mathematics</td><td>male</td><td>42</td><td>49</td><td>49</td><td>72</td></tr>
170 <tr><td>Student50</td><td>Languages</td><td>female</td><td>56</td><td>37</td><td>67</td><td>54</td></tr>
171 </tbody>
172 </table>
173 </div>
174
175 <h1>Javascript</h1>
176 <div id="javascript">
177 <pre class="prettyprint lang-javascript"></pre>
178 </div>
179
180 <h1>CSS</h1>
181 <div id="css">
182 <pre class="prettyprint lang-css"></pre>
183 </div>
184
185 <h1>HTML</h1>
186 <div id="html">
187 <pre class="prettyprint lang-html"></pre>
188 </div>
189
190 </div>
191
192 </body>
193 </html>