| 1 |
<!DOCTYPE html> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<meta charset="utf-8"> |
| 5 |
<title>jQuery tablesorter 2.4 - Themes</title> |
| 6 |
|
| 7 |
|
| 8 |
<style> |
| 9 |
.minitable {float:left;min-width:190px; min-height: 280px; margin:5px;} |
| 10 |
.minitable table {width:175px;margin:10px auto;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;box-sizing: border-box;} |
| 11 |
.minitable table th {font-size:11px;} |
| 12 |
.minitable table td {font-size:11px;padding:4px !important;text-align:center;} |
| 13 |
.minitable h3, .minitable h5 {text-align:center;margin:0;} |
| 14 |
</style> |
| 15 |
|
| 16 |
|
| 17 |
<script src="js/jquery-latest.min.js"></script> |
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
<link href="css/jquery-ui.min.css" rel="stylesheet"> |
| 22 |
<link href="../css/theme.jui.css" rel="stylesheet"> |
| 23 |
|
| 24 |
|
| 25 |
<link href="css/bootstrap-v3.min.css" rel="stylesheet"> |
| 26 |
<link href="../css/theme.bootstrap.css" rel="stylesheet"> |
| 27 |
|
| 28 |
|
| 29 |
<link href="../css/theme.black-ice.css" rel="stylesheet"> |
| 30 |
<link href="../css/theme.blue.css" rel="stylesheet"> |
| 31 |
<link href="../css/theme.dark.css" rel="stylesheet"> |
| 32 |
<link href="../css/theme.default.css" rel="stylesheet"> |
| 33 |
<link href="../css/theme.dropbox.css" rel="stylesheet"> |
| 34 |
<link href="../css/theme.green.css" rel="stylesheet"> |
| 35 |
<link href="../css/theme.grey.css" rel="stylesheet"> |
| 36 |
<link href="../css/theme.ice.css" rel="stylesheet"> |
| 37 |
<link href="../css/theme.metro-dark.css" rel="stylesheet"> |
| 38 |
|
| 39 |
|
| 40 |
<script src="../js/jquery.tablesorter.js"></script> |
| 41 |
<script src="../js/jquery.tablesorter.widgets.js"></script> |
| 42 |
|
| 43 |
<script> |
| 44 |
$(function() { |
| 45 |
|
| 46 |
$.extend($.tablesorter.defaults, { |
| 47 |
widthFixed: true, |
| 48 |
widgets : ['zebra','columns'], |
| 49 |
sortList : [ [0,0],[1,0],[2,0] ] |
| 50 |
}); |
| 51 |
|
| 52 |
$('.demo').tablesorter(); |
| 53 |
|
| 54 |
// grey & dropbox themes need the {icon} for header icons |
| 55 |
$('.tablesorter-dropbox,.tablesorter-grey').tablesorter({ |
| 56 |
headerTemplate: '{content}{icon}' // dropbox theme doesn't like a space between the content & icon |
| 57 |
}); |
| 58 |
|
| 59 |
$('.tablesorter-bootstrap').tablesorter({ |
| 60 |
theme : 'bootstrap', |
| 61 |
headerTemplate: '{content} {icon}', |
| 62 |
widgets : ['zebra','columns', 'uitheme'] |
| 63 |
}); |
| 64 |
|
| 65 |
$('.tablesorter-jui').tablesorter({ |
| 66 |
theme : 'jui', |
| 67 |
headerTemplate: '{content} {icon}', |
| 68 |
widgets : ['zebra','columns', 'uitheme'] |
| 69 |
}); |
| 70 |
|
| 71 |
}); |
| 72 |
</script> |
| 73 |
</head> |
| 74 |
<body> |
| 75 |
|
| 76 |
<div id="main"> |
| 77 |
|
| 78 |
<div class="minitable"> |
| 79 |
<h3>Blackice</h3> |
| 80 |
<h5>(blackice)</h5> |
| 81 |
<table class="demo tablesorter-blackice"> |
| 82 |
<thead><tr><th>A</th><th>B</th><th>C</th><th>D</th></tr></thead> |
| 83 |
<tfoot><tr><th>A</th><th>B</th><th>C</th><th>D</th></tr></tfoot> |
| 84 |
<tbody> |
| 85 |
<tr><td>1</td><td>2</td><td>3</td><td>4</td></tr> |
| 86 |
<tr><td>14</td><td>15</td><td>16</td><td>5</td></tr> |
| 87 |
<tr><td>13</td><td>20</td><td>17</td><td>6</td></tr> |
| 88 |
<tr><td>12</td><td>19</td><td>18</td><td>7</td></tr> |
| 89 |
<tr><td>11</td><td>10</td><td>9</td><td>8</td></tr> |
| 90 |
</tbody> |
| 91 |
</table> |
| 92 |
</div> |
| 93 |
|
| 94 |
<div class="minitable"> |
| 95 |
<h3>Blue</h3> |
| 96 |
<h5>(blue)</h5> |
| 97 |
<table class="demo tablesorter-blue"> |
| 98 |
<thead><tr><th>A</th><th>B</th><th>C</th><th>D</th></tr></thead> |
| 99 |
<tfoot><tr><th>A</th><th>B</th><th>C</th><th>D</th></tr></tfoot> |
| 100 |
<tbody> |
| 101 |
<tr><td>1</td><td>2</td><td>3</td><td>4</td></tr> |
| 102 |
<tr><td>14</td><td>15</td><td>16</td><td>5</td></tr> |
| 103 |
<tr><td>13</td><td>20</td><td>17</td><td>6</td></tr> |
| 104 |
<tr><td>12</td><td>19</td><td>18</td><td>7</td></tr> |
| 105 |
<tr><td>11</td><td>10</td><td>9</td><td>8</td></tr> |
| 106 |
</tbody> |
| 107 |
</table> |
| 108 |
</div> |
| 109 |
|
| 110 |
<div class="minitable"> |
| 111 |
<h3>Dark</h3> |
| 112 |
<h5>(dark)</h5> |
| 113 |
<table class="demo tablesorter-dark"> |
| 114 |
<thead><tr><th>A</th><th>B</th><th>C</th><th>D</th></tr></thead> |
| 115 |
<tfoot><tr><th>A</th><th>B</th><th>C</th><th>D</th></tr></tfoot> |
| 116 |
<tbody> |
| 117 |
<tr><td>1</td><td>2</td><td>3</td><td>4</td></tr> |
| 118 |
<tr><td>14</td><td>15</td><td>16</td><td>5</td></tr> |
| 119 |
<tr><td>13</td><td>20</td><td>17</td><td>6</td></tr> |
| 120 |
<tr><td>12</td><td>19</td><td>18</td><td>7</td></tr> |
| 121 |
<tr><td>11</td><td>10</td><td>9</td><td>8</td></tr> |
| 122 |
</tbody> |
| 123 |
</table> |
| 124 |
</div> |
| 125 |
|
| 126 |
<div class="minitable"> |
| 127 |
<h3>Default</h3> |
| 128 |
<h5>(default)</h5> |
| 129 |
<table class="demo tablesorter-default"> |
| 130 |
<thead><tr><th>A</th><th>B</th><th>C</th><th>D</th></tr></thead> |
| 131 |
<tfoot><tr><th>A</th><th>B</th><th>C</th><th>D</th></tr></tfoot> |
| 132 |
<tbody> |
| 133 |
<tr><td>1</td><td>2</td><td>3</td><td>4</td></tr> |
| 134 |
<tr><td>14</td><td>15</td><td>16</td><td>5</td></tr> |
| 135 |
<tr><td>13</td><td>20</td><td>17</td><td>6</td></tr> |
| 136 |
<tr><td>12</td><td>19</td><td>18</td><td>7</td></tr> |
| 137 |
<tr><td>11</td><td>10</td><td>9</td><td>8</td></tr> |
| 138 |
</tbody> |
| 139 |
</table> |
| 140 |
</div> |
| 141 |
|
| 142 |
<div class="minitable"> |
| 143 |
<h3>Green</h3> |
| 144 |
<h5>(green)</h5> |
| 145 |
<table class="demo tablesorter-green"> |
| 146 |
<thead><tr><th>A</th><th>B</th><th>C</th><th>D</th></tr></thead> |
| 147 |
<tfoot><tr><th>A</th><th>B</th><th>C</th><th>D</th></tr></tfoot> |
| 148 |
<tbody> |
| 149 |
<tr><td>1</td><td>2</td><td>3</td><td>4</td></tr> |
| 150 |
<tr><td>14</td><td>15</td><td>16</td><td>5</td></tr> |
| 151 |
<tr><td>13</td><td>20</td><td>17</td><td>6</td></tr> |
| 152 |
<tr><td>12</td><td>19</td><td>18</td><td>7</td></tr> |
| 153 |
<tr><td>11</td><td>10</td><td>9</td><td>8</td></tr> |
| 154 |
</tbody> |
| 155 |
</table> |
| 156 |
</div> |
| 157 |
|
| 158 |
<div class="minitable"> |
| 159 |
<h3>Grey</h3> |
| 160 |
<h5>(grey)</h5> |
| 161 |
<table class="tablesorter-grey"> |
| 162 |
<thead><tr><th>A</th><th>B</th><th>C</th><th>D</th></tr></thead> |
| 163 |
<tfoot><tr><th>A</th><th>B</th><th>C</th><th>D</th></tr></tfoot> |
| 164 |
<tbody> |
| 165 |
<tr><td>1</td><td>2</td><td>3</td><td>4</td></tr> |
| 166 |
<tr><td>14</td><td>15</td><td>16</td><td>5</td></tr> |
| 167 |
<tr><td>13</td><td>20</td><td>17</td><td>6</td></tr> |
| 168 |
<tr><td>12</td><td>19</td><td>18</td><td>7</td></tr> |
| 169 |
<tr><td>11</td><td>10</td><td>9</td><td>8</td></tr> |
| 170 |
</tbody> |
| 171 |
</table> |
| 172 |
</div> |
| 173 |
|
| 174 |
<div class="minitable"> |
| 175 |
<h3>Ice</h3> |
| 176 |
<h5>(ice)</h5> |
| 177 |
<table class="demo tablesorter-ice"> |
| 178 |
<thead><tr><th>A</th><th>B</th><th>C</th><th>D</th></tr></thead> |
| 179 |
<tfoot><tr><th>A</th><th>B</th><th>C</th><th>D</th></tr></tfoot> |
| 180 |
<tbody> |
| 181 |
<tr><td>1</td><td>2</td><td>3</td><td>4</td></tr> |
| 182 |
<tr><td>14</td><td>15</td><td>16</td><td>5</td></tr> |
| 183 |
<tr><td>13</td><td>20</td><td>17</td><td>6</td></tr> |
| 184 |
<tr><td>12</td><td>19</td><td>18</td><td>7</td></tr> |
| 185 |
<tr><td>11</td><td>10</td><td>9</td><td>8</td></tr> |
| 186 |
</tbody> |
| 187 |
</table> |
| 188 |
</div> |
| 189 |
|
| 190 |
<div class="minitable"> |
| 191 |
<h3>Bootstrap</h3> |
| 192 |
<h5>(bootstrap)</h5> |
| 193 |
<table class="tablesorter-bootstrap"> |
| 194 |
<thead><tr><th>A</th><th>B</th><th>C</th><th>D</th></tr></thead> |
| 195 |
<tfoot><tr><th>A</th><th>B</th><th>C</th><th>D</th></tr></tfoot> |
| 196 |
<tbody> |
| 197 |
<tr><td>1</td><td>2</td><td>3</td><td>4</td></tr> |
| 198 |
<tr><td>14</td><td>15</td><td>16</td><td>5</td></tr> |
| 199 |
<tr><td>13</td><td>20</td><td>17</td><td>6</td></tr> |
| 200 |
<tr><td>12</td><td>19</td><td>18</td><td>7</td></tr> |
| 201 |
<tr><td>11</td><td>10</td><td>9</td><td>8</td></tr> |
| 202 |
</tbody> |
| 203 |
</table> |
| 204 |
</div> |
| 205 |
|
| 206 |
<div class="minitable"> |
| 207 |
<h3>jQuery UI</h3> |
| 208 |
<h5>(jui)</h5> |
| 209 |
<table class="tablesorter-jui"> |
| 210 |
<thead><tr><th>A</th><th>B</th><th>C</th><th>D</th></tr></thead> |
| 211 |
<tfoot><tr><th>A</th><th>B</th><th>C</th><th>D</th></tr></tfoot> |
| 212 |
<tbody> |
| 213 |
<tr><td>1</td><td>2</td><td>3</td><td>4</td></tr> |
| 214 |
<tr><td>14</td><td>15</td><td>16</td><td>5</td></tr> |
| 215 |
<tr><td>13</td><td>20</td><td>17</td><td>6</td></tr> |
| 216 |
<tr><td>12</td><td>19</td><td>18</td><td>7</td></tr> |
| 217 |
<tr><td>11</td><td>10</td><td>9</td><td>8</td></tr> |
| 218 |
</tbody> |
| 219 |
</table> |
| 220 |
</div> |
| 221 |
|
| 222 |
<div class="minitable"> |
| 223 |
<h3>Dropbox</h3> |
| 224 |
<h5>(dropbox)</h5> |
| 225 |
<table class="tablesorter-dropbox"> |
| 226 |
<thead><tr><th>A</th><th>B</th><th>C</th><th>D</th></tr></thead> |
| 227 |
<tfoot><tr><th>A</th><th>B</th><th>C</th><th>D</th></tr></tfoot> |
| 228 |
<tbody> |
| 229 |
<tr><td>1</td><td>2</td><td>3</td><td>4</td></tr> |
| 230 |
<tr><td>14</td><td>15</td><td>16</td><td>5</td></tr> |
| 231 |
<tr><td>13</td><td>20</td><td>17</td><td>6</td></tr> |
| 232 |
<tr><td>12</td><td>19</td><td>18</td><td>7</td></tr> |
| 233 |
<tr><td>11</td><td>10</td><td>9</td><td>8</td></tr> |
| 234 |
</tbody> |
| 235 |
</table> |
| 236 |
</div> |
| 237 |
|
| 238 |
<div class="minitable"> |
| 239 |
<h3>Metro Dark</h3> |
| 240 |
<h5>(metro-dark)</h5> |
| 241 |
<table class="tablesorter-metro-dark demo"> |
| 242 |
<thead> |
| 243 |
<tr class="dark-row"><th class="sorter-false" colspan="4">Title</th></tr> |
| 244 |
<tr><th>A</th><th>B</th><th>C</th><th>D</th></tr> |
| 245 |
</thead> |
| 246 |
<tfoot> |
| 247 |
<tr><th>A</th><th>B</th><th>C</th><th>D</th></tr> |
| 248 |
<tr class="dark-row"><th colspan="4"> </th></tr> |
| 249 |
</tfoot> |
| 250 |
<tbody> |
| 251 |
<tr><td>1</td><td>2</td><td>3</td><td>4</td></tr> |
| 252 |
<tr><td>14</td><td>15</td><td>16</td><td>5</td></tr> |
| 253 |
<tr><td>13</td><td>20</td><td>17</td><td>6</td></tr> |
| 254 |
<tr><td>12</td><td>19</td><td>18</td><td>7</td></tr> |
| 255 |
<tr><td>11</td><td>10</td><td>9</td><td>8</td></tr> |
| 256 |
</tbody> |
| 257 |
</table> |
| 258 |
</div> |
| 259 |
|
| 260 |
</div> |
| 261 |
|
| 262 |
</body> |
| 263 |
</html> |