From d5d4d6209259773124186d92d78877ce431fc680 Mon Sep 17 00:00:00 2001 From: Christian Herzog Date: Thu, 26 Sep 2019 18:46:13 +0200 Subject: [PATCH] autoexec is now part of audio tab --- components/wifi-manager/code.js | 10 +++++++++- components/wifi-manager/index.html | 21 ++++++++------------- components/wifi-manager/style.css | 5 +++++ 3 files changed, 22 insertions(+), 14 deletions(-) diff --git a/components/wifi-manager/code.js b/components/wifi-manager/code.js index 098a02f0..447834b4 100644 --- a/components/wifi-manager/code.js +++ b/components/wifi-manager/code.js @@ -188,6 +188,14 @@ $(document).ready(function(){ data: { 'timestamp': Date.now() } }); console.log('sent config JSON with headers:', autoexec); + console.log('now triggering reboot'); + $.ajax({ + url: '/reboot.json', + dataType: 'json', + method: 'POST', + cache: false, + data: { 'timestamp': Date.now()} + }); }); $("#save-autoexec1").on("click", function() { @@ -265,7 +273,6 @@ $(document).ready(function(){ }); var [ver, idf, cfg, branch] = release.name.split('#'); var body = release.body.replace(/\\n/ig, "
").replace(/\'/ig, "\""); - console.log(body); $("#releaseTable").append( ""+ ""+ver+""+ @@ -289,6 +296,7 @@ $(document).ready(function(){ //start timers startCheckStatusInterval(); startRefreshAPInterval(); + $('[data-toggle="tooltip"]').tooltip({ html: true, placement : 'right', diff --git a/components/wifi-manager/index.html b/components/wifi-manager/index.html index d2896b99..18ab0b72 100644 --- a/components/wifi-manager/index.html +++ b/components/wifi-manager/index.html @@ -28,9 +28,6 @@ - @@ -148,15 +145,6 @@ -
-

Run squeezelite automatically at boot

- -
- - -
-
-

Audio output

@@ -198,6 +186,13 @@
+ +

Start Squeezelite

+
+ + +
+
@@ -207,7 +202,7 @@

Check for firmware upgrade

- +
diff --git a/components/wifi-manager/style.css b/components/wifi-manager/style.css index 41280d2b..00ce8ccc 100644 --- a/components/wifi-manager/style.css +++ b/components/wifi-manager/style.css @@ -233,6 +233,7 @@ input[type='text'], input[type='password'], textarea { width: 3.5rem; pointer-events: all; border-radius: 1rem; + background-color: #f00; } .custom-switch .custom-control-label::after { @@ -252,6 +253,10 @@ input[type='text'], input[type='password'], textarea { } } +.custom-switch .custom-control-input:checked ~ .custom-control-label::before { + background-color: #0f0; +} + .custom-switch .custom-control-input:checked ~ .custom-control-label::after { background-color: #fff; -webkit-transform: translateX(1.5rem); //translateX(0.75rem);