mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-07 20:17:04 +03:00
color code recovery+sl in status bar
This commit is contained in:
@@ -495,13 +495,17 @@ function checkStatus(){
|
|||||||
$('a[href^="#tab-audio"]').hide();
|
$('a[href^="#tab-audio"]').hide();
|
||||||
$('a[href^="#tab-gpio"]').hide();
|
$('a[href^="#tab-gpio"]').hide();
|
||||||
$('a[href^="#tab-nvs"]').show();
|
$('a[href^="#tab-nvs"]').show();
|
||||||
|
$( "footer.footer" ).removeClass('sl');
|
||||||
|
$( "footer.footer" ).addClass('recovery');
|
||||||
enableStatusTimer = true;
|
enableStatusTimer = true;
|
||||||
} else {
|
} else {
|
||||||
recovery = false;
|
recovery = false;
|
||||||
$("#otadiv").hide();
|
$("#otadiv").hide();
|
||||||
$('a[href^="#tab-audio"]').show();
|
$('a[href^="#tab-audio"]').show();
|
||||||
$('a[href^="#tab-gpio"]').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;
|
enableStatusTimer = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -316,3 +316,10 @@ span#flash-status {
|
|||||||
color: white;
|
color: white;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sl {
|
||||||
|
background-color: #053c1e;
|
||||||
|
}
|
||||||
|
.recovery {
|
||||||
|
background-color: #3c0505;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user