diff options
author | 0neGal <mail@0negal.com> | 2023-07-31 14:33:31 +0200 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2023-07-31 14:33:31 +0200 |
commit | c1040516db8ec60b6922c989399f0fc43d8ab18a (patch) | |
tree | 666535b9885f29744abd3eef092f3f8d588a93d0 /src/app/js/settings.js | |
parent | 3a58a8b5c4980a1ac4147adbc0f159c24b41084b (diff) | |
download | Viper-c1040516db8ec60b6922c989399f0fc43d8ab18a.tar.gz Viper-c1040516db8ec60b6922c989399f0fc43d8ab18a.zip |
window buttons are no longer hidden behind popups
Diffstat (limited to 'src/app/js/settings.js')
-rw-r--r-- | src/app/js/settings.js | 10 |
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()}; |