color code recovery+sl in status bar

This commit is contained in:
Christian Herzog
2019-10-01 19:07:45 +02:00
parent f3dd6adaf3
commit 1c239e2b9f
2 changed files with 12 additions and 1 deletions

View File

@@ -495,13 +495,17 @@ function checkStatus(){
$('a[href^="#tab-audio"]').hide();
$('a[href^="#tab-gpio"]').hide();
$('a[href^="#tab-nvs"]').show();
$( "footer.footer" ).removeClass('sl');
$( "footer.footer" ).addClass('recovery');
enableStatusTimer = true;
} else {
recovery = false;
$("#otadiv").hide();
$('a[href^="#tab-audio"]').show();
$('a[href^="#tab-gpio"]').show();
//$('a[href^="#tab-nvs"]').hide();
//$('a[href^="#tab-nvs"]').hide(); //TODO
$( "footer.footer" ).removeClass('recovery');
$( "footer.footer" ).addClass('sl');
enableStatusTimer = false;
}
}

View File

@@ -316,3 +316,10 @@ span#flash-status {
color: white;
text-align: center;
}
.sl {
background-color: #053c1e;
}
.recovery {
background-color: #3c0505;
}