Moved hardcoded values to config file

This commit is contained in:
2025-10-23 00:56:56 +01:00
parent 04bf1d358f
commit 187ac702bf
3 changed files with 5 additions and 5 deletions

View File

@@ -60,9 +60,9 @@ document.addEventListener('page-loaded', e => {
}
// Color thresholds
if (numVal >= 85) {
if (numVal >= CONFIG.home_chart_color_threshold_high) {
elements[key].className = 'high';
} else if (numVal >= 75) {
} else if (numVal >= CONFIG.home_chart_color_threshold_medium) {
elements[key].className = 'medium';
} else {
elements[key].className = 'low';