-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
64 lines (60 loc) · 2.32 KB
/
index.html
File metadata and controls
64 lines (60 loc) · 2.32 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Login and Signup Form</title>
<link rel = "stylesheet" href = "style.css">
</head>
<body>
<li>
<A HREF ="Homepage.html"> Home</A>
</li>
<div class = "hero">
<div class = "form-box">
<div class = "button-box">
<div id = "button"></div>
<button type="button" class = "toggle-button" onclick="login()">Log In</button>
<button type="button" class = "toggle-button" onclick="signup()">Sign Up</button>
</div>
<form id = "login" class = "input-group">
<input type="text" class = "input-field" placeholder="Username" required>
<input type="password" class = "input-field" placeholder="Enter Password" required>
<input type="checkbox" class = "check-box"><span>Remember Password</span>
<!-- <form action = "Dashboard.html">-->
<!-- <button type="submit" class="submit-button">Log in</button>-->
<!-- </form>-->
<form>
<button formaction="Dashboard.html" type = "submit" class = "submit-button">Log In</button>
</form>
</form>
<form id = "signup" class = "input-group">
<input type="text" class = "input-field" placeholder="Username" required>
<input type="email" class = "input-field" placeholder="Enter Email" required>
<input type="password" class = "input-field" placeholder="Enter Password" required>
<input type="checkbox" class = "check-box"><span>Agree to terms and conditions</span>
<!-- <form action="Info.html">-->
<!-- <button type="submit" class="submit-button">Sign Up</button>-->
<!-- </form>-->
<form>
<button formaction="Info.html" type = "submit" class = "submit-button">Sign Up</button>
</form>
</form>
</div>
</div>
<script>
var x = document.getElementById("login");
var y = document.getElementById("signup");
var z = document.getElementById("button");
function signup() {
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>