diff --git a/Klausur.html b/Klausur.html index 3237f53..455268a 100644 --- a/Klausur.html +++ b/Klausur.html @@ -22,6 +22,7 @@

Klausurhelfer

+  

...

@@ -286,7 +287,14 @@ /* * "Große"-Uhr aktualisieren */ - document.getElementById("clock").innerHTML = 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) { + var dur = endTime-startTime; + var rem = endTime-now; + var per = 100-(rem/dur*100); + document.getElementById("timebar").value=per; + document.getElementById("timebar").max=100; + } /* * Hintergrund signalisierung: