This commit is contained in:
Richard Mikloš 2024-02-05 21:24:11 +01:00
commit effbc5c726

@ -144,6 +144,7 @@ function logout() {
}); });
} }
function initAjax() {
let links = document.querySelectorAll('.navsite_link, .navpage_link'); let links = document.querySelectorAll('.navsite_link, .navpage_link');
// Add click event listener to each link // Add click event listener to each link
@ -162,4 +163,5 @@ links.forEach(function(link) {
// You can use this information to update the URL or perform other actions // You can use this information to update the URL or perform other actions
}); });
}); });
}
document.addEventListener('DOMContentLoaded', initAjax);