affiliate area

This commit is contained in:
oliver
2026-06-22 17:41:45 -03:00
parent 365c69871e
commit 70549554ad
3 changed files with 219 additions and 126 deletions
+13
View File
@@ -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");