update value below the slider (#565)

* update value below the slider

* changes
This commit is contained in:
Mridul97
2019-01-06 06:47:39 +05:30
committed by Jeffrey Warren
parent 595d66ecd5
commit 4369137336

View File

@@ -183,13 +183,12 @@ function DefaultHtmlStepUi(_sequencer, options) {
else {
$("#load-image").append(step.ui);
}
$('input[type="range"]').on('input', function() {
$(this).next().html($(this).val());
})
}
var inputs = document.querySelectorAll('input[type="range"]')
for (i in inputs)
inputs[i].oninput = function(e) {
e.target.nextSibling.innerHTML = e.target.value;
}
function onDraw(step) {
$(step.ui.querySelector(".load")).show();