mirror of
https://github.com/timmypidashev/web.git
synced 2026-04-14 19:13:51 +00:00
animations and more fun
This commit is contained in:
11339
js/less.js
Normal file
11339
js/less.js
Normal file
File diff suppressed because it is too large
Load Diff
6
js/python/login.js
Normal file
6
js/python/login.js
Normal file
@@ -0,0 +1,6 @@
|
||||
$("#login-button").click(function(event){
|
||||
event.preventDefault();
|
||||
|
||||
$('form').fadeOut(500);
|
||||
$('.wrapper').addClass('form-success');
|
||||
});
|
||||
@@ -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;
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user