forked from vasukomuravelli/Flipkart_Backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproduct.html
616 lines (520 loc) · 34.9 KB
/
product.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
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans&display=swap" rel="stylesheet">
<!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
href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet"
/>
<title>Product Page</title>
<link rel="shortcut icon" type="image/png" href="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxIQDxAQEBAQEA4QEA8QEA8QEBAPDw8QFhYWFhUSFRUYHyggGBolGxYVITEhJSkrLi4uFx80OTQtOCgtLisBCgoKDg0OGhAQGy0mHyItKy0tKy0wLS0tLS0rLS0tLS0rLS0tKy0wLS0tLSstLS0vLS0tLS0tLS0rLSstLS0tLf/AABEIAN8A4gMBIgACEQEDEQH/xAAbAAEAAgMBAQAAAAAAAAAAAAAAAQQCAwUGB//EAEMQAAIBAgIGBgcGBAMJAAAAAAABAgMRBBIFEyExQVEGYXGRobEUIjJSgcHRFkNTcpOiFUJi4SOCgwczY3OSssLS8f/EABwBAAICAwEBAAAAAAAAAAAAAAABAwUCBAYHCP/EAD8RAAEDAQYBCQQHBwUAAAAAAAEAAgMRBAUSITFRQQYTYXGBkaHB0RSSsfAVIjJCUq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Ohs1oZaImzR/ZcARwyOmRVZNE6J5jdqNUABMokAO10c0RDEax1HJRhkSay7W+1dRrWy1xWOB08xo1tKnXUgDIZnMjRTQQPnkEcepr4An4Arig9r9k6Hv1P2/QLopQ51v2/Qov2wun8Z9x3orP6Btmw94LyujMDKvUjCG7fKXCC4tn0ejTUIxhFWjGKil1I0YDBU6EctONk97e2Unzb4lq5wXKS/jekrWxgiNlcIOpJ1caZdAGdBXfLobru32RhLjVztfQee/VRLgXFzmaK1QC4uFEKbggGdElvAIbNdYIQ2CB0TQAi5khTcgghsE1JFyAOidEBBI01AJuYynZN8EnLuAg8E18409Vz43ES4Kbiv8vq/JlMxjPM5z4zqSl3u/zMj6Ds0IghZENGgN7hTyXmk0nOSOfuSe81QAEyiQ9x0Pp5cLm9+cn8FZLyZ4g+iaIo6vD0o8dXFvte35nH8t58F3tj/G8dwBPxwq+5PR4rS5/4WnvJHlVXbi5APKF2dFNyLgAhLi4AIU3FyACVFlmJMQZIordRWbXFJGB2tJaPcm5wtfjHdc48qbWxmxbrvlsspYQacDqCPnVa0coeKhYAy1bI1bNLCdlKsSDPVsjVMeEprExM9WyMjHhOyYKwBnlZDgx4TsnVRcgnIyMj5DwnZCi5z9O4nV4avK9v8OSXbL1V4s6GrfI4PTZ2wjjb26kV8F63yRYXTBz1uhYdC9teoGp8AVr2yTm7PI4ahpp10yXh6K9VGZnHDystnDmidRLl4o91DhuvOaFawbNRLl4oaiXLxQYhuihUUqTlOEVvdku+x9MirJJbklFdiPCaAwsniaKa2XzPav5U38j3mRnnHLufFNBCPutc73iAP8Cus5Nx0jkedSQO4V8wouRcyyPl5DVvl4o4PAdl0qxuLk5HyGR8vIMJ2RksQZat8vIat8vEeF2ydQouLk6t8vI6WjdESm1Kfqw3703Ilgss078Ebanw7SsHyNYKuKrxwk7K0dltgPWKlFbLbiDp/wBnI/xnuVd7adl//9k=">
</head>
<link rel="stylesheet" href="./style/pstyle.css" />
<body>
<div class="navbar">
<div>
<a href = "index.html"><div class="logo">
<img src="https://static-assets-web.flixcart.com/www/linchpin/fk-cp-zion/img/flipkart-plus_8d85f4.png">
<div class="caption">
<div class="flex">
<p>Explore</p>
<p>Plus</p>
</div>
<img src="https://static-assets-web.flixcart.com/www/linchpin/fk-cp-zion/img/plus_aef861.png">
</div>
</div></a>
<div>
<div>
<input type="text" placeholder="Search for products,brand and more" id="searchbox">
<span class="material-icons" id = "search_icon">search</span>
</div>
<ul id="output"></ul>
</div>
</div>
<div>
<div class = "login_div">
<p class = "login">Login</p>
<ul class= "login_dropdown">
<li><b>New Customer? <a href = "./sample.html" class= "signup">Signup</a></b></li>
<li><span class="material-icons">account_circle</span> My Profile</li>
<li><span class="material-icons">add</span> Flipkart Plus Zone</li>
<li><span class="material-icons">list_alt</span> Orders</li>
<li><a href = "./wishlist.html"><span class="material-icons">favorite</span> Wishlist</a></li>
<li><span class="material-icons">confirmation_number</span> Rewards</li>
<li><span class="material-icons">account_balance_wallet</span> Gift Cards</li>
</ul>
</div>
<div class="more">
<div class="flex">
<p class = "text" id= "more">More</p>
<span class="material-icons" id = "micon">arrow_drop_down</span>
</div>
<ul class = "dropdown">
<li><span class="material-icons">notifications</span> Notification Preferances</li>
<li><span class="material-icons">shopping_bag</span> Sell on Flipkart</li>
<li><span class="material-icons">support_agent</span> 24x7 Customer Care</li>
<li><span class="material-icons">moving</span> Advertise</li>
<li><span class="material-icons">get_app</span> Download App</li>
</div>
<a href = "cart.html"><div class="flex">
<span class="material-icons">shopping_cart</span>
<p class = "text">Cart</p>
</div></a>
</div>
</div><!--navbar-->
<div id="contain">
<div id="containLeft">
<div id="containeri">
<div id="imgcontain"></div>
<div id="mainimgcontain"></div>
</div>
<div id="containbutton"></div>
</div>
<div id="containerd"></div>
</div><!--all prod data-->
<p id="info">
<img src="https://rukminim1.flixcart.com/www/2732/193/promos/01/12/2018/8aa01ab4-de88-4a46-9d93-5c7f3ebac2df.png?q=50" />
</p> <!--Image bet prod and foot-->
<div class="foot">
<div class="container">
<div class="row">
<div class="col-md-7">
<div class="inner_row">
<div class="col">
<p class="heading"> ABOUT </p>
<p class="mb-1"> Contact Us </p>
<p class="mb-1"> About Us </p>
<p class="mb-1"> Careers </p>
<p class="mb-1"> Flipkart Stroies </p>
<p class="mb-1"> Press </p>
<p class="mb-1"> Flipkart Wholesale </p>
<p class="mb-1"> Corporate Information </p>
</div>
<div class="col">
<p class="heading"> HELP </p>
<p class="mb-1"> Payments </p>
<p class="mb-1"> Shipping </p>
<p class="mb-1"> Cancellations & returns </p>
<p class="mb-1"> FAQ </p>
<p class="mb-1"> Report Infringement </p>
</div>
<div class="col">
<p class="heading"> POLICY </p>
<p class="mb-1"> Return Policy </p>
<p class="mb-1"> Terms Of Use </p>
<p class="mb-1"> Security </p>
<p class="mb-1"> Privacy </p>
<p class="mb-1"> Sitemap </p>
<p class="mb-1"> EPR Compliance </p>
</div>
<div class="col">
<p class="heading"> SOCIAL </p>
<p class="mb-1"> Facebook </p>
<p class="mb-1"> Twitter </p>
<p class="mb-1"> YouTube </p>
</div>
</div>
</div>
<div class="col-md-5">
<div class="inner_row">
<div class="col">
<p class="heading"> Mail Us </p>
<p class="mb"> Flipkart Internet Private Limited, </p>
<p class="mb"> Buildings Alyssa, Begonia & </p>
<p class="mb"> Clove Embassy Tech Village, </p>
<p class="mb"> Outer Ring Road, Devarabeesanahalli Village, </p>
<p class="mb"> Bengaluru, 560103, </p>
<p class="mb"> Karnataka, India</p>
</div>
<div class="col">
<p class="heading"> Registered Office Address: </p>
<p class="mb"> Flipkart Internet Private Limited, </p>
<p class="mb"> Buildings Alyssa, Begonia & </p>
<p class="mb"> Clove Embassy Tech Village, </p>
<p class="mb"> Outer Ring Road, Devarabeesanahalli Village, </p>
<p class="mb"> Bengaluru, 560103, </p>
<p class="mb"> Karnataka, India </p>
<p class="mb"> CIN : U51109KA2012PTC066107 </p>
<p class="mb"> Telephone: <a class="text-primary" href="tel:18002029898">1800 202 989</a></p>
</div>
</div>
</div>
</div>
<hr/>
</div>
<div class="row">
<div class="flex_footer">
<div>
<img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNSIgdmlld0JveD0iMCAwIDE2IDE1Ij4KICAgIDxkZWZzPgogICAgICAgIDxsaW5lYXJHcmFkaWVudCBpZD0iYSIgeDE9IjAlIiB4Mj0iODYuODc2JSIgeTE9IjAlIiB5Mj0iODAuMjAyJSI+CiAgICAgICAgICAgIDxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiNGRkQ4MDAiLz4KICAgICAgICAgICAgPHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSIjRkZBRjAwIi8+CiAgICAgICAgPC9saW5lYXJHcmFkaWVudD4KICAgIDwvZGVmcz4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZD0iTS0yLTJoMjB2MjBILTJ6Ii8+CiAgICAgICAgPHBhdGggZmlsbD0idXJsKCNhKSIgZmlsbC1ydWxlPSJub256ZXJvIiBkPSJNMTUuOTMgNS42MTRoLTIuOTQ4VjQuMTRjMC0uODE4LS42NTUtMS40NzMtMS40NzMtMS40NzNIOC41NmMtLjgxNyAwLTEuNDczLjY1NS0xLjQ3MyAxLjQ3M3YxLjQ3NEg0LjE0Yy0uODE4IDAtMS40NjYuNjU2LTEuNDY2IDEuNDc0bC0uMDA3IDguMTA1YzAgLjgxOC42NTUgMS40NzQgMS40NzMgMS40NzRoMTEuNzljLjgxOCAwIDEuNDc0LS42NTYgMS40NzQtMS40NzRWNy4wODhjMC0uODE4LS42NTYtMS40NzQtMS40NzQtMS40NzR6bS00LjQyMSAwSDguNTZWNC4xNGgyLjk0OHYxLjQ3NHoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yIC0yKSIvPgogICAgPC9nPgo8L3N2Zz4K" alt="">
<p class = "mb-1">Sell On Flipkart</p>
</div>
<div>
<img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIxNSIgdmlld0JveD0iMCAwIDE1IDE1Ij4KICAgIDxkZWZzPgogICAgICAgIDxsaW5lYXJHcmFkaWVudCBpZD0iYSIgeDE9IjAlIiB4Mj0iODYuODc2JSIgeTE9IjAlIiB5Mj0iODAuMjAyJSI+CiAgICAgICAgICAgIDxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiNGRkQ4MDAiLz4KICAgICAgICAgICAgPHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSIjRkZBRjAwIi8+CiAgICAgICAgPC9saW5lYXJHcmFkaWVudD4KICAgIDwvZGVmcz4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZD0iTS0zLTNoMjB2MjBILTN6Ii8+CiAgICAgICAgPHBhdGggZmlsbD0idXJsKCNhKSIgZmlsbC1ydWxlPSJub256ZXJvIiBkPSJNMTAuNDkyIDNDNi4zNTMgMyAzIDYuMzYgMyAxMC41YzAgNC4xNCAzLjM1MyA3LjUgNy40OTIgNy41QzE0LjY0IDE4IDE4IDE0LjY0IDE4IDEwLjUgMTggNi4zNiAxNC42NCAzIDEwLjQ5MiAzem0zLjE4IDEyTDEwLjUgMTMuMDg4IDcuMzI3IDE1bC44NC0zLjYwN0w1LjM3IDguOTdsMy42OS0uMzE1TDEwLjUgNS4yNWwxLjQ0IDMuMzk4IDMuNjkuMzE1LTIuNzk4IDIuNDIyLjg0IDMuNjE1eiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTMgLTMpIi8+CiAgICA8L2c+Cjwvc3ZnPgo=" alt="">
<p class = "mb-1"> Adervtise</p>
</div>
<div>
<img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR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Yy4yNzgtLjI3LjQ0My0uNjQ1LjQ0My0xLjA1NyAwLS44MjUtLjY3NS0xLjUtMS41LTEuNVM4IDcuNDI1IDggOC4yNUg2LjVhMyAzIDAgMSAxIDYgMGMwIC42Ni0uMjcgMS4yNi0uNjk3IDEuNjg4eiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIgLTMpIi8+CiAgICA8L2c+Cjwvc3ZnPgo=" alt="">
<p class = "mb-1"> Help Center</p>
</div>
<div>
<p class = "mb"> © 2007- 2021 Flipkart.com</p>
</div>
<div>
<img src="https://static-assets-web.flixcart.com/www/linchpin/fk-cp-zion/img/payment-method_69e7ec.svg">
</div>
</div>
</div>
</div> <!--footer-->
<script type="module">
import {search,debounce,displayResults} from "./scripts/script.js";
let more = document.querySelector(".more");
let micon = document.getElementById("micon");
more.onmouseenter = function(){
micon.innerText = "arrow_drop_up";
}
more.onmouseleave = function(){
micon.innerText = "arrow_drop_down";
}
let searchbar = document.getElementById("searchbox");
let output = document.getElementById("output");
searchbar.oninput = function(){
debounce(search,1000);
}
window.onhashchange = function() {
location.reload();
}
</script>
<script>
var prod;
let r_product = window.location.hash.split('=')[1];
console.log(r_product);
fetch(`https://flipkart-dummy-server.herokuapp.com/products/${r_product}`).then(function(res){
return res.json();
}).then(function(res){
// add(res.records[0].fields);
console.log(res);
prod = res.products;
//rob();
console.log(prod)
let container1= document.getElementById("containeri");
let container2= document.getElementById("containerd");
//2 accessing what product is selected
// let prod=JSON.parse(localStorage.getItem("prods"));
var i=prod.image;
console.log("prod :",i);
// i=i.split(", ").map(String);
//console.log(i.length);
while(i.length>6){
i.pop();
}
console.log(i.length);
//3 side image showing
let sideimgcontain=document.getElementById("imgcontain");
i.forEach((elmt)=>{
let divImg=document.createElement("div");
divImg.setAttribute("class","divImg");
let ImG=document.createElement("img");
ImG.setAttribute("class","ImG");
ImG.src=elmt;
divImg.append(ImG);
sideimgcontain.append(divImg);
divImg.onmouseenter=function(){
changeData(elmt)
run();
};
})
function changeData(f){
localStorage.setItem("mainImg",JSON.stringify([]));
let IMGmain=JSON.parse(localStorage.getItem("mainImg"));
IMGmain.push(f);
localStorage.setItem("mainImg",JSON.stringify(IMGmain));
}
//4 main image showing
let mainImgContain=document.getElementById("mainimgcontain");
let imgM=document.createElement("img");
imgM.setAttribute("class","img1");
imgM.src=i[0];
mainImgContain.append(imgM);
//When mouse enters any image in the side the run function will work, replacing the mainImg with upon the hovered one
function run(){
mainImgContain.innerHTML=null;
let imagShow=JSON.parse(localStorage.getItem("mainImg"));
let img1 = document.createElement("img");
img1.setAttribute("class", "img1");
if(imagShow[0]!=null){
img1.src=imagShow[0];
}
mainImgContain.append(img1);
}
let details = document.createElement("div");
details.setAttribute("class", "details");
//5 Wishlist button
let wishlist_icon = document.createElement("div");
wishlist_icon.innerHTML = `<span class="material-icons">favorite_border </span>`;
wishlist_icon.setAttribute("class", "heart");
wishlist_icon.addEventListener("click",function(){
addToWishlist();
})
container1.append(wishlist_icon);
//6 AddCart and BuyNow Buttons
let buttons = document.getElementById("containbutton")
let Add = document.createElement("button");
Add.innerHTML = `<span class="material-icons" style="margin-left:22%; margin-top:6%;">shopping_cart</span><p style="margin-top:8%; font-weight:790"; class ="add">ADD TO CART</p>`;
Add.onclick = function () {
if(document.querySelector(".add").textContent==="ADD TO CART")
{
addproduct();
}
else
{
window.location.href = "cart.html";
}
};
let buy = document.createElement("button");
buy.innerHTML = `<span class="material-icons" style="margin-left:28%; margin-top:6%;">flash_on</span><p style="margin-top:8%; font-weight:790"> BUY NOW</p>`;
buy.onclick = function () {
if(addproduct())
window.location.href = "cart.html";
};
buttons.append(Add, buy);
//7 all data on right side
let catgory=document.createElement("p");
var p=prod.tree;
console.log(p);
catgory.innerText=p;
catgory.setAttribute("class","catgory")
let title = document.createElement("p");
title.innerText = prod.name;
let brand = document.createElement("p");
var n=prod.name.trim().split(" ").map(String);
brand.innerText = n[0];
let Rating_Review_count = document.createElement("div");
let rating = document.createElement("div");
let Reviews = document.createElement("p");
let f_assure = document.createElement("img");
f_assure.src ="https://static-assets-web.flixcart.com/www/linchpin/fk-cp-zion/img/fa_62673a.png";
if (prod.rating != 0) {
rating.innerHTML = Math.round(Math.random()*4+1)+`<span class="material-icons">star_border</span>`;
Reviews.innerText = Math.round(Math.random()*100)+" "+"Reviews";
}
let price = document.createElement("div");
let New_price = document.createElement("p");
New_price.innerText = `₹ ${prod.discount_price}`;
let Old_price = document.createElement("p");
Old_price.innerHTML = `<s>₹ ${prod.retail_price}</s>`;
let discount_tag = document.createElement("p");
if (prod.Old_Price != 0) {
let discount =
((prod.retail_price - prod.discount_price) / prod.retail_price) * 100;
discount_tag.textContent = Math.floor(discount) + "% Off";
discount_tag.style.fontWeight=790;
} else {
discount_tag.textContent = "";
discount_tag.style.display = "none";
}
price.append(New_price, Old_price, discount_tag);
price.setAttribute("class", "price");
Rating_Review_count.append(rating, Reviews, f_assure);
Rating_Review_count.setAttribute("class", "rev_rat");
let offers = document.createElement("div");
offers.setAttribute("class", "offers");
let available = document.createElement("p");
available.textContent = "Available offers";
let a_offers = document.createElement("ul");
let str = `<li><span class="material-icons">sell</span><p style=" font-size:18px;"> Flipkart Pay Later</p></li>
<li><span class="material-icons">sell</span><p><b style = "font-weight:790; font-size:18px;">Bank Offer</b> 5% Unlimited Cashback on Flipkart Axis Bank Credit Card</p></li>
<li><span class="material-icons">sell</span><p><b style = "font-weight:790; font-size:18px;">Bank Offer</b> 15% Instant discount on first Pay Later order of ₹500 and above</p></li>
<li><span class="material-icons">sell</span><p><b style = "font-weight:790; font-size:18px;">Partner Offer</b> Buy and Get Free 6 months Gaana Plus Subscription</p></li>
<li><span class="material-icons">event_available</span><p>No Cost EMI on Bajaj Finserv EMI Card on cart value above ₹2999</p></li>`;
a_offers.innerHTML = str;
offers.append(available, a_offers);
let highlights = document.createElement("div");
let key = document.createElement("p");//hi
key.textContent = "Description";
let specs = document.createElement("ul");// highlights
specs.setAttribute("class", "specs");
specs.textContent=prod.description;
let ser = document.createElement("p");
ser.innerText = "Services";
let services_offer = document.createElement("ul");
services_offer.setAttribute("class", "services_offer");
let string = `<li><span class="material-icons">verified_user</span><p> 1 Year Warranty from the Date of Purchase</p></li>
<li><span class="material-icons">autorenew</span><p> 7 Days Replacement Policy</p></li>
<li><span class="material-icons">currency_rupee</span><p> Cash on Delivery available</p></li>`;
services_offer.innerHTML = string;
highlights.append(key, specs, ser, services_offer);
highlights.setAttribute("class", "highlights");
let del = document.createElement("div");
del.setAttribute("class", "del");
let delivery = document.createElement("p");
delivery.innerText = "Delivery";
let pincode = document.createElement("div");
pincode.innerHTML = `<span class="material-icons">room</span><input id="pin" type = "text" placeholder = "Enter Delivery Pincode"><p onclick = "checkPincode()">Check</p>`;
let delivery_date = document.createElement("p");
let del_cond = document.createElement("p");
del_cond.setAttribute("class", "del_cond");
del.append(delivery, pincode);
details.append(catgory,brand,title,Rating_Review_count,price,offers,del,delivery_date,del_cond,highlights);
container2.append(details);
//8 All functions
async function checkPincode() {
let input = document.querySelector(".del > div input").value;
let resM = await fetch(`https://api.postalpincode.in/pincode/${input}`);
let address = await resM.json();
var currentDate = new Date();
var day = currentDate.getDate() + 2;
var month = currentDate.getMonth() + 1;
const monthNames = ["Jan","Feb","Mar","Apr","May","June","July","Aug","Sep","Oct","Nov","Dec"];
delivery_date.innerHTML = `Will be delivered to <b style = "font-weight:590"> ${address[0].PostOffice[0].Name},${address[0].PostOffice[0].District} by ${day} ${monthNames[month - 1]}</b>`;
del_cond.textContent = `if ordered before by 11:45 PM`;
}
const usertoken = JSON.parse(localStorage.getItem("token"))?.token;
const userid = JSON.parse(localStorage.getItem("token"))?.user._id;
function addToWishlist(){//Double click to add
let heart_button = document.querySelector('.heart');
console.log(prod._id);
fetch(`https://flipkart-dummy-server.herokuapp.com/wishlist/`+userid,{headers : {authorization : "Bearer"+" "+usertoken}}).then(function(res){
return res.json();
}).then(function(res){
let data = res.wishlist;
console.log("wishlist :",data);
if(data.length == 0)
{
fetch("https://flipkart-dummy-server.herokuapp.com/wishlist", {
method: "POST",
body: JSON.stringify({product: prod,}),
headers: {"Content-type": "application/json; charset=UTF-8",authorization : "Bearer"+" "+usertoken}
}).then(res => {
heart_button.style.color="red";
return alert(`${prod.name} is added to your wishlist`);
}).catch((e)=>{
alert("Error : Please login first");
});
}
else{
data.forEach((el)=>{
if(el.product._id == prod._id)
{
fetch("https://flipkart-dummy-server.herokuapp.com/wishlist/"+ el._id, {
method: "DELETE",
headers: {"Content-type": "application/json; charset=UTF-8",authorization : "Bearer"+" "+usertoken}
}).then(res => {
console.log("Request complete! response:", res);
heart_button.style.color="grey";
return alert(`${prod.name} is removed from your wishlist`);
}).catch((e)=>{
alert("Error : ",e);
});
}
else{
fetch("https://flipkart-dummy-server.herokuapp.com/wishlist/", {
method: "POST",
body: JSON.stringify({product: prod._id,}),
headers: {"Content-type": "application/json; charset=UTF-8",authorization : "Bearer"+" "+usertoken}
}).then(res => {
console.log("Request complete! response:", res);
heart_button.style.color="red";
return alert(`${prod.name} is added to your wishlist`);
}).catch((e)=>{
alert("Error : Please login first");
});
}
});
}
}).catch((e)=>{
alert("Error : Please login first")
});
}
function addproduct(){
if(usertoken)
fetch("https://flipkart-dummy-server.herokuapp.com/cart", {
method: "POST",
body: JSON.stringify({product: prod,}),
headers: {"Content-type": "application/json; charset=UTF-8",authorization : "Bearer"+" "+usertoken}
}).then((res) => {
document.querySelector(".add").textContent = "GO TO CART";
return alert(`${prod.name} is added to your cart`);
});
else
alert("Error : Please login first");
}
});
// function add(d){
// //if(localStorage.getItem("prods")===null){
// localStorage.setItem("prods",JSON.stringify([]))
// //}
// let prod_data={
// category:d.category ,
// description:d.description,
// discount_price:d.discount_price,
// image:d.image,
// name:d.name,
// rating:d.rating,
// retail_price:d.retail_price,
// tree:d.tree,
// }
// let data=JSON.parse(localStorage.getItem("prods"));
// data.push(prod_data);
// localStorage.setItem("prods",JSON.stringify(data));
// }
if(JSON.parse(localStorage.getItem("token")).token)
{
let id = JSON.parse(localStorage.getItem("token")).user._id;
let usertoken = JSON.parse(localStorage.getItem("token")).token;
fetch(`https://flipkart-dummy-server.herokuapp.com/cart/${id}`,{
headers : {authorization : "Bearer"+" "+usertoken}
}).then(function(res){
return res.json();
}).then(function(res){
let data = res.cart;
data.forEach((el)=>{
if(el.product.name===prod.name)
{
document.querySelector(".add").textContent = "GO TO CART";
}
})
});
fetch(`https://flipkart-dummy-server.herokuapp.com/wishlist/${id}`,{
headers : {authorization : "Bearer"+" "+usertoken}
}).then(function(res){
return res.json();
}).then(function(res){
let data = res.wishlist;
data.forEach((el)=>{
if(el.product.name===prod.name)
{
document.querySelector('.heart').style.color = "RED";
}
})
});
}
let checkin = document.querySelector(".login");
let dropdown = document.querySelector(".login_dropdown");
console.log(dropdown);
if(localStorage.getItem("token"))
{
checkin.innerText = JSON.parse(localStorage.getItem("token")).user.username;
checkin.style.color= "white";
let logindiv = document.querySelector(".login_div");
logindiv.style.backgroundColor = "inherit";
dropdown.innerHTML += `<li><span class="material-icons">power_settings_new</span>Logout</li>`;
document.querySelector('.login_dropdown').removeChild(document.querySelector('.login_dropdown').getElementsByTagName('li')[0]);
dropdown.lastChild.addEventListener("click",()=>{logout()});
}
function logout(){
console.log("you logoutted");
localStorage.removeItem("token");
window.location.href = "index.html";
}
</script>
</body>
</html>