From f21b4339a81e83eaaa36175948607299a98a8400 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Wed, 12 Nov 2014 20:19:38 +0100 Subject: [PATCH] Add the short score to the document title. --- www/js/remoteglot.js | 4 ++++ 1 file changed, 4 insertions(+) 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. -- 2.39.2