-
Notifications
You must be signed in to change notification settings - Fork 0
/
signUp.html
286 lines (271 loc) · 12.8 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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
<!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>Sign Up</title>
<link rel="stylesheet" href="styles/signUp-Styles.css">
<link rel="stylesheet" href="styles/footer.css">
<link rel="stylesheet" href="styles/navBar-Style.css">
<style>
#regpage{
margin-top: 50px;
}
#main{
margin-left: -10px;
width: 300px;
}
nav{
position: relative;
align-items: center;
}
</style>
</head>
<body>
<!-- navbar -->
<nav>
<div id="nav-bar-left">
<div id="hamburger">
<a href="navMenu.html"><img src="https://banner2.cleanpng.com/20180628/zaz/kisspng-computer-icons-hamburger-button-menu-new-menu-5b34724be5a1f0.5796308115301637879406.jpg" alt="hamburger" id="hamburger_icon"></a>
</div>
<div id="logo">
<a href="home.html">
<img src="https://www.freepnglogos.com/uploads/zara-logo-png/zara-avrupa-logos-2020-desing--11.png" alt="favicon" id="favicon">
</a>
</div>
</div>
</div>
<div id="nav-bar-right">
<div id="search_bar">
<label class="navLabel" for="search">SEARCH</label>
<p id="search"></p>
</div>
<div id="nav-items">
<ul>
<li class="nav_item"><a class="navLinks" href="login.html">LOGIN</a> </li>
<li class="nav_item" id="help"><a class="navLinks" href="Help/help.html">HELP</a> </li>
<li class="nav_item" id="last-nav"><a class="navLinks" href=""></a> </li>
</ul>
</div>
</div>
</nav>
<div id="regpage">
<form id="main">
<div id="wholeform">
<div>
<h2>Personal details</h2>
</div>
<div>
<form>
<input name="selectcategory" required type="radio" value="personal">
<label class="black" for="radio">PERSONAL</label>
<input name="selectcategory" required type="radio" value="company">
<label class="black" for="radio">COMPANY</label>
</form>
</div>
<div id="sub1">
<div class="formgroup">
<input required class="form-input" type="email" id="eemail" value="" placeholder=" ">
<label class="form-label" for="eemail">E-MAIL</label>
</div>
<div>
<!-- empty -->
</div>
<div class="formgroup">
<input required class="form-input" type="password" id="Password" placeholder=" ">
<label class="form-label" for="Password">PASSWORD</label>
</div>
<div class="formgroup">
<input required class="form-input" type="password" id="RPassword" placeholder=" ">
<label class="form-label" for="RPassword">REPEAT PASSWORD</label>
</div>
<div class="formgroup">
<input required class="form-input" type="text" id="user_name" placeholder=" ">
<label class="form-label" for="user_name">NAME</label>
</div>
<div class="formgroup">
<input required class="form-input" type="text" id="pincode" placeholder=" ">
<label class="form-label" for="pincode">PINCODE</label>
</div>
<div class="formgroup">
<input required class="form-input" type="text" id="address" placeholder=" ">
<label class="form-label" for="address">ADDRESS</label>
</div>
<div class="formgroup">
<input required class="form-input" type="text" id="add_address" placeholder="optional">
<label class="form-label" for="add_address">MOREINFO</label>
</div>
<div class="formgroup">
<input required class="form-input" type="text" id="locality" placeholder=" ">
<label class="form-label" for="locality">LOCALITY</label>
</div>
<div class="formgroup">
<input required class="form-input" type="text" id="city" placeholder=" ">
<label class="form-label" for="city">CITY</label>
</div>
<div>
<label>STATE</label><br>
<select name="state" id="state">
<option>--</option>
<option value="Andhra Pradesh">Andhra Pradesh</option>
<option value="Andaman and Nicobar Islands">Andaman and Nicobar Islands</option>
<option value="Arunachal Pradesh">Arunachal Pradesh</option>
<option value="Assam">Assam</option>
<option value="Bihar">Bihar</option>
<option value="Chandigarh">Chandigarh</option>
<option value="Chhattisgarh">Chhattisgarh</option>
<option value="Dadar and Nagar Haveli">Dadar and Nagar Haveli</option>
<option value="Daman and Diu">Daman and Diu</option>
<option value="Delhi">Delhi</option>
<option value="Lakshadweep">Lakshadweep</option>
<option value="Puducherry">Puducherry</option>
<option value="Goa">Goa</option>
<option value="Gujarat">Gujarat</option>
<option value="Haryana">Haryana</option>
<option value="Himachal Pradesh">Himachal Pradesh</option>
<option value="Jammu and Kashmir">Jammu and Kashmir</option>
<option value="Jharkhand">Jharkhand</option>
<option value="Karnataka">Karnataka</option>
<option value="Kerala">Kerala</option>
<option value="Madhya Pradesh">Madhya Pradesh</option>
<option value="Maharashtra">Maharashtra</option>
<option value="Manipur">Manipur</option>
<option value="Meghalaya">Meghalaya</option>
<option value="Mizoram">Mizoram</option>
<option value="Nagaland">Nagaland</option>
<option value="Odisha">Odisha</option>
<option value="Punjab">Punjab</option>
<option value="Rajasthan">Rajasthan</option>
<option value="Sikkim">Sikkim</option>
<option value="Tamil Nadu">Tamil Nadu</option>
<option value="Telangana">Telangana</option>
<option value="Tripura">Tripura</option>
<option value="Uttar Pradesh">Uttar Pradesh</option>
<option value="Uttarakhand">Uttarakhand</option>
<option value="West Bengal">West Bengal</option>
</select>
</div>
<div>
<p style="font-size: 10px;">REGION</p>
<P style="font-size: 12px;">India</P>
</div>
</div>
<div id="sub2">
<div class="prefix">
<input required class="form-input" type="text" id="prefix" placeholder=" " value="+91">
<label class="form-label" for="prefix">PREFIX</label>
</div>
<div class="postfix" >
<input required class="form-input" type="text" id="mobile" placeholder=" ">
<label class="form-label" for="mobile">TELEPHONE</label>
</div>
</div>
<div id="sub3">
<div style="font-size: 10px; font-family: Arial, Helvetica, sans-serif;">
<input required class="" type="checkbox" id="promoemail" placeholder=" " value="rendered-Checked" required/>
I WISH TO RECEIVE ZARA NEWS ON MY E-MAIL
</div>
<div style="font-size: 10px; font-family: Arial, Helvetica, sans-serif;">
<input required class="" type="checkbox" id="tc" placeholder=" " required>
I ACCEPT THE <span>PRIVACY STATEMENT</span>
</div>
<div>
<input id="createaccount" required type="submit" value="CREATE ACCOUNT">
</div>
</div>
</div>
</form>
</div>
<div id="about">
<div>
<ul>
<li class="head">HELP</li>
<li>SHOP AT ZARA.COM</li>
<li>PRODUCT</li>
<li>PAYMENT</li>
<li>SHIPPING</li>
<li>EXCHANGING AND RETURNS</li>
<li>SHOPS AND COMPANY</li>
<li>CLOTHES COLLECTION PROGRAMME</li>
<li>MY ACCOUNT</li>
</ul>
</div>
<div>
<ul>
<li class="head">FOLLOW US</li>
<li>NEWS LETTER</li>
<li>TIKTOK</li>
<li>INSTAGRAM</li>
<li>FACEBOOK</li>
<li>TWITTER</li>
<li>PINTEREST</li>
<li>YOUTUBE</li>
</ul>
</div>
<div>
<ul>
<li class="head">COMPANY</li>
<li>ABOUT US</li>
<li>OFFICES</li>
<li>STORES</li>
<li>WORK WITH US</li>
</ul>
</div>
<div>
<ul>
<li class="head">POLICES</li>
<li>PRIVACY POLICY</li>
<li>PURCHASE CONDITIONS</li>
<li>COOKIES SETTINGS</li>
</ul>
</div>
</div>
<hr style="width: 90%;">
<div id="copy">
<h6>INDIA</h6>
<div>
<h6>ENGLISH</h6>
<p id="last">© ALL RIGHTS RESERVED</p>
</div>
</div>
<div id="bottom">
<h6 style="font-size: 9px;">NAME AND ADDRESS OF THE MANUFACTURER:</h6>
<h6 style="font-size: 8px;">INDUSTRIA DE DISEÑO TEXTIL, S.A. (INDITEX, S.A.)</h6>
<h6 style="font-size: 8px;">AVENIDA DE LA DIPUTACIÓN, EDIFICIO INDITEX, 15143, ARTEIXO (A CORUÑA), SPAIN</h6>
</div>
</body>
</html>
<script>
document.querySelector("form").addEventListener("submit",createaccount);
var userdata=JSON.parse(localStorage.getItem("USERSDATA"))||[];
function createaccount()
{
event.preventDefault();
var email=document.querySelector("#eemail").value;
var pw=document.querySelector("#Password").value;
var rpw=document.querySelector("#RPassword").value;
if(pw!=rpw&pw!="")
{
alert("password match error");
return;
}
var name=document.querySelector("#user_name").value;
var pincode=document.querySelector("#pincode").value;
var address=document.querySelector("#address").value;
var addadress=document.querySelector("#add_address").value;
var locality=document.querySelector("#locality").value;
var city=document.querySelector("#city").value;
var state=document.querySelector("select").value;
var prefix=document.querySelector("#prefix").value;
var mobile=document.querySelector("#mobile").value;
var promoemail=document.querySelector("#promoemail").value;
var tcbox=document.querySelector("#tc").value;
var obj={"Email":email,"Password":pw,"username":name,"Pincode":pincode,"Address":address,"Addaddress":addadress,"Locality":locality,"State":state, "Prefix":prefix, "Mobile":mobile, "Promoemail":promoemail, "tcbox":tcbox}
console.log(obj)
userdata.push(obj);
localStorage.setItem("USERSDATA",JSON.stringify(userdata))
alert("SIGNUP SUCCESS");
window.location.href = "login.html";
}
</script>