affiliate area
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user