Progressbar added
This commit is contained in:
parent
744ed0a1d6
commit
4ef7e30cfc
10
Klausur.html
10
Klausur.html
|
@ -22,6 +22,7 @@
|
||||||
<h1 align="center" id="titleh1">Klausurhelfer</h1>
|
<h1 align="center" id="titleh1">Klausurhelfer</h1>
|
||||||
</div>
|
</div>
|
||||||
<div id="clock_div">
|
<div id="clock_div">
|
||||||
|
<progress style="width: 100vw;height: 3vh; background-color: #fff;" value="0" max="100" id="timebar"> </progress>
|
||||||
<h1 id="clock" class="time" style="text-align: center">...</h1>
|
<h1 id="clock" class="time" style="text-align: center">...</h1>
|
||||||
</div>
|
</div>
|
||||||
<div id="left">
|
<div id="left">
|
||||||
|
@ -286,7 +287,14 @@
|
||||||
/*
|
/*
|
||||||
* "Große"-Uhr aktualisieren
|
* "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:
|
* Hintergrund signalisierung:
|
||||||
|
|
Reference in New Issue