You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
2.0 KiB
55 lines
2.0 KiB
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<link rel="stylesheet" href="signup.css">
|
|
<title>Document</title>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="backimg">
|
|
<div class="form-box">
|
|
<div class="button-box">
|
|
<div id="btn"></div>
|
|
<button type="button" class="toggle-btn" onclick="Login()">Login</button>
|
|
<button type="button" class="toggle-btn" onclick="Register()">Register</button>
|
|
</div>
|
|
<form id="login" class="input-group">
|
|
<input type="email" class="input-field" placeholder="Email ID" required>
|
|
<input type="text" class="input-field" placeholder="Enter Password" required>
|
|
<input type="checkbox" class="chech-box"><span>Remember Password</span>
|
|
<button type="submit" class="submit-btn">Login</button>
|
|
</form>
|
|
<form id="register" class="input-group">
|
|
<input type="text" class="input-field" placeholder="Email ID" required>
|
|
<input type="text" class="input-field" placeholder="Full Names" required>
|
|
<input type="text" class="input-field" placeholder="Enter Password" required>
|
|
<input type="checkbox" class="chech-box"><span>I agree to the terms and conditions</span>
|
|
<button type="submit" class="submit-btn">Register</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
var x = document.getElementById("login");
|
|
var y = document.getElementById("register");
|
|
var z = document.getElementById("btn");
|
|
|
|
function Register() {
|
|
x.style.left = "-400px";
|
|
y.style.left = "50px";
|
|
z.style.left = "110px";
|
|
}
|
|
|
|
function Login() {
|
|
x.style.left = "50px";
|
|
y.style.left = "450px";
|
|
z.style.left = "0";\
|
|
}
|
|
</script>
|
|
</body>
|
|
|
|
</html>
|