Note: This version uses <input type="range"> only. The colored bars are styled with the code accent-color property.
<input type="range">
accent-color