adlerka.top/templates/dashboard.html

19 lines
485 B
HTML
Raw Normal View History

2024-02-03 22:48:07 +01:00
<script>
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
}
}
</script>
<body class="dashboard">
2024-02-03 22:51:38 +01:00
<h1 id="welcomeMsg"></h1>
2024-02-03 22:48:07 +01:00
</body>