X-Git-Url: https://git.sesse.net/?p=remoteglot;a=blobdiff_plain;f=www%2Fjs%2Fremoteglot.js;h=b599ec8f2c50284b16f57b62bc389633920af6b4;hp=bff8e9cd75aac0691bd9c95acbefbc36977a23d6;hb=5736a183e629bedf79f56962a57bf90dd493d967;hpb=85b065a270537148c7135f239d07dcb83020ec4f diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js index bff8e9c..b599ec8 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -7,7 +7,7 @@ * @type {Number} * @const * @private */ -var SCRIPT_VERSION = 2016032000; +var SCRIPT_VERSION = 2016032200; /** * The current backend URL. @@ -48,6 +48,7 @@ var displayed_analysis_data = null; * name: string, * url: string, * id: string, + * score: Object * }>} * @private */ @@ -895,6 +896,10 @@ var update_game_list = function(games) { game_a.appendChild(game_name); game_span.appendChild(game_a); } + + var score = " (" + format_short_score(game['score']) + ")"; + game_span.appendChild(document.createTextNode(score)); + games_div.appendChild(game_span); } }