mirror of
https://git.srhtnin.garden/sarah/srhtnin.github.io.git
synced 2026-10-14 10:48:12 +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
@@ -0,0 +1,30 @@
|
||||
async function StartSocial() {
|
||||
let CurrentUsername = null;
|
||||
|
||||
try {
|
||||
const Profile = await GetProfile();
|
||||
|
||||
if (
|
||||
Profile.Success &&
|
||||
Profile.Username !== null
|
||||
) {
|
||||
CurrentUsername =
|
||||
Profile.Username;
|
||||
}
|
||||
} catch (Error) {
|
||||
console.error(
|
||||
"Couldn't load current profile:",
|
||||
Error
|
||||
);
|
||||
}
|
||||
|
||||
await RenderLeaderboard(
|
||||
CurrentUsername
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
document.addEventListener(
|
||||
"DOMContentLoaded",
|
||||
StartSocial
|
||||
);
|
||||
Reference in new issue
Block a user