From ce064dd1ad3533f327394bc92f41b275d124b405 Mon Sep 17 00:00:00 2001 From: Miodec Date: Tue, 2 Aug 2022 01:28:56 +0200 Subject: [PATCH] showing total xp on hover --- frontend/src/ts/elements/profile.ts | 3 +++ frontend/src/ts/pages/profile.ts | 2 +- frontend/static/html/pages/account.html | 2 +- frontend/static/html/pages/profile.html | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/frontend/src/ts/elements/profile.ts b/frontend/src/ts/elements/profile.ts index e81cdb65d..b630deaff 100644 --- a/frontend/src/ts/elements/profile.ts +++ b/frontend/src/ts/elements/profile.ts @@ -153,6 +153,9 @@ export async function update( details .find(".xpBar .bar") .css("width", `${(xpToDisplay / xpForLevel) * 100}%`); + details + .find(".xp") + .attr("aria-label", `${Misc.abbreviateNumber(xp)} total xp`); //structure diff --git a/frontend/src/ts/pages/profile.ts b/frontend/src/ts/pages/profile.ts index 2637511f0..ee7442818 100644 --- a/frontend/src/ts/pages/profile.ts +++ b/frontend/src/ts/pages/profile.ts @@ -26,7 +26,7 @@ function reset(): void {
-
-/-
+
-/-
diff --git a/frontend/static/html/pages/account.html b/frontend/static/html/pages/account.html index f9ff3776b..142a20d20 100644 --- a/frontend/static/html/pages/account.html +++ b/frontend/static/html/pages/account.html @@ -39,7 +39,7 @@
-
-/-
+
-/-
diff --git a/frontend/static/html/pages/profile.html b/frontend/static/html/pages/profile.html index 214607924..97e32c4ad 100644 --- a/frontend/static/html/pages/profile.html +++ b/frontend/static/html/pages/profile.html @@ -23,7 +23,7 @@
-
-/-
+
-/-