created basic user panel

This commit is contained in:
Václav Šmejkal 2024-05-22 18:35:22 +02:00
parent f8fc97f88b
commit c96b0efceb
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

15
res/forum/user/user.html Normal file
View File

@ -0,0 +1,15 @@
<div id="info_pane">
<button onclick="update_user()" id="save_btn" class="btn">Uložit Změny</button>
</div>
<script>
var button_buffer = document.getElementById("info_pane").innerHTML;
$.ajax
({
url: "./res/forum/api/get_username.php",
success: function(result)
{
inject_info("#info_pane", result.username, button_buffer);
}
})
</script>