add: new js files for simplicity

This commit is contained in:
2026-05-13 17:21:03 -04:00
parent 0a55500892
commit 788190328b
8 changed files with 1186 additions and 8 deletions
+1 -3
View File
@@ -10,15 +10,13 @@ registerBtn.addEventListener("click", handleSubmit);
// Function to handle form submission
function handleSubmit(event) {
// Prevent default form submission behavior
event.preventDefault();
// Validate input
const name = nameInput.value;
const email = emailInput.value;
const password = passwordInput.value;
if (name === "" || email === "" || password === "") {
event.preventDefault();
alert("Please fill in all fields.");
return;
}