diff --git a/app.js b/app.js index 29c2552..30c7378 100644 --- a/app.js +++ b/app.js @@ -1104,6 +1104,19 @@ function copyAffiliateCode() { .then(() => toast("Affiliate link copied!", "success")); } +function switchAccountTab(tab) { + // update tab buttons + document + .querySelectorAll(".acct-settings-tab") + .forEach((btn) => btn.classList.remove("active")); + document.getElementById(`acct-tab-${tab}`).classList.add("active"); + // show/hide panels + document + .querySelectorAll(".acct-tab-content") + .forEach((p) => (p.style.display = "none")); + document.getElementById(`acct-tabpanel-${tab}`).style.display = ""; +} + function closeUserPanel() { document.getElementById("account-backdrop").classList.remove("open"); const inp = document.getElementById("acct-pw-input"); diff --git a/index.html b/index.html index 6c39c85..5745639 100644 --- a/index.html +++ b/index.html @@ -824,136 +824,182 @@
- Min. 8 characters. -
-+ Min. 8 characters. +
+