mirror of
https://git.srhtnin.garden/sarah/srhtnin.github.io.git
synced 2026-10-14 18:58:11 +02:00
Added social page and fixed garden page layout. ALSO added text next to
navbar.
This commit is contained in:
1 parent
2ea195475e
commit
b3902d4f69
9 files changed
+317
-159
No files matched your search
@@ -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 (
|
||||
|
||||
Reference in new issue
Block a user