Fixed Progressbar starting at startTime, not examStartTime

This commit is contained in:
Felix Homa 2024-02-08 21:24:05 +01:00
parent 27464b8e25
commit 0571ded0b5
Signed by: felix.homa
GPG Key ID: 43610F311720D3DA
1 changed files with 1 additions and 1 deletions

View File

@ -305,7 +305,7 @@
*/
document.getElementById("clock").innerHTML = (now.getHours()<10?"&nbsp;":"")+now.getHours() + ":" + (now.getMinutes()<10?"0":"")+now.getMinutes();
if(endTime!=null) {
var dur = endTime-startTime;
var dur = endTime-examStartTime;
var rem = endTime-now;
var per = 100-(rem/dur*100);
document.getElementById("timebar").value=per;