novi vnos, izbris vnosov, itd.

This commit is contained in:
2026-05-08 17:51:25 +02:00
parent 6c694a73fb
commit e60826b8d9
10 changed files with 307 additions and 2 deletions

View File

@@ -45,6 +45,8 @@ function updateToggleState(theme) {
function logout() {
// Odstrani cookie tako, da ga nastaviš z max-age=0
document.cookie = 'token=; max-age=0; path=/; secure; samesite=strict';
document.cookie = 'username=; max-age=0; path=/; secure; samesite=strict';
window.location.href = "/";
}
document.addEventListener("DOMContentLoaded", function() {