diff --git a/static/images/nav/save-59.png b/static/images/nav/save-59.png new file mode 100644 index 0000000..40fd3b7 Binary files /dev/null and b/static/images/nav/save-59.png differ diff --git a/static/images/nav/save.svg b/static/images/nav/save.svg new file mode 100644 index 0000000..d45ea58 --- /dev/null +++ b/static/images/nav/save.svg @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + +image/svg+xml + + + + +Openclipart + + +Floppy disk icon +2006-12-26T00:00:00 + +https://openclipart.org/detail/24502/-by--24502 + + +Anonymous + + + + + + + + + + + \ No newline at end of file diff --git a/static/js/settings.js b/static/js/settings.js index bf484bc..9db69e6 100644 --- a/static/js/settings.js +++ b/static/js/settings.js @@ -29,10 +29,27 @@ async function setQl(){ } localStorage.setItem("qlOpt", JSON.stringify(qlSet)) log(`settings.setQl: User settings saved`, "INFO") - hideLoading(); + await hideLoading(); + await showDone(); + await delay(600); + hideDone(); } async function clearQl(){ + showLoading(); localStorage.removeItem("qlOpt") + log(`settings.setQl: User settings reset to default`, "INFO") getQl() + await hideLoading(); + await showDone(); + await delay(600); + hideDone(); +} + +async function showDone() { + document.getElementById("done").style = "opacity: 1"; +} + +async function hideDone() { + document.getElementById("done").style = "opacity: 0"; } \ No newline at end of file diff --git a/static/settings.html b/static/settings.html index 6982828..9dbdece 100644 --- a/static/settings.html +++ b/static/settings.html @@ -23,6 +23,15 @@

Loading

+
+ + + + + +

Done

+
+
diff --git a/static/styles/settings.css b/static/styles/settings.css index fe3cb01..6f27cff 100644 --- a/static/styles/settings.css +++ b/static/styles/settings.css @@ -1,4 +1,26 @@ .small-lookup-box{ max-width: 100px; height: 20px; -} \ No newline at end of file +} + +#done { + opacity: 0; + position: fixed; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + margin: auto; + background-color: var(--overlay-color); + border-radius: 45px; + padding: 20px; + padding-bottom: 1px; + min-width: 90px; + max-width: 90px; + transition: opacity 0.25s; + } + +#done p { + padding-top: 0px; + font-weight: bolder; + overflow-wrap: normal; + } \ No newline at end of file