From b268d2e8b07533794b1f4c38e9a0417e9f4ac2a7 Mon Sep 17 00:00:00 2001 From: Christian Herzog Date: Tue, 31 Dec 2019 18:52:57 +0100 Subject: [PATCH] show current output --- components/wifi-manager/code.js | 9 +++++++++ components/wifi-manager/index.html | 26 +++++++++++++++++++++----- components/wifi-manager/style.css | 5 +++++ 3 files changed, 35 insertions(+), 5 deletions(-) diff --git a/components/wifi-manager/code.js b/components/wifi-manager/code.js index f18cb91f..971c3bd7 100644 --- a/components/wifi-manager/code.js +++ b/components/wifi-manager/code.js @@ -746,6 +746,15 @@ function getConfig() { } } else if (key == 'autoexec1') { $("textarea#autoexec1").val(data[key].value); + var re = / -o "?(\S+)\b/g; + var m = re.exec(data[key].value); + if (m[1] =='I2S') { + o_i2s.setAttribute("display","inline"); + } else if (m[1] =='SPDIF') { + o_spdif.setAttribute("display","inline"); + } else if (m[1] =='BT') { + o_bt.setAttribute("display","inline"); + } } else if (key == 'host_name') { $("input#dhcp-name1").val(data[key].value); $("input#dhcp-name2").val(data[key].value); diff --git a/components/wifi-manager/index.html b/components/wifi-manager/index.html index 96858653..fe1b6791 100644 --- a/components/wifi-manager/index.html +++ b/components/wifi-manager/index.html @@ -25,21 +25,37 @@
+ + + + + + + + + + + + + + + + - + - + - + - + - +
diff --git a/components/wifi-manager/style.css b/components/wifi-manager/style.css index 9e6a5d73..c279cda9 100644 --- a/components/wifi-manager/style.css +++ b/components/wifi-manager/style.css @@ -317,6 +317,11 @@ svg#battery { fill: #ddd; } +svg#output { + fill: #ddd; + padding-right: 4px; +} + ul#navbar { border-bottom: 0px; }