-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsignup.html
151 lines (116 loc) · 3.87 KB
/
signup.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<!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="shortcut icon" type="image/x-icon" href="https://images.bewakoof.com/web/favicon-1635856217.png"
hreflang="en-in">
</head>
<style>
* {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
#container {
display: flex;
height: auto;
width: 60%;
/* border:1px solid red; */
margin: auto;
}
#box1 {
display: flex;
height: 400px;
width: 50px;
/* border:1px solid red; */
margin: auto;
}
#box2 {
display: flex;
flex-direction: column;
height: 600px;
width: 33%;
/* border:1px solid red; */
margin: auto;
color: black;
font-size: 18px;
}
#data:hover {
color: white;
background-color: white;
}
#web_continue_submit {
padding: 15px 80px 15px;
/* height: 20px; */
/* cursor: pointer; */
color: white;
background-color: gray;
font-size: medium;
margin: 10px 10px 10px 0px;
/* width: 6; */
/* justify-content: left; */
}
#box2 > form > input {
border: none;
outline: none;
border-bottom: 2px solid black;
}
@media all and (min-width:100px) and (max-width:850px) {
#container{
flex-direction: column;
margin: auto;
}
}
</style>
<body>
<div id="container">
<div id="box1">
<img id="image" src="https://images.bewakoof.com/web/desktop-sign-up-banner--1623760676.png">
</div>
<div id="box2">
<h1>Sign Up</h1> <br>
<p><b>Hi new buddy, let's get you started with the bewakoofi!</b></p>
<form>
<!-- Name: <br> --><br>
<input type="text" id="name" placeholder="Name" required="required"> <br>
<!-- Mobile: <br> --><br>
<input type="number" id="number" placeholder="Mobile"> <br>
<!-- Email: <br> --><br>
<input type="email" id="email" placeholder="Email Id"> <br>
<!-- Password: <br> --><br>
<input type="password" id="password" placeholder="Password"> <br>
<br>
<br>
<input id="web_continue_submit" type="checkbox">
<!-- <bPROCEEDr> -->
I want to receive order updates on Whatsapp
<input type="submit" id="web_continue_submit" value="PROCEED"/>
<!-- <button id="web_continue_submit" type="submit">PROCEED</button> -->
</form>
</div>
</div>
<script>
document.querySelector('form').addEventListener('submit', singUpFn);
var usersData;
if (localStorage.getItem('UsersData') === null) {
usersData = []
} else {
usersData = JSON.parse(localStorage.getItem('UsersData'));
}
function singUpFn() {
event.preventDefault();
var userObj = {
email: document.querySelector('#name').value,
number: document.querySelector('#number').value,
email: document.querySelector('#email').value,
password: document.querySelector('#password').value,
checkbox: document.querySelector('#web_continue_submit').value
}
usersData.push(userObj);
localStorage.setItem('UsersData', JSON.stringify(usersData));
alert('SignUp Successfully')
window.location.href = 'index.html';
}
</script>
</body>
</html>