This commit is contained in:
ferricles 2022-01-10 01:22:00 -05:00
parent b58e992f92
commit b6547add2f

View file

@ -674,7 +674,7 @@ function updateArmorPowderSpecials(elem_id) {
//update the slider's graphics
let bg_color = elem_colors[skp_names.indexOf(wynn_elem)];
let pct = Math.round(100 * value / powderSpecialStats[skp_names.indexOf(wynn_elem)].cap);
elem.setAttribute("style.background",`linear-gradient(to right, ${bg_color}, ${bg_color} ${pct}%, #AAAAAA ${pct}%, #AAAAAA ${100 - pct}%)`);
elem.style.background = `linear-gradient(to right, ${bg_color}, ${bg_color} ${pct}%, #AAAAAA ${pct}%, #AAAAAA ${100 - pct}%)`;
}
/* Calculates all build statistics and updates the entire display.