Merge remote-tracking branch 'origin/main'

This commit is contained in:
Bruno Rybársky 2024-02-03 23:01:40 +01:00
commit 3f74009488
2 changed files with 33 additions and 1 deletions

@ -208,3 +208,16 @@ header ul li {
margin-top: 5px;
margin-left: 20px;
}
/* <DASHBOARD STYLING> */
/* ZAČÍNAJ VŠETKO S ".dashboard" */
.dashboard {
width: 100%;
height: 100%;
text-align: center;
}
/* </DASHBOARD STYLING> */

19
templates/dashboard.html Normal file

@ -0,0 +1,19 @@
<script defer>
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") {
document.getElementById("welcomeMsg").innerText = `Ahoj, ${result.UserInfo.FirstName}.`;
}
}
getUserInfo();
</script>
<div class="dashboard">
<h1 id="welcomeMsg"></h1>
</div>