]> git.sesse.net Git - remoteglot-book/blobdiff - www/js/book.js
Show totals.
[remoteglot-book] / www / js / book.js
index c54fb94e700d9a8e1338f8c9db38ebada169f20e..0b1e4372264a7afa77d9cae8dbdf0c5bfbf464e2 100644 (file)
@@ -177,6 +177,10 @@ var show_lines = function(data, game) {
                var line = lines[i];
                var tr = document.createElement("tr");
 
+               if (line[0] === undefined || line[0] === null) {
+                       $(tr).addClass("totals");
+               }
+
                for (var j = 0; j < line.length; ++j) {
                        if (line[j] === null) {
                                add_td(tr, "");