forked from jayasree-g/Webathon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
profileene.html
81 lines (74 loc) · 2.8 KB
/
profileene.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
79
80
81
<html lang="en" dir="ltr"><head>
<meta charset="utf-8">
<title>Profile</title>
<link rel="stylesheet" href="profile.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div class="wrapper">
<div class="title-text">
<div class="title login">Profile</div>
<div class="title login">Profile</div>
</div>
<div class="form-container">
<div class="slide-controls">
<input type="radio" name="slide" id="login" checked="">
<input type="radio" name="slide" id="signup">
<label for="login" class="slide login">Personal Details</label>
<label for="signup" class="slide signup">Contact Details</label>
<div class="slider-tab"></div>
</div>
<div class="form-inner">
<form action="#" class="login">
<div class="field">
<input type="text" placeholder="Name" required="">
</div>
<div class="field">
<input type="password" placeholder="Username" required="">
</div>
<div class="field">
<input type="text" placeholder="Mobile Number" required="">
</div>
<div class="field btn">
<div class="btn-layer"></div>
<input type="submit" value="Update">
</div>
</form>
<form action="#" class="signup">
<div class="field">
<input type="text" placeholder="Email Address" required="">
</div>
<div class="field">
<input type="password" placeholder="Github" required="">
</div>
<div class="field">
<input type="password" placeholder="Linkedin" required="">
</div>
<div class="field btn">
<div class="btn-layer"></div>
<input type="submit" value="Update">
</div>
</form>
</div>
</div>
</div>
<script>
const loginText = document.querySelector(".title-text .login");
const loginForm = document.querySelector("form.login");
const loginBtn = document.querySelector("label.login");
const signupBtn = document.querySelector("label.signup");
const signupLink = document.querySelector("form .signup-link a");
signupBtn.onclick = (()=>{
loginForm.style.marginLeft = "-50%";
loginText.style.marginLeft = "-50%";
});
loginBtn.onclick = (()=>{
loginForm.style.marginLeft = "0%";
loginText.style.marginLeft = "0%";
});
signupLink.onclick = (()=>{
signupBtn.click();
return false;
});
</script>
</body></html>