12345678910111213141516171819202122232425 |
- $(document).ready(function() {
- 'use strict';
- $('#selected-plays > li').addClass('horizontal');
- $('#selected-plays li:not(.horizontal)').addClass('sub-level');
- $('a[href^="mailto:"]').addClass('mailto');
- $('a[href$=".pdf"]').addClass('pdflink');
- $('a[href^="http"][href*="henry"]').addClass('henrylink');
- $('tr:nth-child(odd)').addClass('alt');
- $('a').filter(function() {
- return this.hostname && this.hostname != location.hostname;
- }).addClass('external');
- $('td:contains(Henry)') // Find every cell containing "Henry"
- .parent() // Select its parent
- .find('td:eq(1)') // Find the 2nd descendant cell
- .addClass('highlight') // Add the "highlight" class
- .end() // Return to the parent of the cell containing "Henry"
- .find('td:eq(2)') // Find the 3rd descendant cell
- .addClass('highlight'); // Add the "highlight" class
- });
|