changes hype meter scale to 600 instead of 700
This commit is contained in:
@@ -95,17 +95,17 @@ function updateGauge() {
|
||||
var score = parseInt(gauge.getAttribute('data-score'));
|
||||
|
||||
// Clamp the score value between 0 and 700
|
||||
score = Math.min(700, Math.max(0, score));
|
||||
score = Math.min(600, Math.max(0, score));
|
||||
|
||||
// Calculate the gauge width as a percentage
|
||||
var gaugeWidth = (score / 700) * 100;
|
||||
var gaugeWidth = (score / 600) * 100;
|
||||
|
||||
// Set the width of the gauge
|
||||
gauge.style.width = gaugeWidth + '%';
|
||||
|
||||
if (score <=350) {
|
||||
if (score <=300) {
|
||||
gauge.style.backgroundColor = '#4A90E2'
|
||||
} else if (score <= 560) {
|
||||
} else if (score <= 500) {
|
||||
gauge.style.backgroundColor = '#FF4500'
|
||||
} else {
|
||||
gauge.style.backgroundColor = '#FF0033'
|
||||
|
||||
Reference in New Issue
Block a user