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:
Andreas Perhab 2020-09-15 21:59:12 +02:00 committed by GitHub
parent 2594cb23c4
commit 0028c3c640
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {