From 70549554ad7f4abdd8e68fe1bcc0a5b5964e79a3 Mon Sep 17 00:00:00 2001 From: oliver Date: Mon, 22 Jun 2026 17:41:45 -0300 Subject: [PATCH] affiliate area --- app.js | 13 +++ index.html | 298 +++++++++++++++++++++++++++++++---------------------- styles.css | 34 ++++++ 3 files changed, 219 insertions(+), 126 deletions(-) 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 @@