mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-10 06:01:28 +08:00
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:
parent
69961185e0
commit
cfed190f36
4 changed files with 19 additions and 1 deletions
|
|
@ -55,6 +55,12 @@
|
|||
display: inline;
|
||||
}
|
||||
}
|
||||
.lbOptOutReminder {
|
||||
grid-column: span 2;
|
||||
text-align: center;
|
||||
color: var(--sub-color);
|
||||
font-size: 0.8em;
|
||||
}
|
||||
}
|
||||
|
||||
.profile {
|
||||
|
|
|
|||
|
|
@ -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(() => {
|
||||
|
|
|
|||
|
|
@ -146,7 +146,7 @@ function reset(): void {
|
|||
<div class="acc">-</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>`);
|
||||
</div><div class="lbOptOutReminder hidden"></div>`);
|
||||
}
|
||||
|
||||
interface UpdateOptions {
|
||||
|
|
|
|||
|
|
@ -156,6 +156,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="lbOptOutReminder hidden"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue