animations and more fun

This commit is contained in:
Timothy Pidashev
2022-01-07 23:22:17 -08:00
parent b26b405eca
commit 64718e30e5
8 changed files with 11646 additions and 44 deletions

11339
js/less.js Normal file

File diff suppressed because it is too large Load Diff

6
js/python/login.js Normal file
View File

@@ -0,0 +1,6 @@
$("#login-button").click(function(event){
event.preventDefault();
$('form').fadeOut(500);
$('.wrapper').addClass('form-success');
});

View File

@@ -1,16 +0,0 @@
const loginForm = document.getElementById("login-form");
const loginButton = document.getElementById("login-form-submit");
const loginErrorMsg = document.getElementById("login-error-msg");
loginButton.addEventListener("click", (e) => {
e.preventDefault();
const username = loginForm.username.value;
const password = loginForm.password.value;
if (username === "user" && password === "web_dev") {
alert("You have successfully logged in.");
location.reload();
} else {
loginErrorMsg.style.opacity = 1;
}
})