From 13334026a10d038421a7bb397b1e3bd51fa62093 Mon Sep 17 00:00:00 2001 From: pi-rho Date: Thu, 16 Nov 2017 13:41:20 -0700 Subject: [PATCH] fix category scale for manually awarded points --- www/scoreboard-llnl.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/www/scoreboard-llnl.js b/www/scoreboard-llnl.js index 7be4aae..0e294ed 100644 --- a/www/scoreboard-llnl.js +++ b/www/scoreboard-llnl.js @@ -499,13 +499,13 @@ function scoreboard(element, continuous, mode, interval) { var row = document.createElement("div"); var ncat = 0; for (var category in allQuestions) { - var catHigh = allQuestions[category]; + var catHigh = highscore[category]; var catTeam = team[category] || 0; - var catPct = (0.0 + catTeam) / (0.0 + catHigh["total"]); + var catPct = (0.0 + catTeam) / (0.0 + catHigh); var width = maxWidth * catPct; var bar = document.createElement("span"); - var numLeft = catHigh["total"] - catTeam; + var numLeft = catHigh - catTeam; //bar.classList.add("cat" + ncat); bar.style.backgroundColor = colorScale[ncat % 20];