From: Steinar H. Gunderson Date: Wed, 12 Nov 2014 19:19:38 +0000 (+0100) Subject: Add the short score to the document title. X-Git-Url: https://git.sesse.net/?p=remoteglot;a=commitdiff_plain;h=f21b4339a81e83eaaa36175948607299a98a8400;ds=sidebyside Add the short score to the document title. --- diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js index c183493..9d83e55 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -600,6 +600,10 @@ var update_board = function(data, num_viewers) { // The score. if (data['score'] !== null) { $("#score").text(data['score']); + var short_score = data['score'].replace(/Score: */, ""); + document.title = '(' + short_score + ') analysis.sesse.net'; + } else { + document.title = 'analysis.sesse.net'; } // The search stats.