-
Notifications
You must be signed in to change notification settings - Fork 0
/
sign_up.html
78 lines (74 loc) · 2.93 KB
/
sign_up.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!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">
<title>Form</title>
<link rel="shortcut icon" href="css_style_sheet/login.ico" type="image/x-icon">
<link rel="stylesheet" href="css_style_sheet/sign_up.css">
</head>
<body>
<section>
<div class="container">
<div class="user signinBox">
<div class="imgBox">
<img src="assets/asset 2.png" alt="">
</div>
<div class="formBox">
<form action="">
<h2>Login</h2>
<input type="email" name="" placeholder="Enter Email" id="">
<input type="password" name="" placeholder="Enter Password" id="">
<input type="submit" value="Login">
<p class="signup">Don't have an Account? <a href="#" onclick="javascript:doToggle();">Sign Up</a></p>
</form>
</div>
</div>
<div class="user signupBox">
<div class="formBox">
<form action="">
<h2>Create An Account</h2>
<input type="text" name="" placeholder="Enter Username" id="">
<input type="email" name="" placeholder="Enter Email" id="">
<input type="password" name="" placeholder="Enter Password" id="">
<input type="password" name="" placeholder="Confirm Password" id="">
<input type="submit" value="Sign Up">
<p class="signup">Already have an Account? <a href="#" onclick="javascript:doToggle();">Login</a></p>
</form>
</div>
<div class="imgBox">
<img src="assets/asset 21.png" alt="">
</div>
</div>
</div>
</section>
<script type="text/javascript">
function doToggle(){
var container = document.querySelector('.container');
container.classList.toggle('active')
}
</script>
<script type="text/javascript">
function doToggle() {
let container = document.querySelector('.container');
container.classList.toggle('active');
}
function redirectToIndex() {
setTimeout(function() {
window.location.href = 'index.html';
}, 2000);
}
const loginForm = document.querySelector('.signinBox form');
loginForm.addEventListener('submit', function(event) {
event.preventDefault();
redirectToIndex();
});
const signupForm = document.querySelector('.signupBox form');
signupForm.addEventListener('submit', function(event) {
event.preventDefault();
redirectToIndex();
});
</script>
</body>
</html>