mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-19 14:25:13 +03:00
visual notify for open/close serial port error
This commit is contained in:
parent
4fcd47b7e3
commit
e532edc748
4 changed files with 17 additions and 1 deletions
10
js/main.js
10
js/main.js
|
@ -82,4 +82,12 @@ $(document).ready(function() {
|
|||
});
|
||||
|
||||
tab_initialize_default();
|
||||
});
|
||||
});
|
||||
|
||||
function notify(message, color) {
|
||||
$('span.notify').html('<span style="color: ' + color + '">' + message + '</span>');+
|
||||
$('span.notify span').fadeOut(5000, function() {
|
||||
$(this).remove();
|
||||
});
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue