From f059d4228b0e162cb71d3540af862d7c02312e89 Mon Sep 17 00:00:00 2001 From: Josh Wright Date: Thu, 22 Feb 2024 23:04:38 -0500 Subject: [PATCH] fix: raise gauge ceiling to 700 --- app/static/script.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/static/script.js b/app/static/script.js index 1811f48..d683d3d 100644 --- a/app/static/script.js +++ b/app/static/script.js @@ -95,17 +95,17 @@ function updateGauge() { var score = parseInt(gauge.getAttribute('data-score')); // Clamp the score value between 0 and 700 - score = Math.min(650, Math.max(0, score)); + score = Math.min(700, Math.max(0, score)); // Calculate the gauge width as a percentage - var gaugeWidth = (score / 650) * 100; + var gaugeWidth = (score / 700) * 100; // Set the width of the gauge gauge.style.width = gaugeWidth + '%'; if (score <=300) { gauge.style.backgroundColor = '#4A90E2' - } else if (score <= 500) { + } else if (score <= 550) { gauge.style.backgroundColor = '#FF4500' } else { gauge.style.backgroundColor = '#FF0033'