diff --git a/components/wifi-manager/code.js b/components/wifi-manager/code.js index 0ba261d0..6c903dbf 100644 --- a/components/wifi-manager/code.js +++ b/components/wifi-manager/code.js @@ -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(); diff --git a/components/wifi-manager/index.html b/components/wifi-manager/index.html index ecd25c21..0aa9f092 100644 --- a/components/wifi-manager/index.html +++ b/components/wifi-manager/index.html @@ -158,10 +158,14 @@ function heartbeat() } function handleClick(cb) { - if (cb.checked) { - $("#autoexec-command").show(200); - } else { - $("#autoexec-command").hide(200); + console.log(cb); + if (cb.id == 'autoexec-cb') { + if (cb.checked) { + $("#autoexec-command").show(200); + } else { + $("#autoexec-command").hide(200); + } + } else if (cb.id == 'autoexec-cb') { } } @@ -175,7 +179,7 @@ function handleClick(cb) {

-
@@ -184,7 +188,7 @@ function handleClick(cb) {

Audio output

- + @@ -207,14 +211,26 @@ function handleClick(cb) {
-

Command to run

+

Squeezelite command to run

- + +
+ +
+

System management

+

Check for firmware upgrade

+
+ +

Currently running: 0.1 - latest available version: 0.2

+
+

Reboot to recovery system to perform firmware upgrade

+
+
diff --git a/components/wifi-manager/style.css b/components/wifi-manager/style.css index 260fa7bd..39d1414f 100644 --- a/components/wifi-manager/style.css +++ b/components/wifi-manager/style.css @@ -22,7 +22,6 @@ button:focus { outline: none; } input[type="button"] { - width: 100px; padding: 5px; text-align: center; display: block; @@ -376,3 +375,7 @@ textarea#autoexec1 { background: #5a9900; box-shadow: none; } + +#otadiv { + display: none; +}