commit 21/01/2026
This commit is contained in:
13
html/assets/js/login.js
Normal file
13
html/assets/js/login.js
Normal file
@@ -0,0 +1,13 @@
|
||||
$(document).ready(function() {
|
||||
// Your code here
|
||||
console.log("login.js is loaded and ready.");
|
||||
const params = new URLSearchParams(window.location.search);
|
||||
if (params.get("error")) {
|
||||
alert("Login failed. Please try again.");
|
||||
}
|
||||
});
|
||||
|
||||
$(window).on('beforeunload', function() {
|
||||
console.log("User is leaving login.html");
|
||||
// Your cleanup code here
|
||||
});
|
||||
Reference in New Issue
Block a user