From ab4edb3d8e50ee9b9b1f04f78799e4aefb9f41a5 Mon Sep 17 00:00:00 2001 From: grey Date: Sat, 19 Mar 2022 18:28:56 +0100 Subject: [PATCH] some more touchups + fixes --- static/css/mainStyle.css | 6 +++ static/js/interface.js | 74 ++++++++++++++++---------------- static/js/script.js | 81 +++++++++++++++--------------------- templates/newAdminPanel.html | 17 +++++++- 4 files changed, 91 insertions(+), 87 deletions(-) diff --git a/static/css/mainStyle.css b/static/css/mainStyle.css index 7f7291a..47a3d40 100644 --- a/static/css/mainStyle.css +++ b/static/css/mainStyle.css @@ -16,6 +16,12 @@ body { overflow-x: auto; overflow-y: hidden; } + + .full .clr-field button { + width: 100%; + height: 100%; + border-radius: 5px; + } .b-example-divider { flex-shrink: 0; diff --git a/static/js/interface.js b/static/js/interface.js index 2419f23..9e61b55 100644 --- a/static/js/interface.js +++ b/static/js/interface.js @@ -51,11 +51,10 @@ $(document).ready(function () { $("#colors1").append( '' + '' + - '' + + '' + '' + '' ); - $('.colorPicky').colorpicker(); }); @@ -63,42 +62,23 @@ $(document).ready(function () { $("#colors2").append( '' + '' + - '' + + '' + '' + '' ); - $('.colorPicky').colorpicker(); }); - $("#copyColors").click(function CopyTextColors(event) { - event.target.innerHTML = '
' - saveOption("/api/v1/set/text/colors?copy=true", function finishCopyColors(event) { - setTimeout(function () { - document.getElementById("copyColors").innerHTML = "Copy from progressbar colors" - }, 500) - - }) - }); - - - $("input[name='btnradio2']").click(function (event) { - console.debug() - const darkid = parseInt(event.currentTarget.id.replace("Mbtnradio", "")) - if (darkid == 1) { - DarkReader.disable() - } else if (darkid == 2) { - DarkReader.enable() - } else { - DarkReader.auto() - } - Cookies.set("interfaceColor", darkid) - }); + // Restore settings saveOption("/api/v1/data", function (event, xmlHttp) { const tableEntry = ' #VALUE#\ - \ + \ +
\ + \ +
\ + \ \ +
+
+

Full size thumbnail

+
+ +
+


Raw server reponse

@@ -436,7 +443,13 @@ +