-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
88 lines (71 loc) · 2.83 KB
/
popup.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
82
83
84
85
86
87
88
<!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>Document</title>
<link rel="stylesheet" href="popup.css">
</head>
<body>
<div>
<button type="button" class="button" id="button">Clickit</button>
<li></li>
</div>
<div id="popup" class = "hero">
<div class="close" id="close">
<a href="#"><img src="pictures/close.png" width="14px" alt="close"></a>
</div>
<div class="form-box">
<div class="button-box">
<div id="btn"></div>
<button type="button" class="toggle-btn" onclick="login()">Log In</button>
<button type="button" class="toggle-btn" onclick="register()">Register</button>
</div>
<div class="social-icons">
<img src="pictures/fb.png" alt="fb">
<img src="pictures/gp.png" alt="gp">
<img src="pictures/tw.png" alt="twitter">
</div>
<form id="login" class="input-group">
<input type="text" class="input-field" placeholder="User Id" required>
<input type="text" class="input-field" placeholder="Enter Password" required>
<input type="checkbox" class="check-box"><span>Remember Password</span>
<button type="submit" class="submit-btn">Log in</button>
</form>
<form id="register" class="input-group">
<input type="text" class="input-field" placeholder="User Id" required>
<input type="email" class="input-field" placeholder="Email Id" required>
<input type="text" class="input-field" placeholder="Enter Password" required>
<input type="checkbox" class="check-box"><span>I agree to the terms & conitions</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 = "0px";
}
</script>
<script>
document.getElementById('button').addEventListener('click',function()
{
document.querySelector('.hero').style.display = 'block';
});
document.getElementById('close').addEventListener('click',function()
{
document.querySelector('.hero').style.display = 'none';
});
</script>
</body>
</html>