Serviços

Posso te ajudar?
const rangeInputs = document.querySelector('#valueRange'); const fieldS = document.querySelector("#fieldShowValue"); function calcMonthlyExpense(value){ const calc = (+value * 0.9) * 0.2; return calc; }; function handleInputChange(e) { let target = e.target; const min = target.min; const max = target.max; const val = target.value; const calc = calcMonthlyExpense(val); fieldS.innerHTML = calc.toFixed(2); target.style.backgroundSize = (val - min) * 100 / (max - min) + '% 100%' } rangeInputs.addEventListener('input', handleInputChange)