DFasdf
This commit is contained in:
parent
9fda1b9195
commit
bd9ec07e55
@ -1,4 +1,6 @@
|
||||
<script>
|
||||
const welcomeMsg = document.getElementById("welcomeMsg");
|
||||
|
||||
async function getUserInfo() {
|
||||
const data = new URLSearchParams();
|
||||
data.append("action", "get_user_info");
|
||||
@ -6,12 +8,12 @@
|
||||
const result = await doAccountAction(data, null, null, true);
|
||||
|
||||
if (result && result.Status === "Success") {
|
||||
return UserInfo.FirstName;
|
||||
welcomeMsg.innerText = `Ahoj, ${UserInfo.FirstName}.`;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
<body class="dashboard">
|
||||
<h1>Ahoj, <script>getUserInfo()</script></h1>
|
||||
<h1 id="welcomeMsg"></h1>
|
||||
</body>
|
Loading…
Reference in New Issue
Block a user