diff --git a/index.html b/index.html
index 80f9747..77d835c 100644
--- a/index.html
+++ b/index.html
@@ -19,14 +19,56 @@
var x = document.getElementById("copy-toast");
x.className = "show";
setTimeout(function(){ x.className = x.className.replace("show", ""); }, 3000);
- }
+ },
+ document.addEventListener("DOMContentLoaded", function() {
+ const t = document.querySelectorAll('input[name="theme"]')
+ , i = document.getElementById("disable-bg")
+ , o = document.getElementById("disable-animations");
+ function a() {
+ const t = document.querySelector('input[name="theme"]:checked').value;
+ localStorage.setItem("theme", t),
+ localStorage.setItem("disable-bg", i.checked),
+ localStorage.setItem("disable-animations", o.checked)
+ }
+ !function() {
+ const t = localStorage.getItem("theme");
+ if (t) {
+ const e = document.querySelector(`input[name="theme"][value="${t}"]`);
+ e && (e.checked = !0)
+ }
+ "true" === localStorage.getItem("disable-bg") && (i.checked = !0);
+ "true" === localStorage.getItem("disable-animations") && (o.checked = !0)
+ }(),
+ t.forEach(e => {
+ e.addEventListener("change", function() {
+ a()
+ })
+ }
+ ),
+ i.addEventListener("change", a),
+ o.addEventListener("change", a)
+ });