Reduce auto-refresh countdown from 10s to 3s
Updated the `HealthCheckHtmlGenerator` class to change the HTML auto-refresh countdown display from 10 seconds to 3 seconds. Adjusted the `countdown` variable in `health-ui.js` to initialize with 3 seconds, ensuring consistency between the frontend logic and the displayed countdown timer.
This commit is contained in:
@@ -253,7 +253,7 @@ public static class HealthCheckHtmlGenerator
|
||||
sb.AppendLine(@"
|
||||
<div class=""refresh-info"">");
|
||||
sb.AppendLine();
|
||||
sb.Append(" <span class=\"spinner\"></span> Auto-refresh in <strong><span id=\"countdown\">10</span>s</strong>");
|
||||
sb.Append(" <span class=\"spinner\"></span> Auto-refresh in <strong><span id=\"countdown\">3</span>s</strong>");
|
||||
sb.AppendLine();
|
||||
sb.AppendLine(@" </div>");
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
let countdown = 10;
|
||||
let countdown = 3;
|
||||
|
||||
function updateCountdown() {
|
||||
document.getElementById('countdown').innerText = countdown;
|
||||
|
||||
Reference in New Issue
Block a user