From f4b77066e5822679aeaa84a18b1784fa997e5cbd Mon Sep 17 00:00:00 2001 From: Mike Francis Date: Mon, 9 Sep 2013 16:12:22 +0100 Subject: [PATCH] Update script.js --- js/script.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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);