in index.js [249:263]
function grayOutWhenZero(event) {
if(parseInt(event.target.value, 10) === 0) {
document.querySelector('.weight-group.' + event.target.id).classList.add('zero');
if(event.target.id === 'latency') {
document.getElementById('locations-group').classList.add('zero');
document.getElementById('locations').disabled = true;
}
} else {
document.querySelector('.weight-group.' + event.target.id).classList.remove('zero');
if(event.target.id === 'latency') {
document.getElementById('locations-group').classList.remove('zero');
document.getElementById('locations').disabled = false;
}
}
}