Moved hardcoded values to config file
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user