Files
FarmToAAS/html/assets/js/login.js
2026-01-21 17:19:19 +07:00

13 lines
381 B
JavaScript

$(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
});