mirror of
https://github.com/timmypidashev/web.git
synced 2026-04-14 11:03:50 +00:00
65 lines
2.2 KiB
HTML
65 lines
2.2 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>Login</title>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<link rel="stylesheet/less" type="text/css" href="css/login.less" />
|
|
<link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css" />
|
|
</head>
|
|
<body>
|
|
<div class="wrapper">
|
|
<div class="container">
|
|
<h1>Login</h1>
|
|
|
|
<form class="form">
|
|
<input id="username" type="text" placeholder="Username">
|
|
<input id="password" type="password" placeholder="Password">
|
|
<button type="button" id="login-button">Login</button>
|
|
</form>
|
|
</div>
|
|
|
|
<ul class="bg-bubbles">
|
|
<li></li>
|
|
<li></li>
|
|
<li></li>
|
|
<li></li>
|
|
<li></li>
|
|
<li></li>
|
|
<li></li>
|
|
<li></li>
|
|
<li></li>
|
|
<li></li>
|
|
</ul>
|
|
</div>
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
|
|
<script src="js/less.js" data-env="production"></script>
|
|
<script src="https://unpkg.com/aos@next/dist/aos.js"></script>
|
|
<script>AOS.init(
|
|
{
|
|
once: false,
|
|
mirror: true,
|
|
anchorPlacement: 'top-bottom',
|
|
offset: 0,
|
|
duration: 800
|
|
});
|
|
</script>
|
|
<script>
|
|
$("#login-button").click(function(event){
|
|
|
|
// check if username and password are filled in
|
|
if($("#username").val() == "student" && $("#password").val() == "student.23264"){
|
|
// if the username and password are correct, redirect to the admin page
|
|
$('form').fadeOut(500);
|
|
$('.wrapper').addClass('form-success');
|
|
setTimeout(function() { // delay the location.replace for one second for login animation
|
|
location.assign("https://timmypidashev.com/assignments.html");
|
|
}, 1000);
|
|
} else {
|
|
// if the username and password are incorrect, add a shake animation to the form
|
|
$(".wrapper").addClass("form-error");
|
|
}
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |