aboutsummaryrefslogtreecommitdiff
path: root/src/app/js/settings.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/js/settings.js')
-rw-r--r--src/app/js/settings.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/app/js/settings.js b/src/app/js/settings.js
index 20cd4b6..682aa49 100644
--- a/src/app/js/settings.js
+++ b/src/app/js/settings.js
@@ -1,17 +1,22 @@
+
var Settings = {
toggle: (state) => {
+ let settings_btn = document.getElementById("settings");
+
if (state) {
Settings.load();
options.scrollTo(0, 0);
overlay.classList.add("shown");
options.classList.add("shown");
+ settings_btn.classList.add("shown");
- return
+ return;
} else if (! state) {
if (state != undefined) {
overlay.classList.remove("shown");
options.classList.remove("shown");
- return
+ settings_btn.classList.remove("shown");
+ return;
}
}
@@ -19,6 +24,7 @@ var Settings = {
options.scrollTo(0, 0);
overlay.classList.toggle("shown");
options.classList.toggle("shown");
+ settings_btn.classList.toggle("shown");
},
apply: () => {
settings = {...settings, ...Settings.get()};