diff --git a/js/script.js b/js/script.js index 9982e53..80fb73a 100755 --- a/js/script.js +++ b/js/script.js @@ -1,5 +1,9 @@ -$(function() { +(function($) { - + $('li:last-child,td:last-child,tr:last-child,th:last-child').addClass('last'); + $('td:nth-child(odd),th:nth-child(odd),tr:nth-child(odd)').addClass('odd'); + $('td:nth-child(even),th:nth-child(even),tr:nth-child(even)').addClass('even'); -}); \ No newline at end of file + // + +})(jQuery);