Start of works on frontend

This commit is contained in:
2022-12-14 02:27:39 +03:00
parent 0bd63b53c5
commit 77b7719192
62 changed files with 609 additions and 9 deletions

9
static/js/loginpage.js Normal file
View File

@ -0,0 +1,9 @@
async function handleLogin(event) {
event.preventDefault();
const username = document.getElementById("username").value;
const password = document.getElementById("password").value;
const result = await login(username, password);
if (result) {
window.location.href = "/";
}
}