Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
3f74009488
@ -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
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>
|
Loading…
Reference in New Issue
Block a user