mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-09 21:17:18 +03:00
some cleanup
This commit is contained in:
@@ -800,21 +800,23 @@ function checkStatus(){
|
|||||||
$("#otadiv").show();
|
$("#otadiv").show();
|
||||||
$('a[href^="#tab-audio"]').hide();
|
$('a[href^="#tab-audio"]').hide();
|
||||||
$('a[href^="#tab-gpio"]').show();
|
$('a[href^="#tab-gpio"]').show();
|
||||||
|
$('#uploaddiv').show();
|
||||||
$("footer.footer").removeClass('sl');
|
$("footer.footer").removeClass('sl');
|
||||||
$("footer.footer").addClass('recovery');
|
$("footer.footer").addClass('recovery');
|
||||||
$("#boot-button").html('Reboot');
|
$("#boot-button").html('Reboot');
|
||||||
$("#boot-form").attr('action', '/reboot_ota.json');
|
$("#boot-form").attr('action', '/reboot_ota.json');
|
||||||
|
|
||||||
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"]').hide();
|
$('a[href^="#tab-gpio"]').hide();
|
||||||
|
$('#uploaddiv').hide();
|
||||||
$("footer.footer").removeClass('recovery');
|
$("footer.footer").removeClass('recovery');
|
||||||
$("footer.footer").addClass('sl');
|
$("footer.footer").addClass('sl');
|
||||||
$("#boot-button").html('Recovery');
|
$("#boot-button").html('Recovery');
|
||||||
$("#boot-form").attr('action', '/recovery.json');
|
$("#boot-form").attr('action', '/recovery.json');
|
||||||
$('#uploaddiv"]').hide();
|
|
||||||
|
|
||||||
enableStatusTimer = false;
|
enableStatusTimer = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
<script src="/res/test/bootstrap.min.js"></script> <!-- TODO delete -->
|
<script src="/res/test/bootstrap.min.js"></script> <!-- TODO delete -->
|
||||||
|
|
||||||
<script src="/res/code.js"></script>
|
<script src="/res/code.js"></script>
|
||||||
|
<script src="code.js"></script> <!-- TODO delete -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user