mirror of
https://github.com/HendrikRauh/dmx-interface.git
synced 2025-07-06 06:08:22 +00:00
added slider for led brightness
This commit is contained in:
parent
6276b1f74b
commit
4234732631
5 changed files with 65 additions and 7 deletions
|
@ -18,7 +18,7 @@ function parseValue(input) {
|
|||
return null;
|
||||
}
|
||||
|
||||
if (input.type === "number") {
|
||||
if (input.type === "number" || input.type === "range") {
|
||||
const number = Number(input.value);
|
||||
return Number.isNaN(number) ? null : number;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue