Javascript – how to calculate the fill color between dots in input type="range" when min val is not 0
I am struggling with the calculation that is responsible for the fill color between the 2 dots in the range price-slider. Part of the html for the range slider is: <div class="values"> <span id="range1">0</span> <span> ‐ </span> <span id="range2">100</span> </div>…