stylehub/templates/dashboard.html

19 lines
476 B
HTML
Raw Normal View History

2024-02-03 22:53:17 +01:00
<script defer>
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:55:09 +01:00
document.getElementById("welcomeMsg").innerText = `Ahoj, ${result.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>