From 6c153cd376d3b89bb2db0cbf98d4f6f22d7996fa Mon Sep 17 00:00:00 2001 From: AngryApostrophe <89547888+AngryApostrophe@users.noreply.github.com> Date: Wed, 18 Jan 2023 13:59:34 -0800 Subject: [PATCH] Update ota_page.html (#1866) Fixed the firework to match the actual button text. Fixed other random typos. --- sd-card/html/ota_page.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sd-card/html/ota_page.html b/sd-card/html/ota_page.html index 04673e8a..3c69f680 100644 --- a/sd-card/html/ota_page.html +++ b/sd-card/html/ota_page.html @@ -90,13 +90,13 @@ firework.launch('File path on server is not set!', 'danger', 30000); return; } else if (filename.length > 100) { - firework.launch('Filename is to long! Max 100 characters.', 'danger', 30000); + firework.launch('Filename is too long! Max 100 characters.', 'danger', 30000); return; } else if (filename.indexOf(' ') >= 0) { firework.launch('Filename can not have spaces!', 'danger', 30000); return; } else if (filename[filename.length-1] == '/') { - firework.launch('File name not specified after path!', 'danger', 30000); + firework.launch('Filename not specified after path!', 'danger', 30000); return; } else if (fileInput[0].size > MAX_FILE_SIZE) { firework.launch("File size must be less than " + MAX_FILE_SIZE_STR + "!", 'danger', 30000); @@ -112,13 +112,13 @@ ( /(^AI-on-the-edge-device__firmware)[a-z0-9()_\-.]*(\.bin$)/.test(filename)) || ( /[a-z0-9()_\-.]*(\.tfl$)/.test(filename)) || ( /[a-z0-9()_\-.]*(\.tflite$)/.test(filename))) { - firework.launch('Great, the filename matches our expectations. You can now press "Upload and update".', 'success', 5000); + firework.launch('Great, the filename matches our expectations. You can now press "Upload and install".', 'success', 5000); } /* Following filenames are acceptiod but not prefered: * - *.bin * - *.zip */ else if (filename.endsWith(".zip") || filename.endsWith(".bin")) { // Warning but still accepted - firework.launch('The filename does not match the suggested file name pattern, but is nevertheless accepted. You can now press "Upload and install', 'warning', 10000); + firework.launch('The filename does not match the suggested filename pattern, but is nevertheless accepted. You can now press "Upload and install', 'warning', 10000); } /* Any other file name format is not accepted */ else { // invalid