Botão deslizante

HTML
<div id="motor"> <label> Motor:<br> <input id="slider" type="range" value="0" max="100" step="5" oninput="num.value = this.value" OnChange="verificar()"> <output id="num">0</output><label> %</label> </label> </div>
CSS
#motor{ background-color: #cccccc; width: 250px; padding: 10px 2%; color: black; text-align: left; }
Javascript