From 886676df881a831fe4463a12eeed30a3ee480e6c Mon Sep 17 00:00:00 2001 From: Christian Herzog Date: Sat, 11 Jan 2020 17:26:29 +0100 Subject: [PATCH] show jack status --- components/wifi-manager/code.js | 6 ++++++ components/wifi-manager/index.html | 6 ++++++ components/wifi-manager/style.css | 5 +++++ 3 files changed, 17 insertions(+) diff --git a/components/wifi-manager/code.js b/components/wifi-manager/code.js index 971c3bd7..70dd7f1f 100644 --- a/components/wifi-manager/code.js +++ b/components/wifi-manager/code.js @@ -724,6 +724,12 @@ function checkStatus(){ layer.setAttribute("display","inline"); } } + if (data.hasOwnProperty('Jack')) { + var jack = data['Jack']; + if (jack == '1') { + o_jack.setAttribute("display","inline"); + } + } blockAjax = false; }) .fail(function(xhr, ajaxOptions, thrownError) { diff --git a/components/wifi-manager/index.html b/components/wifi-manager/index.html index fe1b6791..cd0d01d5 100644 --- a/components/wifi-manager/index.html +++ b/components/wifi-manager/index.html @@ -25,6 +25,12 @@
+ + + + + + diff --git a/components/wifi-manager/style.css b/components/wifi-manager/style.css index c279cda9..55921866 100644 --- a/components/wifi-manager/style.css +++ b/components/wifi-manager/style.css @@ -322,6 +322,11 @@ svg#output { padding-right: 4px; } +svg#jack { + fill: #ddd; + padding-right: 4px; +} + ul#navbar { border-bottom: 0px; }