| 1 |
<!DOCTYPE html> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<meta charset="utf-8"> |
| 5 |
<title>jQuery tablesorter 2.0 - Mark Widget</title> |
| 6 |
|
| 7 |
|
| 8 |
<script src="js/jquery-latest.min.js"></script> |
| 9 |
|
| 10 |
|
| 11 |
<link class="ui-theme" rel="stylesheet" href="css/jquery-ui.min.css"> |
| 12 |
<script src="js/jquery-ui.min.js"></script> |
| 13 |
<link rel="stylesheet" href="css/jq.css"> |
| 14 |
<link href="css/tipsy.css" rel="stylesheet"> |
| 15 |
<link href="css/prettify.css" rel="stylesheet"> |
| 16 |
<script src="js/prettify.js"></script> |
| 17 |
<script src="js/docs.js"></script> |
| 18 |
<script src="js/jquery.tipsy.min.js"></script> |
| 19 |
|
| 20 |
|
| 21 |
<link rel="stylesheet" href="../css/theme.blue.css"> |
| 22 |
<style id="css">/* Example showing how to change the mark color by column */ |
| 23 |
tr td:nth-child(1) mark { background: #aa0000; color: #fff; } |
| 24 |
tr td:nth-child(2) mark { background: #00aa00; color: #fff; } |
| 25 |
tr td:nth-child(3) mark { background: #0000aa; color: #fff; } |
| 26 |
/* tr td:nth-child(4) mark { background: #aaaa00; color: #fff; } Age column not highlighted */ |
| 27 |
tr td:nth-child(5) mark { background: #00aaaa; color: #fff; } |
| 28 |
tr td:nth-child(6) mark { background: #aa00aa; color: #fff; } |
| 29 |
|
| 30 |
/* column will not be highlighted */ |
| 31 |
th.tablesorter-header.mark-ignore, |
| 32 |
th.tablesorter-header.ignore, .ignore { background-color: #e6bf99; } |
| 33 |
</style> |
| 34 |
<script src="../js/jquery.tablesorter.js"></script> |
| 35 |
<script src="../js/widgets/widget-filter.js"></script> |
| 36 |
|
| 37 |
<script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.1.1/jquery.mark.js"></script> |
| 38 |
<script src="../js/widgets/widget-mark.js"></script> |
| 39 |
|
| 40 |
<script id="js">$(function() { |
| 41 |
|
| 42 |
// ============================== |
| 43 |
// WITH filter widget |
| 44 |
// ============================== |
| 45 |
var $table = $('#table').tablesorter({ |
| 46 |
theme: 'blue', |
| 47 |
widthFixed : true, |
| 48 |
// sort & filter diacritics |
| 49 |
sortLocaleCompare: true, |
| 50 |
widgets: ['zebra', 'filter', 'mark'], |
| 51 |
widgetOptions: { |
| 52 |
filter_external: 'input[name="keyword"]', |
| 53 |
filter_reset: 'button.reset', |
| 54 |
|
| 55 |
// *** mark widget only settings |
| 56 |
mark_tsUpdate : 'markUpdate', |
| 57 |
mark_tsIgnore : { |
| 58 |
// don't highlight the age column |
| 59 |
3: true |
| 60 |
}, |
| 61 |
// *** default settings for non-regular expression searches only |
| 62 |
mark_accuracy: 'partially', |
| 63 |
mark_caseSensitive: false, |
| 64 |
mark_diacritics: true, |
| 65 |
mark_separateWordSearch: true, |
| 66 |
mark_synonyms: {}, |
| 67 |
// *** settings that apply to regex & non-regular expression searches |
| 68 |
mark_acrossElements: false, |
| 69 |
mark_className: '', |
| 70 |
mark_debug: false, |
| 71 |
mark_element: 'mark', |
| 72 |
mark_exclude: [], |
| 73 |
mark_iframes: false, |
| 74 |
mark_log: console, |
| 75 |
// callback functions |
| 76 |
mark_done: function(totalMatches) {}, |
| 77 |
mark_each: function(element) {}, |
| 78 |
mark_filter: function(node, term, totalMatches, matches) { |
| 79 |
// "matches" parameter is not defined for regular expression searches |
| 80 |
return true; |
| 81 |
}, |
| 82 |
mark_noMatch: function(termNotFound) {} |
| 83 |
} |
| 84 |
}); |
| 85 |
|
| 86 |
// preset searches for the first table |
| 87 |
$('button[data-filter-column]').click(function() { |
| 88 |
var filters = [], |
| 89 |
config = $table[0].config, |
| 90 |
$t = $(this), |
| 91 |
col = $t.data('filter-column'), // zero-based index, or "all" column |
| 92 |
txt = $t.data('filter-text') || $t.text(); // text to add to filter |
| 93 |
filters[col === "all" ? config.columns : col] = txt; |
| 94 |
config.widgetOptions.mark_caseSensitive = $t.data('mark-case') || false; |
| 95 |
$.tablesorter.setFilters( $table, filters ); |
| 96 |
return false; |
| 97 |
}); |
| 98 |
|
| 99 |
// ============================== |
| 100 |
// NO filter widget |
| 101 |
// ============================== |
| 102 |
var $table2 = $('#table2').tablesorter({ |
| 103 |
theme: 'blue', |
| 104 |
widthFixed : true, |
| 105 |
// sort & filter diacritics |
| 106 |
sortLocaleCompare: true, |
| 107 |
widgets: ['zebra', 'mark'], |
| 108 |
widgetOptions : { |
| 109 |
// using mark.js default settings |
| 110 |
mark_tsIgnore : { |
| 111 |
// don't highlight the age column |
| 112 |
// 3: true // done by adding "mark-ignore" class to header |
| 113 |
} |
| 114 |
} |
| 115 |
}); |
| 116 |
|
| 117 |
// preset searches on the second table |
| 118 |
$('button.table2').click(function() { |
| 119 |
// check for reset |
| 120 |
var query = $(this).hasClass('reset2') ? '' : this.textContent; |
| 121 |
config = $table2[0].config; |
| 122 |
config.widgetOptions.mark_caseSensitive = $(this).data('mark-case') || false; |
| 123 |
$('#table2-search') |
| 124 |
.val(query) |
| 125 |
.trigger('input'); |
| 126 |
}); |
| 127 |
|
| 128 |
$('#table2-search').on('input', function(event) { |
| 129 |
var config = $table2[0].config, |
| 130 |
filters = []; |
| 131 |
// still target the "any" match column |
| 132 |
filters[config.columns] = this.value; |
| 133 |
// if input was not triggered by a button click, reset caseSensitive |
| 134 |
if (!event.isTrigger) { |
| 135 |
config.widgetOptions.mark_caseSensitive = false; |
| 136 |
} |
| 137 |
// trigger a mark update |
| 138 |
$table2.trigger('markUpdate', [filters]); |
| 139 |
// or call the function directly |
| 140 |
// $.tablesorter.mark.update(config, filters); |
| 141 |
}); |
| 142 |
|
| 143 |
// add tooltip |
| 144 |
$('.tooltip').tipsy({ gravity: 's' }); |
| 145 |
|
| 146 |
});</script> |
| 147 |
|
| 148 |
</head> |
| 149 |
<body> |
| 150 |
<div id="banner"> |
| 151 |
<h1>table<em>sorter</em></h1> |
| 152 |
<h2>Mark Widget</h2> |
| 153 |
<h3>Flexible client-side table sorting</h3> |
| 154 |
<a href="index.html">Back to documentation</a> |
| 155 |
</div> |
| 156 |
<div id="main"> |
| 157 |
|
| 158 |
<p></p> |
| 159 |
<br> |
| 160 |
<div id="root" class="accordion"> |
| 161 |
|
| 162 |
<h3 id="notes"><a href="#">Notes</a></h3> |
| 163 |
<div> |
| 164 |
<ul> |
| 165 |
<li>Updated <span class="verison">v2.27.7</span>, removed internal case matching as mark.js v8.1.1 now has a <code>caseSensitive</code> option (set using <code>mark_caseSensitive</code> widget option).</li> |
| 166 |
<li>Updated <span class="verison">v2.27.6</span> |
| 167 |
<ul> |
| 168 |
<li>The mark widget properly applies after a pager change has occured.</li> |
| 169 |
<li>Added <code>mark_tsIgnore</code> option as well as support of adding a "mark-ignore" class to the header. These columns will not be highlighted - see <span class="ignore">Age</span> column below.</li> |
| 170 |
<li>Included mark.js v8.0.0's new option as <code>mark_acrossElements</code>. This widget does not however apply the search across table cells.</li> |
| 171 |
</ul> |
| 172 |
</li> |
| 173 |
<li>Added <span class="verison">v2.27.0</span> for use with the <a href="https://markjs.io/">mark.js</a> plugin.</li> |
| 174 |
<li>Notable Issues: |
| 175 |
<ul> |
| 176 |
<li><button class="bad" type="button" data-filter-column="all">~ae</button> - Some rows won't be highlighted because the filter finds fuzzy matches across rows, while the mark widget is targeting separate cell content.</li> |
| 177 |
<li><button type="button" data-filter-column="all">/(aaron|bruce)/i</button> - Using a regular expression search will not include diacritics; use an " OR " search instead <button type="button" data-filter-column="all">aaron|bruce</button>.<br> |
| 178 |
I may fix this in future updates. |
| 179 |
</li> |
| 180 |
<li><button class="bad" type="button" data-filter-column="all">/.*/</button> or <button class="bad" type="button" data-filter-column="all">/(|)/</button> - When a regular expression matches everything, the regex is ignored by the mark widget otherwise, <a href="https://github.com/julmot/mark.js/issues/55">mark.js does bad things</a>; but this regex is okay: <button type="button" data-filter-column="all">/.+/</button>.</li> |
| 181 |
<li><button class="bad" type="button" data-filter-column="3"><=22</button> or <button class="bad" type="button" data-filter-column="5">10 - 20</button> - Operators & ranges are not fully supported (these are not supported at all by the filter widget in an "all" columns match - see the documentation on <a href="example-widget-filter-any-match.html#limitations">any match limitations</a>).</li> |
| 182 |
<li><button class="bad" type="button" data-filter-column="all">!aaron</button> - There is nothing to highlight for not matches.</li> |
| 183 |
</ul> |
| 184 |
</li> |
| 185 |
<li>The <a href="https://markjs.io/#mark"><code>mark</code> function</a> is used for the following filter queries: |
| 186 |
<ul> |
| 187 |
<li>Plain text</li> |
| 188 |
<li>Logical AND (<code> and </code> or <code> && </code>) & logical OR (<code> or </code> or <code>|</code>) searches.</li> |
| 189 |
<li>Invalid regex (e.g. <code>/(|)/</code>).</li> |
| 190 |
<li>Operator, range, exact and not searches.</li> |
| 191 |
</ul> |
| 192 |
</li> |
| 193 |
<li>The <a href="https://markjs.io/#markregexp"><code>markRegExp</code> function</a> is used when the filter contains: |
| 194 |
<ul> |
| 195 |
<li>A "valid" regular expression</li> |
| 196 |
<li>Fuzzy search (<code>~</code>)</li> |
| 197 |
<li>Wild card <code>?</code> or <code>*</code> search</li> |
| 198 |
</ul> |
| 199 |
</li> |
| 200 |
|
| 201 |
<li>Try out the <a href="http://jsfiddle.net/Mottie/odyfw8Lj/">jSFiddle Playground</a>.</li> |
| 202 |
</ul> |
| 203 |
</div> |
| 204 |
|
| 205 |
<h3><a href="#">Options</a></h3> |
| 206 |
<div> |
| 207 |
<h4>Mark widget defaults (added inside of tablesorter <code>widgetOptions</code>)</h4> |
| 208 |
<h5>The widgetOptions are essentially Mark.js settings with a <code>mark_</code> prefix. All options are dynamically updated.</h5> |
| 209 |
<div> |
| 210 |
<span class="label label-info">TIP!</span> Click on the link in the function column to reveal full details (or <a href="#" class="toggleAll">toggle</a>|<a href="#" class="showAll">show</a>|<a href="#" class="hideAll">hide</a> all) or double click to update the browser location. |
| 211 |
</div> |
| 212 |
<table class="options tablesorter-blue" data-sortlist="[[0,0]]"> |
| 213 |
<thead> |
| 214 |
<tr><th>Option</th><th>Default</th><th class="sorter-false">Description</th></tr> |
| 215 |
</thead> |
| 216 |
<tbody> |
| 217 |
|
| 218 |
<tr id="mark-tsupdateclass"> |
| 219 |
<td><a href="#" class="permalink">mark_tsUpdate</a></td> |
| 220 |
<td>"markUpdate"</td> |
| 221 |
<td>This option sets the event that can be triggered on the table to update the marks. |
| 222 |
<div class="collapsible"> |
| 223 |
<br> |
| 224 |
Use it as follows: |
| 225 |
<pre class="prettyprint lang-js">$('table').tablesorter({ |
| 226 |
widgets: ['mark'], |
| 227 |
widgetOptions: { |
| 228 |
mark_tsUpdate: 'markFu' |
| 229 |
} |
| 230 |
}); |
| 231 |
|
| 232 |
$('button.update').click(function() { |
| 233 |
// update the marks in the table |
| 234 |
$('table').trigger('markFu'); |
| 235 |
});</pre> |
| 236 |
</div> |
| 237 |
</td> |
| 238 |
</tr> |
| 239 |
|
| 240 |
<tr id="mark-tsignore"> |
| 241 |
<td><a href="#" class="permalink">mark_tsIgnore</a></td> |
| 242 |
<td>{}</td> |
| 243 |
<td>This option sets which columns in the table to ignore when searching. |
| 244 |
<div class="collapsible"> |
| 245 |
<br> |
| 246 |
Use it as follows: |
| 247 |
<pre class="prettyprint lang-js">$('table').tablesorter({ |
| 248 |
widgets: ['mark'], |
| 249 |
widgetOptions: { |
| 250 |
mark_tsIgnore: { |
| 251 |
// ignore second column (zero-based index) |
| 252 |
1: true |
| 253 |
} |
| 254 |
} |
| 255 |
});</pre> |
| 256 |
You can also add a <code>"mark-ignore"</code> class name to the table header to accomplish the same thing. |
| 257 |
</div> |
| 258 |
</td> |
| 259 |
</tr> |
| 260 |
|
| 261 |
</tbody> |
| 262 |
<tbody class="tablesorter-infoOnly"> |
| 263 |
<tr> |
| 264 |
<th colspan="3">Mark.js settings - see <a href="https://markjs.io/#api">official documentation</a></th> |
| 265 |
</tr> |
| 266 |
</tbody> |
| 267 |
|
| 268 |
<tbody> |
| 269 |
<tr id="mark-acrossElements"> |
| 270 |
<td><span class="permalink">mark_acrossElements</span></td> |
| 271 |
<td>false</td> |
| 272 |
<td> |
| 273 |
Set to <code>true</code> to search for matches across elements (added in mark.js v8.0.0).<br> |
| 274 |
This option does not apply to content across table cells as this widget targets individual cells while |
| 275 |
performing an "any" match. |
| 276 |
</td> |
| 277 |
</tr> |
| 278 |
<tr id="mark-element"> |
| 279 |
<td><span class="permalink">mark_element</span></td> |
| 280 |
<td>"mark"</td> |
| 281 |
<td>HTML element to wrap matches.</td> |
| 282 |
</tr> |
| 283 |
<tr id="mark-classname"> |
| 284 |
<td><span class="permalink">mark_className</span></td> |
| 285 |
<td>""</td> |
| 286 |
<td>A class name added to the element.</td> |
| 287 |
</tr> |
| 288 |
<tr id="mark-exclude"> |
| 289 |
<td><span class="permalink">mark_exclude</span></td> |
| 290 |
<td>[]</td> |
| 291 |
<td>An array with exclusion selectors. Matches inside these elements will be ignored.</td> |
| 292 |
</tr> |
| 293 |
<tr id="mark-separatewordsearch"> |
| 294 |
<td><span class="permalink">mark_separateWordSearch</span></td> |
| 295 |
<td>true</td> |
| 296 |
<td>Whether to search for each word separated by a blank.</td> |
| 297 |
</tr> |
| 298 |
<tr id="mark-accuracy"> |
| 299 |
<td><span class="permalink">mark_accuracy</span></td> |
| 300 |
<td>"partially"</td> |
| 301 |
<td>Use "partially", "complementary", "exactly" or object - see markjs docs for details.</td> |
| 302 |
</tr> |
| 303 |
<tr id="mark-casesensitive"> |
| 304 |
<td><span class="permalink">mark_caseSensitive</span></td> |
| 305 |
<td>false</td> |
| 306 |
<td>If <code>true</code>, only case sensitive marks are applied.</td> |
| 307 |
</tr> |
| 308 |
<tr id="mark-diacritics"> |
| 309 |
<td><span class="permalink">mark_diacritics</span></td> |
| 310 |
<td>true</td> |
| 311 |
<td>If <code>true</code>, diacritic characters should be matched.</td> |
| 312 |
</tr> |
| 313 |
<tr id="mark-synonyms"> |
| 314 |
<td><span class="permalink">mark_synonyms</span></td> |
| 315 |
<td>{}</td> |
| 316 |
<td>An object with synonyms..</td> |
| 317 |
</tr> |
| 318 |
<tr id="mark-iframes"> |
| 319 |
<td><span class="permalink">mark_iframes</span></td> |
| 320 |
<td>false</td> |
| 321 |
<td>Whether to search also inside iframes.</td> |
| 322 |
</tr> |
| 323 |
<tr id="mark-each"> |
| 324 |
<td><span class="permalink">mark_each</span></td> |
| 325 |
<td>function(element) {}</td> |
| 326 |
<td>A callback for each marked element.</td> |
| 327 |
</tr> |
| 328 |
<tr id="mark-filter"> |
| 329 |
<td><a href="#" class="permalink">mark_filter</a></td> |
| 330 |
<td>function(parameters) { return true; }</td> |
| 331 |
<td>A callback to filter or limit matches. |
| 332 |
<div class="collapsible"> |
| 333 |
<br> |
| 334 |
When the <code>mark</code> function is called, the function parameters are: |
| 335 |
<pre class="prettyprint lang-js">function(node, keyword, matches, totalMatches) { return true; }</pre> |
| 336 |
When the <code>markRegExp</code> function is called, the function parameters are: |
| 337 |
<pre class="prettyprint lang-js">function(node, match, totalMatches) { return true; }</pre> |
| 338 |
<p>In both cases, a <code>return true</code> is needed to highlight the match.</p> |
| 339 |
<span class="label label-info">Note</span> See the notes section above to know when which function is called. |
| 340 |
</div> |
| 341 |
</td> |
| 342 |
</tr> |
| 343 |
<tr id="mark-nomatch"> |
| 344 |
<td><a href="#" class="permalink">mark_noMatch</a></td> |
| 345 |
<td>function(keyword) {}</td> |
| 346 |
<td>A callback function that will be called when there are no matches. |
| 347 |
<div class="collapsible"> |
| 348 |
<br> |
| 349 |
When the <code>mark</code> function is called, the keyword parameter is a string. |
| 350 |
<p>When the <code>markRegExp</code> function is called, the keyword parameter is the regular expression.</p> |
| 351 |
<span class="label label-info">Note</span> See the notes section above to know when which function is called. |
| 352 |
</div> |
| 353 |
</td> |
| 354 |
</tr> |
| 355 |
<tr id="mark-done"> |
| 356 |
<td><span class="permalink">mark_done</span></td> |
| 357 |
<td>function(totalMatches) {}</td> |
| 358 |
<td>A callback function after all marks are done.</td> |
| 359 |
</tr> |
| 360 |
<tr id="mark-debug"> |
| 361 |
<td><span class="permalink">mark_debug</span></td> |
| 362 |
<td>false</td> |
| 363 |
<td>If <code>true</code>, messages will be logged.</td> |
| 364 |
</tr> |
| 365 |
<tr id="mark-log"> |
| 366 |
<td><span class="permalink">mark_log</span></td> |
| 367 |
<td>console</td> |
| 368 |
<td>Log message to this object.</td> |
| 369 |
</tr> |
| 370 |
</tbody> |
| 371 |
</table> |
| 372 |
</div> |
| 373 |
|
| 374 |
</div> |
| 375 |
<p></p> |
| 376 |
|
| 377 |
<h1>Demo: With the Filter Widget</h1> |
| 378 |
<br> |
| 379 |
Search/Highlight all columns: <input type="text" name="keyword" data-column="all"> |
| 380 |
<button type="button" class="reset">Reset</button> |
| 381 |
<button type="button" data-filter-column="all">13</button> |
| 382 |
<button class="bad" type="button" data-filter-column="all" title="See "Notes" on why the second row isn't highlighted">~ee</button> |
| 383 |
<button type="button" data-filter-column="all">br?n</button> |
| 384 |
<button type="button" data-filter-column="all">br*n</button> |
| 385 |
<button type="button" data-filter-column="all">aaron && 2</button> |
| 386 |
<button type="button" data-filter-column="all">aaron|bruce</button> |
| 387 |
<button type="button" class="sens tooltip" title="Case Sensitive Mark" data-filter-column="all" data-mark-case="true">aaron|Bruce</button> |
| 388 |
<table id="table" class="tablesorter"> |
| 389 |
<thead> |
| 390 |
<tr> |
| 391 |
<th>Rank</th> |
| 392 |
<th class="filter-match">First Name</th> |
| 393 |
<th>Last Name</th> |
| 394 |
<th class="ignore" title="no highlighting">Age</th> |
| 395 |
<th>Total</th> |
| 396 |
<th>Discount</th> |
| 397 |
<th>Date</th> |
| 398 |
</tr> |
| 399 |
</thead> |
| 400 |
<tbody> |
| 401 |
<tr><td>1</td><td>Philip Aaron Wong</td><td>Johnson Sr Esq</td><td>25</td><td>$5.95</td><td>22%</td><td>Jun 26, 2004 7:22 AM</td></tr> |
| 402 |
<tr><td>11</td><td>Aáron</td><td>Hibert</td><td>12</td><td>$2.99</td><td>5%</td><td>Aug 21, 2009 12:21 PM</td></tr> |
| 403 |
<tr><td>12</td><td>Brandon Clark</td><td>Henry Jr</td><td>51</td><td>$42.29</td><td>18%</td><td>Oct 13, 2000 1:15 PM</td></tr> |
| 404 |
<tr><td>111</td><td>Peter</td><td>Párker</td><td>28</td><td>$9.99</td><td>20%</td><td>Jul 6, 2006 8:14 AM</td></tr> |
| 405 |
<tr><td>21</td><td>John</td><td>Hood</td><td>33</td><td>$19.99</td><td>25%</td><td>Dec 10, 2002 5:14 AM</td></tr> |
| 406 |
<tr><td>013</td><td>Clark</td><td>Kènt Sr.</td><td>18</td><td>$15.89</td><td>44%</td><td>Jan 12, 2003 11:14 AM</td></tr> |
| 407 |
<tr><td>005</td><td>Bruce</td><td>Almighty Esq</td><td>45</td><td>$153.19</td><td>44%</td><td>Jan 18, 2021 9:12 AM</td></tr> |
| 408 |
<tr><td>10</td><td>Alex</td><td>Dumāss</td><td>13</td><td>$5.29</td><td>4%</td><td>Jan 8, 2012 5:11 PM</td></tr> |
| 409 |
<tr><td>16</td><td>Jim</td><td>Franco</td><td>24</td><td>$14.19</td><td>14%</td><td>Jan 14, 2004 11:23 AM</td></tr> |
| 410 |
<tr><td>166</td><td>Brüce Lee</td><td>Evans</td><td>22</td><td>$13.19</td><td>11%</td><td>Jan 18, 2007 9:12 AM</td></tr> |
| 411 |
<tr><td>100</td><td>Brenda Dexter</td><td>McMasters</td><td>18</td><td>$55.20</td><td>15%</td><td>Feb 12, 2010 7:23 PM</td></tr> |
| 412 |
<tr><td>55</td><td>Dennís</td><td>Bronson</td><td>65</td><td>$123.00</td><td>32%</td><td>Jan 20, 2001 1:12 PM</td></tr> |
| 413 |
<tr><td>9</td><td>Martha</td><td>delFuego</td><td>25</td><td>$22.09</td><td>17%</td><td>Jun 11, 2011 10:55 AM</td></tr> |
| 414 |
</tbody> |
| 415 |
</table> |
| 416 |
|
| 417 |
<h1>Demo: Without the Filter Widget</h1> |
| 418 |
<br> |
| 419 |
Search/Highlight all columns: <input id="table2-search" type="search"> |
| 420 |
<button class="table2 reset2" type="button">Reset</button> |
| 421 |
<button class="table2" type="button">13</button> |
| 422 |
<button class="table2 bad" type="button" title="See "Notes" on why the "005 Bruce Almighty" row isn't highlighted">~ee</button> |
| 423 |
<button class="table2" type="button">br?n</button> |
| 424 |
<button class="table2" type="button">br*n</button> |
| 425 |
<button class="table2" type="button">aaron && 2</button> |
| 426 |
<button class="table2" type="button">aaron|bruce</button> |
| 427 |
<button class="table2 sens tooltip" type="button" title="Case Sensitive Mark" data-filter-column="all" data-mark-case="true">aaron|Bruce</button> |
| 428 |
|
| 429 |
<table id="table2" class="tablesorter"> |
| 430 |
<thead> |
| 431 |
<tr> |
| 432 |
<th>Rank</th> |
| 433 |
<th class="filter-match">First Name</th> |
| 434 |
<th>Last Name</th> |
| 435 |
<th class="mark-ignore" title="no highlighting">Age</th> |
| 436 |
<th>Total</th> |
| 437 |
<th>Discount</th> |
| 438 |
<th>Date</th> |
| 439 |
</tr> |
| 440 |
</thead> |
| 441 |
<tbody> |
| 442 |
<tr><td>1</td><td>Philip Aaron Wong</td><td>Johnson Sr Esq</td><td>25</td><td>$5.95</td><td>22%</td><td>Jun 26, 2004 7:22 AM</td></tr> |
| 443 |
<tr><td>11</td><td>Aáron</td><td>Hibert</td><td>12</td><td>$2.99</td><td>5%</td><td>Aug 21, 2009 12:21 PM</td></tr> |
| 444 |
<tr><td>12</td><td>Brandon Clark</td><td>Henry Jr</td><td>51</td><td>$42.29</td><td>18%</td><td>Oct 13, 2000 1:15 PM</td></tr> |
| 445 |
<tr><td>111</td><td>Peter</td><td>Párker</td><td>28</td><td>$9.99</td><td>20%</td><td>Jul 6, 2006 8:14 AM</td></tr> |
| 446 |
<tr><td>21</td><td>John</td><td>Hood</td><td>33</td><td>$19.99</td><td>25%</td><td>Dec 10, 2002 5:14 AM</td></tr> |
| 447 |
<tr><td>013</td><td>Clark</td><td>Kènt Sr.</td><td>18</td><td>$15.89</td><td>44%</td><td>Jan 12, 2003 11:14 AM</td></tr> |
| 448 |
<tr><td>005</td><td>Bruce</td><td>Almighty Esq</td><td>45</td><td>$153.19</td><td>44%</td><td>Jan 18, 2021 9:12 AM</td></tr> |
| 449 |
<tr><td>10</td><td>Alex</td><td>Dumāss</td><td>13</td><td>$5.29</td><td>4%</td><td>Jan 8, 2012 5:11 PM</td></tr> |
| 450 |
<tr><td>16</td><td>Jim</td><td>Franco</td><td>24</td><td>$14.19</td><td>14%</td><td>Jan 14, 2004 11:23 AM</td></tr> |
| 451 |
<tr><td>166</td><td>Brüce Lee</td><td>Evans</td><td>22</td><td>$13.19</td><td>11%</td><td>Jan 18, 2007 9:12 AM</td></tr> |
| 452 |
<tr><td>100</td><td>Brenda Dexter</td><td>McMasters</td><td>18</td><td>$55.20</td><td>15%</td><td>Feb 12, 2010 7:23 PM</td></tr> |
| 453 |
<tr><td>55</td><td>Dennís</td><td>Bronson</td><td>65</td><td>$123.00</td><td>32%</td><td>Jan 20, 2001 1:12 PM</td></tr> |
| 454 |
<tr><td>9</td><td>Martha</td><td>delFuego</td><td>25</td><td>$22.09</td><td>17%</td><td>Jun 11, 2011 10:55 AM</td></tr> |
| 455 |
</tbody> |
| 456 |
</table> |
| 457 |
|
| 458 |
<h1>Page Header</h1> |
| 459 |
<div> |
| 460 |
<pre class="prettyprint lang-html"><!-- blue theme stylesheet --> |
| 461 |
<link rel="stylesheet" href="css/theme.blue.css"> |
| 462 |
<!-- tablesorter plugin --> |
| 463 |
<script src="js/jquery-latest.min.js"></script> |
| 464 |
<script src="js/jquery.tablesorter.js"></script> |
| 465 |
<script src="js/jquery.tablesorter.widgets.js"></script> |
| 466 |
|
| 467 |
<!-- jquery.mark.js & tablesorter mark widget loaded after the plugin --> |
| 468 |
<script src="js/jquery.mark.js"></script> |
| 469 |
<script src="js/widget-mark.js"></script></pre> |
| 470 |
</div> |
| 471 |
|
| 472 |
<h1>CSS</h1> |
| 473 |
<div id="css"> |
| 474 |
<pre class="prettyprint lang-css"></pre> |
| 475 |
</div> |
| 476 |
|
| 477 |
<h1>Javascript</h1> |
| 478 |
<div id="javascript"> |
| 479 |
<pre class="prettyprint lang-javascript"></pre> |
| 480 |
</div> |
| 481 |
|
| 482 |
</div> |
| 483 |
|
| 484 |
</body> |
| 485 |
</html> |