-
Notifications
You must be signed in to change notification settings - Fork 0
/
wishlist.html
546 lines (468 loc) · 20.6 KB
/
wishlist.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
<!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>Online Fashion Shopping for Men,Women,Accessories-Bewakoof.com</title>
<link rel="shortcut icon" type="image/x-icon" href="https://images.bewakoof.com/web/favicon-1635856217.png"
hreflang="en-in">
<link rel="stylesheet" href="wishlist.css">
<link rel="stylesheet" href="cart.css">
<!-- <link rel="stylesheet" href="dropdown.css"> -->
</head>
<body>
<!-- top section -->
<div id="header">
<div id="topsection">
<div id="firstdiv">
<div><a href="#">
<p>Offers</p>
</a></div>
<div><a href="#">
<p>Fanpage</p>
</a></div>
<div><img id="dwimg" src="https://img.icons8.com/fluency-systems-regular/344/iphone.png" alt="mobile"><a
href="#">
<p>Download App</p>
</a></div>
<div><a href="#">
<p>TriBe Membership</p>
</a></div>
</div>
<div id="lastdiv">
<div><a href="#">
<p>Contact Us</p>
</a></div>
<div><a href="#">
<p>Track Order</p>
</a></div>
</div>
</div>
<!-- navbar -->
<div id="navbar">
<div id="logo_and_page">
<div id="logo">
<img id="resp_menu" src="https://img.icons8.com/ios-filled/2x/menu--v4.gif" alt="">
<a href="index.html"><img src=" https://images.bewakoof.com/web/ic-desktop-pride-bwkf-logo.svg" alt="">
<img id="resp_logo" src="https://images.bewakoof.com/web/ic-web-bwkf-logo-pride-.svg" alt="">
</a>
</div>
<div class="sections dropdown anim-link" id="men">
<a id="men" target="_blank" href="menspage.html">MEN</a>
<div class="dropdown-content">
<ul> <a href="menspage.html">Topwear</a>
<li><a href="menspage.html">Printed Shirts</a></li>
<li><a href="menspage.html">Over Sized Shirts</a></li>
<li><a href="#">Shirts</a></li>
<li><a href="#">VestS</a></li>
<li><a href="#">TShirts</a></li>
<li><a href="#">Kurtas</a></li>
</ul>
<ul> <a href="menspage.html">Bottomwear</a>
<li><a href="menspage.html">Poggers</a></li>
<li><a href="menspage.html">Payjams</a></li>
<li><a href="#">Shorts</a></li>
<li><a href="#">Jeans</a></li>
<li><a href="#">Denim</a></li>
<li><a href="#">Boxers</a></li>
</ul>
<ul> <a href="menspage.html">Sports&activewear</a>
<li><a href="menspage.html">Active TShirts</a></li>
<li><a href="menspage.html">Sports Shorts</a></li>
<li><a href="#">Clogs</a></li>
<li><a href="#">Flip-flops</a></li>
<li><a href="#">Casual Shoes</a></li>
</ul> <hr>
<ul> <a href="menspage.html" id="spacial_ul">SPACIALS</a>
<li><a href="menspage.html"><img src="https://images.bewakoof.com/nav_menu/OOFsale-CircleNavigation-168x168--revised-1654790782.png" alt="">OFF Sale</a></li>
<li><a href="#"><img src="https://images.bewakoof.com/nav_menu/go-local-icon-1654622393.png" alt="">Go local collection</a></li>
<li><a href="#"><img src="https://images.bewakoof.com/nav_menu/arena-icon-1652290108.png" alt="">Arena collection</a></li>
<li><a href="#"><img src="https://images.bewakoof.com/nav_menu/coke-icon-1645251020.png" alt="">Coca Colla collection</a></li>
</ul>
</div>
</div>
<div class="sections dropdown anim-link" id="women">
<a id="women" target="_blank" href="women.html"> WOMEN</a>
<div class="dropdown-content">
<ul> <a href="women.html">Topwear</a>
<li><a href="#">Printed Shirts</a></li>
<li><a href="#">Boyfriend TShirts</a></li>
<li><a href="#">Shirts</a></li>
<li><a href="#">Top</a></li>
<li><a href="#">OnePeace</a></li>
<li><a href="#">Kurtas</a></li>
</ul>
<ul> <a href="women.html">Bottomwear</a>
<li><a href="#">Poggers</a></li>
<li><a href="#">Payjams</a></li>
<li><a href="#">Shorts</a></li>
<li><a href="#">Jeans</a></li>
<li><a href="#">Denim</a></li>
<li><a href="#">Boxers</a></li>
</ul>
<ul> <a href="women.html">Footwear</a>
<li><a href="#">Sliders</a></li>
<li><a href="#">Slippers</a></li>
<li><a href="#">Clogs</a></li>
<li><a href="#">Flip-flops</a></li>
<li><a href="#">Casual Shoes</a></li>
</ul> <hr>
<ul> <a href="women.html" id="spacial_ul">SPACIALS</a>
<li><a href="#"><img src="https://images.bewakoof.com/nav_menu/OOFsale-CircleNavigation-168x168--revised-1654790782.png" alt="">OFF Sale</a></li>
<li><a href="#"><img src="https://images.bewakoof.com/nav_menu/Circle-icon-kpop-1654702057.png" alt="">K Pop collection</a></li>
<li><a href="#"><img src="https://images.bewakoof.com/nav_menu/icon-regional-1652171530.png" alt="">Regional collection</a></li>
<li><a href="#"><img src="https://images.bewakoof.com/nav_menu/coke-icon-1645251020.png" alt="">Coca Colla collection</a></li>
</ul>
</div>
</div>
<div class="sections dropdown anim-link" id="mobile">
<a id="MOBILE_COVERS"target="_blank" href="cover.html"> MOBILE COVERS</a>
<div class="dropdown-content">
<ul> <a href="cover.html"Oneplus</a>
<li><a href="cover.html">Oneplus Nord</a></li>
<li><a href="#">Oneplus 9R</a></li>
<li><a href="#">Oneplus 9</a></li>
<li><a href="#">Oneplus 10</a></li>
</ul>
<ul> <a href="cover.html">Xiaomi </a>
<li><a href="#"> Xiaomi Mi 10i</a></li>
<li><a href="#"> Xiaomi Redmi Note 10</a></li>
<li><a href="#">Xiaomi Mi 11X Pro</a></li>
<li><a href="#">Xiaomi 5G </a></li>
<li><a href="#">Xiaomi 12 Pro 5G </a></li>
</ul>
<ul> <a href="cover.html">Apple</a>
<li><a href="#">Iphone 12</a></li>
<li><a href="#">Iphone 11</a></li>
<li><a href="#">Iphone 11pro</a></li>
<li><a href="#">Iphone XR</a></li>
<li><a href="#">Iphone X</a></li>
</ul> <hr>
<ul> <a href="cover.html" id="spacial_ul">OTHERS BRANDS</a>
<li><a href="#">Oppo</a></li>
<li><a href="#">Infinix</a></li>
<li><a href="#">Moto</a></li>
<li id="span_see_all"><a href="#"><span style=" text-decoration: underline;">See all devices</span></a></li>
</ul>
<a href="#"> <img id="mobile_cover_img" src="https://images.bewakoof.com/nav_menu/bewakoof-online-fashion-COTM-mobile-cover-navigation-box-desktop-1612275399.jpg" alt="mobile"></a>
</div>
</div>
</div> <div id="search_login">
<div id="search"><img id="search_icon"
src="https://www.clker.com/cliparts/z/1/T/u/9/2/search-icon-md.png" alt="search">
<input id="search_input" type="text" placeholder="Search by product,category or collection">
<img id="search_icon2" src="https://www.clker.com/cliparts/z/1/T/u/9/2/search-icon-md.png"
alt="search">
</div>
<hr id="hr1" />
<div id="login"><a id="login_text" href="login.html">Login</a><a href="wishlist.html"><img id="wishlist_icon"
src="https://cdn.onlinewebfonts.com/svg/img_126692.png" alt="wishlist">
</a>
<a href="cart.html"><img id="bag_icon" src="https://cdn.onlinewebfonts.com/svg/img_60675.png" alt="bag"></a>
</div>
</div>
</div>
</div>
<div id="main">
<div id="cartitem">
<!-- <div><img src="https://images.bewakoof.com/web/group-3x-1509961969.png" alt="">
<p> Your Wishlist is Empty !</p>
<button id="shop_btn">Continue Shopping</button>
</div> -->
</div>
</div>
<div id="footer">
<div id="subdivfooter">
<div id="footer_logo"><a href="#">
<h1>Bewakoof</h1>
</a>
<p>®</p>
</div>
<div id="customer_service_section">
<div>
<h4>CUSTOMER SERVICE</h4>
<a href="#">
<p>Contact Us</p>
</a>
<a href="#">
<p>Track Order</p>
</a>
<a href="#">
<p>Return Order</p>
</a>
<a href="#">
<p>Cancel Order</p>
</a>
</div>
<div>
<h4>COMPANY</h4>
<a href="#">
<p>About Us</p>
</a>
<a href="#">
<p>We're Hiring</p>
</a>
<a href="#">
<p>Terms & Conditions</p>
</a>
<a href="#">
<p>Privacy Policy</p>
</a>
<a href="#">
<p>Blog</p>
</a>
</div>
<div>
<h4>CONNECT WITH US</h4>
<div id="facebook">
<img src="https://img.icons8.com/ios/72/facebook--v2.gif" alt="facebook">
<a href="#">4.7M People Like this</a>
</div>
<div id="instagram">
<img src="https://icon-library.com/images/instagram-icon-png-white/instagram-icon-png-white-2.jpg"
alt="instagram">
<a href="#">1M Followers</a>
</div>
<div id="social_media">
<a href="#"><img src="https://img.icons8.com/ios/72/twitter--v2.gif" alt="twitter"></a>
<a href="#"> <img src="https://img.icons8.com/ios/72/pinterest--v2.gif" alt="pintrest"></a>
<a href="#"> <img src="https://www.svgrepo.com/show/303130/snapchat-logo.svg"
alt="snapchat"></a>
<a href="#"> <img
src="https://upload.wikimedia.org/wikipedia/commons/thumb/4/46/Apple_Store_logo.svg/768px-Apple_Store_logo.svg.png?20160712035545"
alt="apple"></a>
</div>
</div>
<div>
<h4>KEEP UP TO DATE</h4>
<div id="subscribe"><input id="subscribe_input" type="text" placeholder="Enter Email Id"><button
id="subscribe_btn">SUBSCRIBE</button></div>
</div>
</div>
<div id="return_section">
<div>
<div id="return"><img
src="https://img.icons8.com/external-flat-juicy-fish/344/external-refund-banking-flat-flat-juicy-fish.png"
alt=""><a href="#">15 Days return policy*</a>
</div>
<div id="cash_on_del"><img src="https://img.icons8.com/color/344/refund.png" alt=""><a href="#">Cash
on delivery*</a></div>
</div>
<div id="app_download">
<h4>Download THE APP</h4>
<a href="#"><img id="android"
src="https://www.logo.wine/a/logo/Google_Play/Google_Play-Badge-Logo.wine.svg"
alt="android"></a>
<a href="#"><img id="ios"
src="https://www.logo.wine/a/logo/App_Store_(iOS)/App_Store_(iOS)-Badge-Logo.wine.svg"
alt="aple"></a>
</div>
<div>
<div id="payment">
<h4>100% SECURE PAYMENT</h4>
<img src="https://images.bewakoof.com/web/secure-payments-image.png" alt="payment">
</div>
</div>
</div>
<hr>
<div id="product_section">
<div>
<a href="#">
<h2>MEN"S CLOTHING</h2>
</a>
<a href="#">
<p>Top Wear</p>
</a>
<a href="#">
<p> Men's New Arrivals</p>
</a>
<a href="#">
<p> Men's T-Shirts</p>
</a>
<a href="#">
<p>Men's Hoodies & Sweatshirts</p>
</a>
<a href="#">
<p>Men's Dresses</p>
</a>
<a href="#">
<p>Men's 3/4 Sleeve T-Shirts</p>
</a>
<a href="#">
<p>Men's Kurtis</p>
</a>
<a href="#">
<p>Men's Combo T-Shirts</p>
</a>
<a href="#">
<p>Men's Nightwear</p>
</a>
<a href="#">
<p>Men's Plus Size Store</p>
</a>
</div>
<div>
<a href="#">
<h2>WOMEN'S CLOTHING</h2>
</a>
<a href="#">
<p>Women's Top Wear</p>
</a>
<a href="#">
<p>Women's New Arrivals</p>
</a>
<a href="#">
<p>Women's T-Shirts</p>
</a>
<a href="#">
<p>Women's Hoodies & Sweatshirts</p>
</a>
<a href="#">
<p>Women's Dresses</p>
</a>
<a href="#">
<p>Women's 3/4 Sleeve T-Shirts</p>
</a>
<a href="#">
<p>Women's Kurtis</p>
</a>
<a href="#">
<p>Women's Combo T-Shirts</p>
</a>
<a href="#">
<p>Women's Nightwear</p>
</a>
<a href="#">
<p>Women's Plus Size Store</p>
</a>
</div>
<div>
<a href="#">
<h2>MOBILE COVERS</h2>
</a>
<a href="#">
<p> Brands</p>
</a>
<a href="#">
<p>Apple</p>
</a>
<a href="#">
<p> Realme</p>
</a>
<a href="#">
<p> Samsung</p>
</a>
<a href="#">
<p>Oppo</p>
</a>
<a href="#">
<p> Xiaomi
</p>
</a>
<a href="#">
<p> Oneplus
</p>
</a>
<a href="#">
<p> Vivo</p>
</a>
</div>
<div id="fanbook_section">
<a href="#">
<h2>FANBOOK</h2>
</a>
<a href="#">
<h2>OFFERS</h2>
</a>
<a href="#">
<h2>SITEMAP</h2>
</a>
</div>
</div>
</div>
</div>
</body>
</html>
<script>
let Namearr = JSON.parse(localStorage.getItem("username")) ;
Namearr.map(function(ele){
document.getElementById("login_text").innerText=ele.name;
})
let addtoCart=JSON.parse(localStorage.getItem("cartlist"))||[];
let wishlistData= JSON.parse(localStorage.getItem("wishlistItem"))
wishlistData.map(function(elem,index){
console.log(elem)
let div=document.createElement("div");
let div2=document.createElement("div");
div2.setAttribute("class","card");
let img=document.createElement("img");
img.setAttribute("src",elem.image_url);
let h2=document.createElement("h2");
h2.innerText=elem.head;
let p=document.createElement("p");
p.innerText=elem.name;
let h3=document.createElement("h2");
h3.setAttribute("id","price");
h3.innerText=+elem.price;
let h4=document.createElement("p");
h4.innerText="You saved ₹650!"
h4.style.color="teal";
// opt.createElement("option");
let p2=document.createElement("p");
p2.innerText="Quantity:-"+" "+elem.counter;
var array1 = ["SIZE","S","M","L"];
let selectlist1=document.createElement("select");
selectlist1.id = "mySelect";
for (var i = 0; i < array1.length; i++) {
var option = document.createElement("option");
option.value = array1[i];
option.text = array1[i];
selectlist1.appendChild(option);
}
var array2 = ["QTY",1,2,3,4,5,6,7,8,9];
let selectlist2=document.createElement("select");
selectlist2.id = "mySelect2";
for (var i = 0; i < array2.length; i++) {
var option = document.createElement("option");
option.value = array2[i];
option.text = array2[i];
selectlist2.appendChild(option);
}
let btn= document.createElement("button")
btn.innerText="Add To Cart"
btn.addEventListener("click", function(){
myData(elem,index)
})
div2.append(h2,p,h3,h4, p2,selectlist1,selectlist2,btn);
div.append(div2,img)
document.querySelector("#cartitem").append(div);
});
function myData(elem,index){
if (addtoCart.length == 0) {
let a = elem;
a.counter = 1;
addtoCart.push(a);
}
else {
let flag = false;
for (let i = 0; i < addtoCart.length; i++) {
if (addtoCart[i].image_url == elem.image_url) {
addtoCart[i].counter++;
flag = true;
break;
}
} if (flag == false) {
let a = elem;
a.counter = 1;
addtoCart.push(a);
}
}
// addtoCart.push(elem)
localStorage.setItem("cartlist", JSON.stringify(addtoCart));
alert("Added to Cart")
wishlistData.splice(index,1)
localStorage.setItem("wishlistItem",JSON.stringify(wishlistData))
window.location.reload();
}
</script>