Fixed Progressbar starting at startTime, not examStartTime
This commit is contained in:
parent
27464b8e25
commit
0571ded0b5
|
@ -305,7 +305,7 @@
|
||||||
*/
|
*/
|
||||||
document.getElementById("clock").innerHTML = (now.getHours()<10?" ":"")+now.getHours() + ":" + (now.getMinutes()<10?"0":"")+now.getMinutes();
|
document.getElementById("clock").innerHTML = (now.getHours()<10?" ":"")+now.getHours() + ":" + (now.getMinutes()<10?"0":"")+now.getMinutes();
|
||||||
if(endTime!=null) {
|
if(endTime!=null) {
|
||||||
var dur = endTime-startTime;
|
var dur = endTime-examStartTime;
|
||||||
var rem = endTime-now;
|
var rem = endTime-now;
|
||||||
var per = 100-(rem/dur*100);
|
var per = 100-(rem/dur*100);
|
||||||
document.getElementById("timebar").value=per;
|
document.getElementById("timebar").value=per;
|
||||||
|
|
Reference in New Issue