From 35f1467747f3aee73b6d87ab1200eb1e00ad2ef1 Mon Sep 17 00:00:00 2001 From: Alexander Danilov Date: Tue, 27 Nov 2018 22:31:59 +0300 Subject: [PATCH] Show total team scores together with checkpoints overview by @VBelozyorov https://github.com/iitc-project/ingress-intel-total-conversion/pull/1003 #2 --- code/region_scoreboard.js | 6 ++++++ style.css | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/code/region_scoreboard.js b/code/region_scoreboard.js index 90e566077..9e8c7fe94 100755 --- a/code/region_scoreboard.js +++ b/code/region_scoreboard.js @@ -130,10 +130,16 @@ function regionScoreboardScoreHistoryTable(result) { var history = result.scoreHistory; var table = ''; + var sum = [0, 0]; + for(var i=0; i'; } + table = '
Total: ' + digits(sum[0]) + '' + digits(sum[1]) + '
' + table; + table += '
CheckpointEnlightenedResistance
' + digits(history[i][1]) + '' + digits(history[i][2]) + '
'; return table; } diff --git a/style.css b/style.css index 97422e60c..9a0a49e3b 100644 --- a/style.css +++ b/style.css @@ -1241,6 +1241,10 @@ g.checkpoint:hover circle { padding-left: 10px; } +.scores_total span { + padding: 0 1.5em; +} + .text-overflow-ellipsis { display: inline-block; overflow: hidden;