mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-11 19:00:00 +01:00
Added slider for Brightness and Blur modules (#428)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user