From 47f654a898ffcc320f4bd58acffadddf8d560c83 Mon Sep 17 00:00:00 2001 From: Torsten Stauder Date: Tue, 16 Feb 2021 21:38:17 +0100 Subject: [PATCH] Processed HTMLmanagement.h --- src/HTMLmanagement.h | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/src/HTMLmanagement.h b/src/HTMLmanagement.h index 1553ec6..12b663b 100644 --- a/src/HTMLmanagement.h +++ b/src/HTMLmanagement.h @@ -120,6 +120,8 @@ static const char management_HTML[] PROGMEM = "\ -webkit-appearance: none;\ -moz-appearance: none;\ appearance: none;\ + background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAAAAADhgtq/AAAACXBIWXMAAC4jAAAuIwF4pT92AAAAR0lEQVR4nGP5z4ADsOCSGOoyC+NRabjMQqjQQrgUTCYeIrQQyEI3DSyFJIHkApAUkgSy21B0oLo6fiGSBKp/kCUGU4hSRQYAYg0Rw+gGlUQAAAAASUVORK5CYII=') no-repeat;\ + background-position: center right;\ }\ \ \ @@ -191,15 +193,13 @@ static const char management_HTML[] PROGMEM = "\ \ \ \ -\ \
\
\ -
\ -\ -
\ +
\ \ -
\ + \ +
\ \ \ \ @@ -227,6 +227,7 @@ static const char management_HTML[] PROGMEM = "\ \ \ \ + \ \ \ \ @@ -505,6 +507,10 @@ static const char management_HTML[] PROGMEM = "\ $('#explorerTree').on('select_node.jstree', function (e, data) {\ \ $('input[name=fileOrUrl]').val(data.node.data.path);\ + \ + if (ActiveSubTab !== 'rfid-music-tab') {\ + $('#SubTab.nav-tabs a[id=\"rfid-music-tab\"]').tab('show');\ + }\ \ if (data.node.type == \"folder\") {\ $('.option-folder').show();\ @@ -626,8 +632,9 @@ static const char management_HTML[] PROGMEM = "\ if (evt.lengthComputable) {\ var percentComplete = evt.loaded / evt.total;\ percentComplete = parseInt(percentComplete * 100);\ - console.log(percentComplete);\ - $(\"#explorerUploadProgress\").css(\"width\", percentComplete + \"%\").text(percentComplete);\ + console.log(percentComplete);\ + var percent = percentComplete + '%';\ + $(\"#explorerUploadProgress\").css('width', percent).text(percent);\ }\ }, false);\ \