fix: change scale to 650 instead of 600
This commit is contained in:
@@ -95,10 +95,10 @@ function updateGauge() {
|
|||||||
var score = parseInt(gauge.getAttribute('data-score'));
|
var score = parseInt(gauge.getAttribute('data-score'));
|
||||||
|
|
||||||
// Clamp the score value between 0 and 700
|
// Clamp the score value between 0 and 700
|
||||||
score = Math.min(600, Math.max(0, score));
|
score = Math.min(650, Math.max(0, score));
|
||||||
|
|
||||||
// Calculate the gauge width as a percentage
|
// Calculate the gauge width as a percentage
|
||||||
var gaugeWidth = (score / 600) * 100;
|
var gaugeWidth = (score / 650) * 100;
|
||||||
|
|
||||||
// Set the width of the gauge
|
// Set the width of the gauge
|
||||||
gauge.style.width = gaugeWidth + '%';
|
gauge.style.width = gaugeWidth + '%';
|
||||||
|
|||||||
Reference in New Issue
Block a user