Added social page and fixed garden page layout. ALSO added text next to

navbar.
This commit is contained in:
sarah committed 2026-09-04 18:59:16 +02:00
1 parent 2ea195475e
commit b3902d4f69
9 files changed
+317 -159

No files matched your search

+16 -7
View File
@@ -1,9 +1,15 @@
async function RenderLeaderboard() {
async function RenderLeaderboard(
CurrentUsername = null
) {
const Body =
document.getElementById(
"LeaderboardBody"
);
if (Body === null) {
return;
}
try {
const Response = await fetch(
ApiUrl + "/Leaderboard.php"
@@ -53,13 +59,16 @@ async function RenderLeaderboard() {
}
const UsernameDisplay =
document.getElementById(
"UsernameDisplay"
);
if (CurrentUsername === null) {
const UsernameDisplay =
document.getElementById(
"UsernameDisplay"
);
const CurrentUsername =
UsernameDisplay?.textContent;
CurrentUsername =
UsernameDisplay?.textContent ??
null;
}
for (