# HG changeset patch # User Jeff Hammel <jhammel@mozilla.com> # Date 1343076917 25200 # Node ID b51b0d750086ae8b5c2d5177b114652c66a5064e # Parent 15f17eeb1813bd34702e699a81328c77f833bfd5 color the paint and color cells diff -r 15f17eeb1813 -r b51b0d750086 talosnames/templates/index.html --- a/talosnames/templates/index.html Mon Jul 23 13:47:51 2012 -0700 +++ b/talosnames/templates/index.html Mon Jul 23 13:55:17 2012 -0700 @@ -59,8 +59,20 @@ <script> $(document).ready(function() { +function mark_boolean(selector) { +$(selector).each(function() { +var text = $(this).text(); +if (text == 'True') { +$(this).addClass('true'); +} else if (text == 'False') { +$(this).addClass('false'); +} +}); +} + // color paint/chrome boxes appropriately - +mark_boolean('td.paint'); +mark_boolean('td.chrome'); // add TBPL initials to TBPL names from Config.js $('td.tbpl').each(function() {