css: refactor timeslider

- simplify template
- use flexboxes
- simplify javascript code
- remove some obsolete code adjusting a background-position when using steppers buttons
- add comments and remove old code
This commit is contained in:
Sebastian Castro 2020-04-03 16:11:01 +02:00 committed by muxator
parent 41d67b9fa3
commit f3fcbf2653
7 changed files with 296 additions and 560 deletions

View file

@ -125,7 +125,7 @@ function loadBroadcastJS(socket, sendSocketMsg, fireWhenAllScriptsAreLoaded, Bro
}
else
{
$("#padcontent").prepend(newDivs[i]);
$("#innerdocbody").prepend(newDivs[i]);
}
startDiv = newDivs[i];
}
@ -548,12 +548,12 @@ function loadBroadcastJS(socket, sendSocketMsg, fireWhenAllScriptsAreLoaded, Bro
{
// set up the currentDivs and DOM
padContents.currentDivs = [];
$("#padcontent").html("");
$("#innerdocbody").html("");
for (var i = 0; i < padContents.currentLines.length; i++)
{
var div = padContents.lineToElement(padContents.currentLines[i], padContents.alines[i]);
padContents.currentDivs.push(div);
$("#padcontent").append(div);
$("#innerdocbody").append(div);
}
debugLog(padContents.currentDivs);
});