From 9c92bb9214b5a387922e4f53e9d6c2c84e0a9ffd Mon Sep 17 00:00:00 2001 From: Magnus Persson Date: Tue, 5 Apr 2022 08:35:00 +0200 Subject: [PATCH] Update firmware htm --- html/firmware.htm | 10 +++---- html/firmware.min.htm | 69 ++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 72 insertions(+), 7 deletions(-) diff --git a/html/firmware.htm b/html/firmware.htm index d8cff7a..3805890 100644 --- a/html/firmware.htm +++ b/html/firmware.htm @@ -123,7 +123,10 @@ showError("Upload failed"); }, success: function(resp) { - showSuccess("Upload completed, device is restarting. Wait 10 seconds and refresh browser."); + showSuccess("Upload completed, device is restarting. Waiting 10 seconds to refresh browser."); + setTimeout(() => { + window.location = "/"; + }, 10000); } }); }); @@ -138,11 +141,6 @@ $('.progress-bar').css('width', val+'%').attr('aria-valuenow', val).text(val + "%"); } - function completeHandler(event) { - showSuccess("Upload completed, device is restarting."); - setProgress(0); - } - function getStatus() { var url = "/api/status"; //var url = "/test/status.json"; diff --git a/html/firmware.min.htm b/html/firmware.min.htm index 8887857..339fdc0 100644 --- a/html/firmware.min.htm +++ b/html/firmware.min.htm @@ -6,4 +6,71 @@ --->

(C) Copyright 2021-22 Magnus Persson
\ No newline at end of file +-->

(C) Copyright 2021-22 Magnus Persson
\ No newline at end of file