forked from deepmajoka07/-likely-cough-9107
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSignup.html
716 lines (628 loc) · 27.6 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
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="./styles/Signup.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css">
<link data-require="[email protected]" data-semver="5.5.0" rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" />
<link rel="stylesheet" href="./Styles/sign2.css">
<style>
body {
font-family: open sans, -apple-system, BlinkMacSystemFont, segoe ui, Roboto, helvetica neue, Arial, sans-serif, apple color emoji, segoe ui emoji, segoe ui symbol;
font-size: .875rem;
font-weight: 400;
line-height: 1.3571428571;
color: #000;
}
/* Style the tab */
.tab {
overflow: hidden;
border: 1px solid #ccc;
/* background-color: #f1f1f1; */
justify-content: space-around;
display: flex;
}
/* Style the buttons inside the tab */
.tab button {
background-color: inherit;
float: left;
border: none;
outline: none;
cursor: pointer;
padding: 14px 16px;
transition: 0.3s;
font-size: 17px;
}
/* Change background color of buttons on hover */
.tab button:hover {
background-color: #ddd;
}
/* Create an active/current tablink class */
.tab button.active {
background-color: #ccc;
}
/* Style the tab content */
.tabcontent {
display: none;
padding: 6px 12px;
border: 1px solid #ccc;
border-top: none;
}
::placeholder {
color: red;
opacity: 1;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"] {
height: 50px;
width: 94%;
}
.form_control div {
padding: 10px;
}
.form_section {
display: grid;
grid-template-columns: repeat(2, 600px);
justify-content: center;
gap: 20px
}
.form_section button {
color: #737373;
background-color: #fff;
border-color: #737373;
letter-spacing: 0;
text-decoration: none;
text-transform: uppercase;
text-rendering: optimizeLegibility;
padding: 0.75rem 3rem;
font-size: .75rem;
line-height: .9;
border-radius: 0;
width: 95%;
}
.Check_Order {
border: 1px solid #ccc;
width: auto;
padding: 12px;
}
.form_Order div {
text-align: center;
padding: 10px;
}
#Birth_data select {
height: 50px;
width: 45%;
}
#Birth_data {
display: flex;
justify-content: space-between;
margin-top: 40px;
}
.form-help-text {
margin-top: -34px;
margin-left: 0.75rem;
font-size: .625rem;
color: #474747;
}
.month-label {
margin-right: 40PX;
font-size: 0.600rem;
MARGIN-LEFT: 10PX;
POSITION: absolute;
MARGIN-TOP: -14PX;
color: #000;
background-color: #fff;
padding: 0 0.25rem;
pointer-events: none;
}
.day {
MARGIN-LEFT: 325PX;
}
.image_container {
/* // background-color: black; */
/* // height: 200px; */
text-align: center;
}
.Reward_Container {
background-color: rgb(255, 255, 255);
font-size: 13px;
}
#order-ex {
font-size: .625rem;
margin-top: -15px;
margin-left: 27px;
text-align: left;
}
.error-image {
display: none;
float: right;
margin-left: -44px;
}
.error-image img {
width: 30px;
height: 30px;
}
.email-input {
display: flex;
}
#feedback_warning {
font-size: .625rem;
margin-top: -14px;
}
.warning-below {
margin-top: -10px;
font-size: .625rem;
color: red;
}
#Login {
height: 800px
}
@media only screen and (max-width: 1195px) {
.form_section {
display: grid;
grid-template-columns: repeat(1, auto);
grid-template-rows: repeat(2, auto);
justify-content: center;
gap: 20px
}
}
</style>
</head>
<body>
<div id="head">
<div class="top">
<div class="top-left">
<i class="fa-solid fa-tag" style="font-size: 25px;"></i>
<span class="badge">4</span>
<h4> Get Free Shipping & Rewards</h4>
<i class="fa-solid fa-angle-down"></i>
</div>
<div class="top-right">
<i class="fa-solid fa-cart-shopping" id="cartPage" style="font-size: 22px;"></i>
<i class="fa-solid fa-circle-user" id="signin" style="font-size: 22px;"></i>
<i class="fa-solid fa-location-dot" style="font-size: 22px;"></i>
<i class="fa-solid fa-circle-question" style="font-size: 22px;"></i>
</div>
</div>
<!------------------------------------- navigation bar ------------------------------------------>
<div class="navbar">
<div class="logo">
<img src="./images/logo.png" alt="" onclick="home()">
</div>
<div>
<div id="menu">
<div class="menu">
<div class="menu-item">
<a href="./men.html">Men</a>
</div>
<div class="menu-item">
<a href="./women.html">Women</a>
</div>
<div class="menu-item">
<a href="./kids.html">Kids</a>
</div>
<div class="menu-item">
<a href="#">Footwear</a>
</div>
<div class="menu-item">
<a href="#">Activity</a>
</div>
<div class="menu-item">
<a href="#">Featured</a>
</div>
<div class="menu-item">
<a href="#">Winter Sale</a>
</div>
</div>
</div>
</div>
<!-- <div class="searchbar">
<div class="search-input">
<input type="text" width="60%" name="" placeholder="Search">
<i class="fa-solid fa-magnifying-glass"></i>
</div>
</div> -->
</div>
</div>
<BR>
<div>
<a href="./index.html" style="color:black;position: fixed;left: 5%;top:138px;">Home</a></div>
<div class="form_section">
<div class="section_1">
<div class="tab">
<button class="tablinks" onclick="openForm(event, 'Login')" style="width: auto;">Log in</button>
<button class="tablinks" onclick="openForm(event, 'SignUp')" style="width: auto;"
id="defaultOpen">Create Account</button>
</div>
<div id="Login" class="tabcontent form_control">
<div style="display: flex; justify-content:space-between">
<div>
</div>
<div>
<p>* Required</p>
</div>
</div>
<div id="Login_password_alert"><img src="https://img.icons8.com/ios-filled/50/900000/error--v1.png"
height="20px" /> Please Check Email and Password</div>
<div class="email-input">
<input type="email" id="L-email" placeholder="Email *" />
<!-- <div>
<img src="https://img.icons8.com/ios-filled/50/900000/error--v1.png" />
</div> -->
<div is="feedback_warning"></div>
</div>
<div class="email-input">
<input type="password" id="L-password" placeholder="Password *" />
<div>
<!-- <img src="https://img.icons8.com/ios-filled/50/900000/error--v1.png" /> -->
<!-- <img src="https://img.icons8.com/material-rounded/24/1A1A1A/hide.png" style="display:block"/> -->
</div>
</div>
<div id="feedback_warning">Minimum of 8 characters 1 uppercase letter 1 lowercase letter 1 number</div>
<div>
<button onclick="login()">Login</button>
<div>
<input type="checkbox" />Rembember Me
</div>
</div>
<h3 style="color:black"><a href="./ResetPassword.html" style="color: black;">Forget Password</a></h3>
<div class="popup" id="login_success">
<div class="popup-content">
<div class="imgbox">
<img src="./images/checked.png" alt="" class="img">
</div>
<div class="title">
<h3>Login Success!</h3>
</div>
<p id="para"></p>
<form action="">
<a href="#" class="button" id="L_button">OKAY</a>
</form>
</div>
</div>
</div>
<!-- Signup Section -->
<div id="SignUp" class="tabcontent">
<div class="head" style="display: flex; justify-content:space-between">
<h2>My Login Info</h2>
<p>* Required</p>
</div>
<div class="Login_info form_control">
<form >
<div class="email-input">
<input type="email" id="email" class="focus_input" placeholder="Email *" required />
<div id="email-error" class="error-image">
<img src="https://img.icons8.com/ios-filled/50/900000/error--v1.png" />
</div>
</div>
<div id="email_warning" class="warning-below"></div>
<div class="email-input">
<input type="password" id="password" class="focus_input" placeholder="Password *" required />
<div id="password-error" class="error-image">
<img src="https://img.icons8.com/ios-filled/50/900000/error--v1.png" />
</div>
</div>
<div id="password_warning" class="warning-below"></div>
<div><input type="password" id="Confirm_password" class="focus_input"
placeholder="Confirm Password *" required />
<div id="Confirm_password-error" class="error-image">
<img src="https://img.icons8.com/ios-filled/50/900000/error--v1.png" style="position: absolute;
margin-left: -62px;" />
</div>
</div>
<div id="Confirm_password_warning" class="warning-below"></div>
</div>
<div class="col">
<span class="h4 text-capitalize">
My Profile
</span>
</div>
<div class="My_Profile form_control">
<div><input type="text" id="Full_Name" placeholder="First Name *" class="focus_input" />
<div id="Full_Name-error" class="error-image">
<img src="https://img.icons8.com/ios-filled/50/900000/error--v1.png" style="position: absolute;
margin-left: -62px;" />
</div>
</div>
<div id="Full_Name_warning" class="warning-below"></div>
<div><input type="text" id="Last_Name" placeholder="Last Name *" class="focus_input" />
<div id="Last_Name-error" class="error-image">
<img src="https://img.icons8.com/ios-filled/50/900000/error--v1.png" style="position: absolute;
margin-left: -62px;" />
</div>
</div>
<div id="Last_Name_warning" class="warning-below"></div>
<div><input type="text" id="Zip_Code" placeholder="Zip Code *" class="focus_input" />
<div id="Zip_Code-error" class="error-image">
<img src="https://img.icons8.com/ios-filled/50/900000/error--v1.png" style="position: absolute;
margin-left: -62px;" />
</div>
</div>
<div id="Zip_Code_warning" class="warning-below"></div>
<div><input type="number" id="Phone" placeholder="Phone *" class="focus_input" />
<div id="Phone-error" class="error-image">
<img src="https://img.icons8.com/ios-filled/50/900000/error--v1.png" style="position: absolute;
margin-left: -62px;" />
</div>
</div>
<div id="Phone_warning" class="warning-below"></div><br>
<div class="form-help-text">Example: (555) 555-5555</div>
<div><label>Gender</label></div>
<input type="radio" name="gender" id="Gender" value="Male" >Male
<input type="radio" name="gender" id="gender" value="Female" >Female
<input type="radio" name="gender" id="GENDER" value="Not Answer" >Prefer not to answer
<div id="G_warning" class="warning-below"></div>
<div id="Birth_data">
<!-- <label class="">Month</label> -->
<div class="month-label">Birth Month</div>
<select id="B_Month">
<option></option>
</select>
<div class="month-label day">Birth Day</div>
<select id="B_Day">
<option></option>
</select>
</div>
<div style="margin-top: 40px;">
<input type="checkbox" id="select_term_conditions"/>Please send me emails about new products, special offers
and
more.
<div id="select_term_conditions_warning" class="warning-below"></div>
</div>
</div>
<!-- pop message -->
<div class="popup" id="success">
<div class="popup-content">
<div class="imgbox">
<img src="./images/checked.png" alt="" class="img">
</div>
<div class="title">
<h3>Success!</h3>
</div>
<p class="para">Your account has been created successfully</p>
<form action="">
<a class="button" id="s_button">OKAY</a>
</form>
</div>
</div>
<div style="line-height: 2">
<div class="Reward_Container">
<div class="image_container">
<img
src="https://columbia.scene7.com/is/image/ColumbiaSportswear2/20590_C_U_X1_SU20_CGR_HP_Banner_Black_Logo_resized_@2x?$aem_png$" />
</div>
<div class="form_group">
<input type="checkbox" id="reward_check" />
<label>I want to join Greater Rewards for free shipping and rewards (it's free to join). By
checking this box, I have read and understood the <a href="#">Notice of Financial
Incentives,</a>
and I agree to the <a href="#">Terms and Conditions.</a>></label>
<div id="reward_check_warning" class="warning-below"></div>
</div>
</div>
<br>
<div style="text-align: center; font-size: 14px;">
<div>
<button id="signup_submit">CREATE ACCOUNT</button>
</div>
</form>
<p class="mt-2">
By creating an account, you agree to our
<a href="#" target="_blank">Terms of Use</a>
and
<a href="#" target="_blank">Privacy Policy</a>.
</p>
</div>
</div>
</div>
</div>
<div class="Check_Order">
<div style="display:flex;justify-content: space-between;">
<h1>Check Order</h1>
<p>* Required</p>
</div>
<div style="margin-left: 23px;">
<p>
Don't have an account? Simply enter the order number and billing zip code
to get the full story on your order. Paid with Klarna? Use your shipping zip
code instead.
</p>
</div>
<div class="form_Order">
<div><input type="text" id="Order_Number" placeholder="Order Number*" /></div>
<div id="order-ex">e.g. 15133006 or 200006567</div>
<div is="feedback_warning"></div>
<div><input type="email" id="email_Order" placeholder="Email *" /></div>
<div is="feedback_warning"></div>
<div><input type="text" id="Zip_Code_Order" placeholder="Zip Code *" /></div>
<div is="feedback_warning"></div>
<div>
<button id="Order_find">FIND MY ORDER</button>
</div>
</div>
<div style="margin-left: 23px;">
<div>
<h3>NEED HELP?</h3>
<p> If you have any questions or need help with your account, you may <a href="#">contact us</a> to
assist you.</p>
</div>
<div>
<h3>Customer Care ›</h3>
<p>Phone: 4am-9pm PT M-F, 5am-8pm Sat/Sun
Chat: 4am-9pm PT M-F, 5am-8pm Sat/Sun
Phones closed 1/16 and 2/20
</p>
<p>Phone: (800) 622-6953</p>
</div>
</div>
</div>
</div>
<div class="contact">
<div class="contact-care">
<i class="fa-solid fa-phone" style="font-size: 20px;"></i>
<p>(800) 622-6953</p>
<b>Phone: 4am-9pm PT M-F, 5am-8am</b><br>
<b>Sat/Sun</b><br>
<b>Chat: 4am-9pm PT M-F, 5am-8pm Sat/Sum</b><br>
<b>Phones closed 1/16 and 2/20</b>
</div>
<div class="customer-care">
<i class="fa-regular fa-circle-question" style="font-size: 25px;"></i>
<p>Customer Care</p>
</div>
<div class="git">
<i class="fa-solid fa-gift" style="font-size: 25px;"></i>
<p>Gift Cards</p>
</div>
<div class="store">
<i class="fa-solid fa-location-dot" style="font-size: 25px;"></i>
<p>Find a Store</p>
</div>
</div>
<footer>
<div class="footer-top">
<img src="./images/greatReward.png" alt=""><br>
<p class="join">Join the adventure</p>
<p>Get free ground shipping and rewards on every Purchase plus other exclusive benefits<i
class="fa-solid fa-angle-right"></i></p>
</div>
<div class="grid-footer">
<div class="aboutus">
<ul>
<li class="join">About Us</li>
<li>Tough Mother Outdoor Guide</li>
<li>History</li>
<li>Columbia Greater Rewards Program</li>
<li>Corporate Responsibility</li>
<li>Investor Relations</li>
<li>Press Center</li>
<li>Careers</li>
<li>Affiliate Program</li>
<li>Product Testing</li>
<li>Become a Business Partner</li>
<li>Digital Media Resources</li>
</ul>
</div>
<div class="shop">
<ul>
<li class="join">Shop</li>
<li>Shop By Activity</li>
<li>Shop By Technology</li>
<li>Returns</li>
<li>Warranty</li>
<li>Product Care</li>
<li>Accessibility</li>
<li>Special Deals</li>
<li>Professional Purchase</li>
<li>Size Guides</li>
</ul>
</div>
<div class="connectus">
<p class="join">CONNECT WITH US</p>
<p>Subscribe and be the first to hear about new products, sales, and more.</p>
<div class="email-container">
<div class="email-input">
<i class="fa-sharp fa-solid fa-envelope" style="font-size: 30px;"></i>
<input type="text" name="" placeholder="Enter your email address">
<a href=""><i class="fa-solid fa-angle-right" style="font-size: 25px;"></i></a>
</div>
</div>
<p>By signing up, you agree to our Terms of Use and Privacy Policy.</p>
<div class="social-media-icon">
<i class="fa-brands fa-instagram"></i>
<i class="fa-brands fa-facebook-f"></i>
<i class="fa-brands fa-youtube"></i>
<i class="fa-brands fa-twitter"></i>
<i class="fa-brands fa-linkedin-in"></i>
<i class="fa-brands fa-tiktok"></i>
</div>
<p class="join"> CUSTOMER CARE</p>
<p>
Phone: 4am-9pm PT M-F, 5am-8pm Sat/Sun <br> <br>
Chat: 4am-9pm PT M-F, 5am-8pm Sat/Sun <br><br>
Phones closed 1/16 and 2/20 <br><br><br>
<a href="">Give us Feedback</a>
</p>
</div>
</div>
</footer>
</body>
</html>
<script src="./scripts/homepage.js">
</script>
<script>
let user_login = JSON.parse(localStorage.getItem("user_login")) || ""
function openForm(evt, FormName) {
var i, tabcontent, tablinks;
tabcontent = document.getElementsByClassName("tabcontent");
for (i = 0; i < tabcontent.length; i++) {
tabcontent[i].style.display = "none";
}
tablinks = document.getElementsByClassName("tablinks");
for (i = 0; i < tablinks.length; i++) {
tablinks[i].className = tablinks[i].className.replace(" active", "");
}
document.getElementById(FormName).style.display = "block";
evt.currentTarget.className += " active";
}
document.getElementById("defaultOpen").click();
var array = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
let select = document.getElementById("B_Month");
let select2 = document.getElementById("B_Day");
for (let index = 0; index < array.length; index++) {
const element = array[index];
let ele = document.createElement("option")
ele.innerText = `${index + 1}-${element}`;
select.appendChild(ele)
}
for (let index = 1; index <= 31; index++) {
let ele2 = document.createElement("option");
ele2.innerText = index;
select2.appendChild(ele2)
}
let email = document.getElementById("email");
let pass = document.getElementById("password");
let items = document.querySelectorAll(".focus_input")
console.log(items);
items.forEach((el) => {
el.addEventListener("focusout", (e) => {
if (e.target.value == "") {
console.log(e.target.id);
document.getElementById(`${e.target.id}-error`).style.display = "block"
document.getElementById(`${e.target.id}_warning`).innerText = `Please Enter Your ${e.target.id}`;
}
else {
console.log(e.target.id);
document.getElementById(`${e.target.id}-error`).style.display = "none"
document.getElementById(`${e.target.id}_warning`).innerText = "";
}
})
})
let c_pass = document.getElementById("Confirm_password");
c_pass.addEventListener("focusout", (e) => {
if (c_pass.value != pass.value) {
// document.getElementById("Confirm_password-error").style.display = "block"
document.getElementById("Confirm_password_warning").innerText = "Password does not match";
}
})
// pop close
var success_popup = document.getElementById("success");
var login_popup = document.getElementById("login_success");
var s_close = document.getElementById("s_button");
s_close.onclick = function () {
// login_popup.style.display = "none"
success_popup.style.display = "none";
// if(user_login)
// window.location.href = "./index.html"
openForm(event, 'Login')
}
let l_close = document.getElementById("L_button")
l_close.onclick = function () {
login_popup.style.display = "none";
window.location.href = "./index.html"
}
</script>
<script src="./scripts/signup.js"></script>
<script src="./scripts/check-order.js"></script>