Move files

This commit is contained in:
2025-04-04 15:25:13 -04:00
parent 979443da36
commit 432d6ca246
88 changed files with 43227 additions and 0 deletions

23
assets/js/login.js Normal file
View File

@ -0,0 +1,23 @@
// script.js
const form = document.querySelector('form');
const usernameInput = document.querySelector('#username');
const passwordInput = document.querySelector('#password');
function handleFormSubmit(event) {
event.preventDefault();
const username = usernameInput.value;
const password = passwordInput.value;
if (username === '' || password === '') {
alert('Please enter a valid username and password.');
return false;
}
// Send an AJAX request to the server with the form data
const xhr = new XMLHttpRequest();
xhr.open('POST', 'https://example.com/login', true);
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xhr.send(`username=${username}&password=${password}`);
}