1
0
Fork 0
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:
cTn 2013-11-08 18:31:19 +01:00
parent 4fcd47b7e3
commit e532edc748
4 changed files with 17 additions and 1 deletions

View file

@ -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();
});
}