forked from Adleraci/adlerka.top
		
	DFasdf
This commit is contained in:
		@@ -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>
 | 
			
		||||
		Reference in New Issue
	
	Block a user