- var width = (remainingMs / totalMs) * 100.0;
- hr.style.width = " ".concat(width, "%%");
- hr.style.backgroundColor = "maroon";
+ var width = (remainingMs / (totalMs - 5000)) * 100.0;
+ if (width <= 100) {
+ hr.style.visibility = "visible";
+ hr.style.width = " ".concat(width, "%%");
+ hr.style.backgroundColor = "maroon";
+ }