Added slider for Brightness and Blur modules (#428)

This commit is contained in:
aashna27
2018-10-23 02:31:12 +05:30
committed by Jeffrey Warren
parent c762f1ad5d
commit 11b65604cd
5 changed files with 7372 additions and 7340 deletions

View File

@@ -75,8 +75,20 @@ function DefaultHtmlStepUi(_sequencer, options) {
'" value="' +
paramVal +
'" placeholder ="' +
(inputDesc.placeholder || "") +
'">';
(inputDesc.placeholder || "");
if(inputDesc.type.toLowerCase() == "range")
{
html+=
'"min="'+
inputDesc.min +
'"max="'+
inputDesc.max +
'"step="' +
inputDesc.step + '">'+'<span>'+paramVal+'</span>';
}
else html+= '">';
}
var div = document.createElement("div");
@@ -133,6 +145,12 @@ function DefaultHtmlStepUi(_sequencer, options) {
);
stepsEl.appendChild(step.ui);
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) {