2024-02-03 22:53:17 +01:00
|
|
|
<script defer>
|
2024-02-03 22:51:38 +01:00
|
|
|
const welcomeMsg = document.getElementById("welcomeMsg");
|
|
|
|
|
2024-02-03 22:48:07 +01:00
|
|
|
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") {
|
2024-02-03 22:51:38 +01:00
|
|
|
welcomeMsg.innerText = `Ahoj, ${UserInfo.FirstName}.`;
|
2024-02-03 22:48:07 +01:00
|
|
|
}
|
|
|
|
}
|
2024-02-03 22:53:17 +01:00
|
|
|
|
|
|
|
getUserInfo();
|
2024-02-03 22:48:07 +01:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
2024-02-03 22:53:17 +01:00
|
|
|
<div class="dashboard">
|
2024-02-03 22:51:38 +01:00
|
|
|
<h1 id="welcomeMsg"></h1>
|
2024-02-03 22:53:17 +01:00
|
|
|
</div>
|