adlerka.top/templates/dashboard.html
2024-02-03 22:53:17 +01:00

21 lines
509 B
HTML

<script defer>
const welcomeMsg = document.getElementById("welcomeMsg");
async function getUserInfo() {
const data = new URLSearchParams();
data.append("action", "get_user_info");
const result = await doAccountAction(data, null, null, true);
if (result && result.Status === "Success") {
welcomeMsg.innerText = `Ahoj, ${UserInfo.FirstName}.`;
}
}
getUserInfo();
</script>
<div class="dashboard">
<h1 id="welcomeMsg"></h1>
</div>