Update ota_page.html (#1866)

Fixed the firework to match the actual button text.
Fixed other random typos.
This commit is contained in:
AngryApostrophe
2023-01-18 13:59:34 -08:00
committed by GitHub
parent d99c2ce920
commit 6c153cd376

View File

@@ -90,7 +90,7 @@
firework.launch('File path on server is not set!', 'danger', 30000); firework.launch('File path on server is not set!', 'danger', 30000);
return; return;
} else if (filename.length > 100) { } 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; return;
} else if (filename.indexOf(' ') >= 0) { } else if (filename.indexOf(' ') >= 0) {
firework.launch('Filename can not have spaces!', 'danger', 30000); firework.launch('Filename can not have spaces!', 'danger', 30000);
@@ -112,7 +112,7 @@
( /(^AI-on-the-edge-device__firmware)[a-z0-9()_\-.]*(\.bin$)/.test(filename)) || ( /(^AI-on-the-edge-device__firmware)[a-z0-9()_\-.]*(\.bin$)/.test(filename)) ||
( /[a-z0-9()_\-.]*(\.tfl$)/.test(filename)) || ( /[a-z0-9()_\-.]*(\.tfl$)/.test(filename)) ||
( /[a-z0-9()_\-.]*(\.tflite$)/.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: /* Following filenames are acceptiod but not prefered:
* - *.bin * - *.bin