-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfun.js
More file actions
19 lines (17 loc) · 727 Bytes
/
fun.js
File metadata and controls
19 lines (17 loc) · 727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
const registerButton = document.getElementById("register");
const loginButton = document.getElementById("login");
const container = document.getElementById("container");
registerButton.addEventListener("click", () => {
container.classList.add("right-panel-active");
container.style.transition = "transform 0.6s ease-in-out";
});
loginButton.addEventListener("click", () => {
container.classList.remove("right-panel-active");
container.style.transition = "transform 0.6s ease-in-out";
});
// Form validation function
function validateForm() {
// Add your validation logic here
// For example, check if the email is valid
return true; // Return false to prevent form submission if validation fails
}