UI cleanup

This commit is contained in:
Christian Herzog
2019-09-10 16:33:42 +02:00
parent 78f18a672f
commit f33fb6fb45
3 changed files with 39 additions and 9 deletions

View File

@@ -1,3 +1,4 @@
var recovery = 0;
var commandHeader = 'squeezelite -b 500:2000 -d all=info ';
// First, checks if it isn't implemented yet.
@@ -187,6 +188,16 @@ $(document).ready(function(){
selectOutput(this);
});
if (recovery) {
$("#recoverydiv").hide();
$("#otadiv").show();
$("#command_line").hide();
$("#wifi").hide();
} else {
$("#recoverydiv").show();
$("#otadiv").hide();
}
//first time the page loads: attempt get the connection status and start the wifi scan
refreshAP();
startCheckStatusInterval();