This commit is contained in:
2026-05-18 08:38:30 +02:00
parent eddba45f4e
commit 28e3053a6a
39 changed files with 55 additions and 29 deletions

View File

@@ -4,6 +4,10 @@ const errmsg = `
</div>
`;
function navigateTop(page) {
window.open(new URL(page, window.location.href).href, "_top");
}
document.getElementById("login-form").addEventListener("submit", async function(event) {
event.preventDefault();
@@ -63,7 +67,7 @@ document.getElementById("login-form").addEventListener("submit", async function(
`<div class="form-group"><p class="page-paragraph-success">Uspešna registracija! Preusmerjanje na prijavo...</p></div>`
);
}, 500);
window.location.href = "login.html";
navigateTop("login.html");
return;
}