mirror of
https://github.com/wled/WLED.git
synced 2025-07-24 03:06:36 +00:00
enable sliders with a different max value (#1156)
* enable sliders with a different max value * Only change in index.htm for now Co-authored-by: cschwinne <dev.aircoookie@gmail.com>
This commit is contained in:
parent
2594cb23c4
commit
0028c3c640
@ -1432,7 +1432,8 @@ function populateSegments(s)
|
||||
function updateTrail(e, slidercol)
|
||||
{
|
||||
if (e==null) return;
|
||||
var progress = e.value *100 /255;
|
||||
var max = e.hasAttribute('max') ? e.attributes['max'].value : 255;
|
||||
var progress = e.value * 100 / max;
|
||||
progress = parseInt(progress);
|
||||
var scol;
|
||||
switch (slidercol) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user