From 0aee97ccca4756a39d7f77656259612ff94483f7 Mon Sep 17 00:00:00 2001 From: joe Date: Sun, 30 Jul 2023 11:47:17 +0900 Subject: [PATCH] Added Option to toggle/Hide settings bar. --- public/index.html | 4 ++++ public/script.js | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/public/index.html b/public/index.html index d35758337..bd03bf63f 100644 --- a/public/index.html +++ b/public/index.html @@ -3751,6 +3751,10 @@ Regenerate + + + Settings + diff --git a/public/script.js b/public/script.js index 3162a67fd..086725ca1 100644 --- a/public/script.js +++ b/public/script.js @@ -7715,6 +7715,22 @@ $(document).ready(function () { else if (id == "option_delete_mes") { setTimeout(openMessageDelete, animation_duration); } + + else if (id == "option_settings") { + //var checkBox = document.getElementById("waifuMode"); + var topBar = document.getElementById("top-bar"); + var topSettingsHolder = document.getElementById("top-settings-holder"); + + //if (checkBox.checked) { + if (topBar.style.display === "none") { + topBar.style.display = ""; // or "inline-block" if that's the original display value + topSettingsHolder.style.display = ""; // or "inline-block" if that's the original display value + } else { + topBar.style.display = "none"; + topSettingsHolder.style.display = "none"; + } + //} + } hideMenu(); });