if (remainingMs > 0) {
var hr = document.getElementById("countdown");
var width = (remainingMs / (totalMs - 5000)) * 100.0;
- if (width > 100) {
- width = 100;
+ if (width <= 100) {
+ hr.style.visibility = "visible";
+ hr.style.width = " ".concat(width, "%%");
+ hr.style.backgroundColor = "maroon";
}
- hr.style.width = " ".concat(width, "%%");
- hr.style.backgroundColor = "maroon";
} else {
// Reload unconditionally after 22 sec.
window.location.reload();
</P>
<HR id="countdown" STYLE="width:0px;
text-align:left;
+ margin:0;
border:none;
- margin-top:0;
- margin-left:0;
- margin-bottom:2px;
+ border-width:0;
height:5px;
+ visibility:hidden;
background-color:#ffffff;">
</TD>
</TR>