commit 21/01/2026

This commit is contained in:
2026-01-21 17:19:19 +07:00
parent 38f3fd54b7
commit 34cf8c97df
24 changed files with 495 additions and 42 deletions

15
html/assets/js/home.js Normal file
View File

@@ -0,0 +1,15 @@
$(document).ready(function() {
// Your code here
console.log("home.js is loaded and ready.");
$('#logoutbtn').on('click', function() {
// Clear session storage on logout
fetch('/logout').then(() => {
window.location.href = '/login.html';
});
});
});
$(window).on('beforeunload', function() {
console.log("User is leaving home.html");
// Your cleanup code here
});