impr(profile): add reminder about lb opt out

Added a reminder which mentions that results are not validated by the anticheat
for accounts that opted out of the leaderboard
This commit is contained in:
Miodec 2023-08-30 13:22:17 +02:00
parent 69961185e0
commit cfed190f36
4 changed files with 19 additions and 1 deletions

View file

@ -55,6 +55,12 @@
display: inline;
}
}
.lbOptOutReminder {
grid-column: span 2;
text-align: center;
color: var(--sub-color);
font-size: 0.8em;
}
}
.profile {

View file

@ -84,6 +84,17 @@ export async function update(
.append(
`<div class="bannedIcon" aria-label="This account has opted out of leaderboards" data-balloon-pos="up"><i class="fas fa-crown"></i></div>`
);
if (where === "profile") {
profileElement
.find(".lbOptOutReminder")
.removeClass("hidden")
.text(
"Note: This account has opted out of the leaderboards, meaning their results aren't verified by the anticheat system and may not be legitimate."
);
} else {
profileElement.find(".lbOptOutReminder").addClass("hidden");
}
}
setTimeout(() => {

View file

@ -146,7 +146,7 @@ function reset(): void {
<div class="acc">-</div>
</div>
</div>
</div>`);
</div><div class="lbOptOutReminder hidden"></div>`);
}
interface UpdateOptions {

View file

@ -156,6 +156,7 @@
</div>
</div>
</div>
<div class="lbOptOutReminder hidden"></div>
</div>
</div>
</div>