-
Notifications
You must be signed in to change notification settings - Fork 0
/
sriram2.html
558 lines (518 loc) · 33.9 KB
/
sriram2.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Products</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<!--Header-->
<div id="parent4">
<div class="logo" style="position: absolute;"><img src="Images/logo web.png" alt="Comp"></div>
<div class="search1" style="position: absolute; left: 500px;">
<input type="text" class="search" placeholder="Search Items">
<a href="sriram3.html"><button class="searchbutton" onclick="log1();">
<img src="Images/blue mag.png">
</button></a>
</div>
<div style="position: absolute; left: 1450px; display: flex; align-items: center; justify-content: center; gap: 15px;">
<div class="newchild2 UserAcc" style="margin-right: 0;">
<div style="color: aqua; white-space: nowrap;"><a href="#" style="text-decoration: none; color: aqua;">User Account</a></div>
<div class="ToolTip">
<div id="CSRS">hi</div>
</div>
</div>
<div class="newchild2" style="margin-right: 0;">
<div style="color: aqua; white-space: nowrap;"><a href="sriram4.html" style="text-decoration: none; color: aqua;">Review Orders</a></div>
</div>
<div class="newchild2">
<a href="cart.html" style="display: flex; align-items: center;justify-content: center; text-decoration: none;">
<div style="color: aqua;">Cart</div>
<button class="cartIcon"><img src="Images/blucart.png"></button>
</a>
<span>0</span>
</div>
</div>
</div>
<!--Box with main content-->
<center><div class="main-content">
<div class="main-scroll">
<div class="main-scroll-box">
<img src="Images/main-img-1.jpg">
<img src="Images/main-img-2.png">
<img src="Images/main-img-3.jpg">
<img src="Images/main-img-4.jpg">
</div>
</div>
<div class="iconright2">
<img src="Images/iconright.png" style="height: 46px;" onclick="transright2();">
</div>
<div class="iconleft2">
<img src="Images/iconright.png" style="height: 46px; transform: scaleX(-1);" onclick="transleft2();">
</div>
<div class="bottom">
<div class="dot" style="background-color: white;"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
</div>
</div><center>
<!--Box having Products and Brand Logos-->
<div class="new">
<center><div id="newparent">
<div class="notFound" style="display: none;padding-top: 30px;">
<img src="Images/not found.png" style="border-radius: 10px;">
<p style="padding-top: 0px;color: #f19b1a;">No Results Found !</p>
</div>
<center><div id="boxparent1">
<div class="newchild"><centre><img src="Images/sonytv1.jpg" alt="Comp1" style="width: 240px;height: 170px;padding-top: 20px;"></centre><div class="item1"><p style="font-size: 21px;">Sony Bravia 164 cm (65 inches) 4K Ultra HD Smart LED Google TV KD-65X74L (Black)</p></div><img src="Images/rating-45.png" alt="Comp1" style="height: 24px;padding: 10px;"><div>
<div class="item1" style="color: red;">-46%</div><div class="item2" style="font-size:xx-large;border-bottom: solid 1px;display: inline-block;width: 280px;">₹75,999</div><h2 style="display: none;">Sony Bravia TV</h2>
<div class="qty"><p style="color: black; font-size:larger;display: inline-block;">Quantity:</p><select class="quantity1" onchange=" count = (document.querySelector('.quantity1').value); change();" style="font-weight: bold; width: 45px;height: 23px;cursor: pointer;">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
</select></div>
<div class="hiddenMessage1 hiddenMessage"><img src="Images/526-5264359_check-mark-icon-transparent-hd-png-download.png" style="width: 27px; height: 23px; border-radius: 50%;">Added</div>
<div style="padding-top: 25px;"><button class="see1" onclick="message = document.querySelector('.hiddenMessage1');
hid(); Popup(); cartClick('SonyTV' , '75,999' , 'Images/sonytv1.jpg'); cart();">Add To Cart</button></div></div></div>
<div class="newchild"><centre><img src="Images/tlctv1.jpg" alt="Comp1" style="width: 240px;height: 170px;padding-top: 20px;"></centre><div class="item1"><p style="font-size: 21px;">TCL 139 cm (55 inches) 4KUltra HD Smart QLED Google TV 55C645 (Black)</p></div><img src="Images/rating-4.png" alt="Comp1" style="height: 24px;padding: 10px;"><div>
<div class="item1" style="color: red;">-54%</div><div class="item2" style="font-size:xx-large;border-bottom: solid 1px;display: inline-block;width: 280px;">₹62,599</div><h2 style="display: none;">TCL TV</h2>
<div class="qty"><p style="color: black; font-size:larger;display: inline-block;">Quantity:</p><select class="quantity2" onchange=" count = (document.querySelector('.quantity2').value); change();" style="font-weight: bold; width: 45px;height: 23px;cursor: pointer;">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
</select></div>
<div class="hiddenMessage2 hiddenMessage"><img src="Images/526-5264359_check-mark-icon-transparent-hd-png-download.png" style="width: 27px; height: 23px; border-radius: 50%;">Added</div>
<div style="padding-top: 25px;"><button class="see1" onclick="message = document.querySelector('.hiddenMessage2');
hid(); Popup(); cartClick('TCLTV' , '62,599' , 'Images/tlctv1.jpg'); cart();">Add To Cart</button></div></div></div>
<div class="newchild"><centre><img src="Images/onephone.jpg" alt="Comp1" style="width: 200px;height: 195px;padding-top: 20px;"></centre><div class="item1"><p style="font-size: 21px;">OnePlus 11R 5G (Sonic Black, 8GB RAM, 128GB Storage)</p></div><img src="Images/rating-4.png" alt="Comp1" style="height: 24px;padding: 10px;"><div>
<div class="item1" style="color: red;">-18%</div><div class="item2" style="font-size:xx-large;border-bottom: solid 1px;display: inline-block;width: 280px;">₹34,999</div><h2 style="display: none;">OnePlus Phone</h2>
<div class="qty"><p style="color: black; font-size:larger;display: inline-block;">Quantity:</p><select class="quantity3" onchange=" count = (document.querySelector('.quantity3').value); change();" style="font-weight: bold; width: 45px;height: 23px;cursor: pointer;">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
</select></div>
<div class="hiddenMessage3 hiddenMessage"><img src="Images/526-5264359_check-mark-icon-transparent-hd-png-download.png" style="width: 27px; height: 23px; border-radius: 50%;">Added</div>
<div style="padding-top: 25px;"><button class="see1" onclick="message = document.querySelector('.hiddenMessage3');
hid(); Popup(); cartClick('OnePhone' , '34,999' , 'Images/onephone.jpg'); cart();">Add To Cart</button></div></div></div>
<div class="newchild"><centre><img src="Images/716fAVud8PL._AC_UY218_.jpg" alt="Comp1" style="width: 200px;height: 195px;padding-top: 20px;"></centre><div class="item1"><p style="font-size: 21px;">Apple iPhone 14 Plus (512 GB) - (Product) RED</p></div><img src="Images/rating-45.png" alt="Comp1" style="height: 24px;padding: 10px;"><div>
<div class="item1" style="color: red;">-15%</div><div class="item2" style="font-size:xx-large;border-bottom: solid 1px;display: inline-block;width: 280px;">₹88,999</div><h2 style="display: none;">Apple iPhone</h2>
<div class="qty"><p style="color: black; font-size:larger;display: inline-block;">Quantity:</p><select class="quantity4" onchange=" count = (document.querySelector('.quantity4').value); change();" style="font-weight: bold; width: 45px;height: 23px;cursor: pointer;">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
</select></div>
<div class="hiddenMessage4 hiddenMessage"><img src="Images/526-5264359_check-mark-icon-transparent-hd-png-download.png" style="width: 27px; height: 23px; border-radius: 50%;">Added</div>
<div style="padding-top: 25px;"><button class="see1" onclick="message = document.querySelector('.hiddenMessage4');
hid(); Popup(); cartClick('Apple Iphone' , '88,999' , 'Images/716fAVud8PL._AC_UY218_.jpg'); cart();">Add To Cart</button></div></div></div>
<div class="newchild"><centre><img src="Images/headphone.jpg" alt="Comp1" style="width: 200px;height: 195px;padding-top: 20px;"></centre><div class="item1"><p style="font-size: 21px;">ZEBRONICS Duke Bluetooth Wireless Headphone (Black)</p></div><img src="Images/rating-45.png" alt="Comp1" style="height: 24px;padding: 10px;"><div>
<div class="item1" style="color: red;">-44%</div><div class="item2" style="font-size:xx-large;border-bottom: solid 1px;display: inline-block;width: 280px;">₹1,399</div><h2 style="display: none;">Zebronics Headphone</h2>
<div class="qty"><p style="color: black; font-size:larger;display: inline-block;">Quantity:</p><select class="quantity5" onchange=" count = (document.querySelector('.quantity5').value); change();" style="font-weight: bold; width: 45px;height: 23px;cursor: pointer;">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
</select></div>
<div class="hiddenMessage5 hiddenMessage"><img src="Images/526-5264359_check-mark-icon-transparent-hd-png-download.png" style="width: 27px; height: 23px; border-radius: 50%;">Added</div>
<div style="padding-top: 25px;"><button class="see1" onclick="message = document.querySelector('.hiddenMessage5');
hid(); Popup(); cartClick('Zebronics Headphone' , '1,399' , 'Images/headphone.jpg'); cart();">Add To Cart</button></div></div></div>
</div></center>
<!--Box having Brand Logos-->
<div class="parentbrand">
<div style="font-size: 22px; padding-top: 20px; text-align: left; padding-left: 50px; color: rgb(1, 253, 241); font-family:'Poppins',sans-serif;" class="shop">Shop By Brands</div>
<div class="brandBox">
<div class="innerBox">
<div class="innerBox1">
<div class="logoBox"><img src="Images/LG logo.png" class="logoImg"></div>
<div class="logoBox"><img src="Images/apple logo.png" class="logoImg"></div>
<div class="logoBox"><img src="Images/samsung logo.png" class="logoImg"></div>
<div class="logoBox"><img src="Images/lenovo logo.png" class="logoImg"></div>
<div class="logoBox"><img src="Images/dell logo.png" class="logoImg"></div>
<div class="logoBox"><img src="Images/hp logo.png" class="logoImg"></div>
<div class="logoBox"><img src="Images/acer logo.png" class="logoImg"></div>
<div class="logoBox"><img src="Images/sony logo.png" class="logoImg"></div>
<div class="logoBox"><img src="Images/boat logo.png" class="logoImg"></div>
<div class="logoBox"><img src="Images/canon logo.png" class="logoImg"></div>
<div class="logoBox"><img src="Images/gopro logo.png" class="logoImg"></div>
<div class="logoBox"><img src="Images/asus logo.png" class="logoImg"></div>
<div class="logoBox"><img src="Images/yamaha logo.png" class="logoImg"></div>
<div class="logoBox"><img src="Images/senn logo.png" class="logoImg"></div>
</div>
</div>
<div class="iconright1">
<img src="Images/iconright.png" style="height: 46px;" onclick="transright1();">
</div>
<div class="iconleft1">
<img src="Images/iconright.png" style="height: 46px; transform: scaleX(-1);" onclick="transleft1();">
</div>
</div>
</div>
<div id="boxparent2">
<div class="newchild"><centre><div style="height: 195px;"><img src="Images/sac1.jpg" alt="Comp1" style="width: 240px;height: 100px;padding-top: 35px;"></div></centre><div class="item1"><p style="font-size: 21px;">Samsung 1.5 Ton 5 Star (5-in-1 Convertible) Cooling, Inverter Split AC</p></div><img src="Images/rating-45.png" alt="Comp1" style="height: 24px;padding: 10px;"><div>
<div class="item1" style="color: red;">-38%</div><div class="item2" style="font-size:xx-large;border-bottom: solid 1px;display: inline-block;width: 280px;">₹44,980</div><h2 style="display: none;">Samsung AC</h2>
<div class="qty"><p style="color: black; font-size:larger;display: inline-block;">Quantity:</p><select class="quantity6" onchange=" count = (document.querySelector('.quantity6').value); change();" style="font-weight: bold; width: 45px;height: 23px;cursor: pointer;">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
</select></div>
<div class="hiddenMessage6 hiddenMessage"><img src="Images/526-5264359_check-mark-icon-transparent-hd-png-download.png" style="width: 27px; height: 23px; border-radius: 50%;">Added</div>
<div style="padding-top: 25px;"><button class="see1" onclick="message = document.querySelector('.hiddenMessage6');
hid(); Popup(); cartClick('Samsung AC' , '44,980' , 'Images/sac1.jpg'); cart();">Add To Cart</button></div></div></div>
<div class="newchild"><centre><div style="height: 195px;"><img src="Images/sac2.jpg" alt="Comp1" style="width: 240px;height: 100px;padding-top: 35px;"></div></centre><div class="item1"><p style="font-size: 21px;">Voltas 1.5 ton 5 Star, Inverter Split AC (Copper, 4-in-1 Adjustable Mode, White)</p></div><img src="Images/rating-4.png" alt="Comp1" style="height: 24px;padding: 10px;"><div>
<div class="item1" style="color: red;">-50%</div><div class="item2" style="font-size:xx-large;border-bottom: solid 1px;display: inline-block;width: 280px;">₹32,590</div><h2 style="display: none;">Voltas AC</h2>
<div class="qty"><p style="color: black; font-size:larger;display: inline-block;">Quantity:</p><select class="quantity7" onchange=" count = (document.querySelector('.quantity7').value); change();" style="font-weight: bold; width: 45px;height: 23px;cursor: pointer;">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
</select></div>
<div class="hiddenMessage7 hiddenMessage"><img src="Images/526-5264359_check-mark-icon-transparent-hd-png-download.png" style="width: 27px; height: 23px; border-radius: 50%;">Added</div>
<div style="padding-top: 25px;"><button class="see1" onclick="message = document.querySelector('.hiddenMessage7');
hid(); Popup(); cartClick('Voltas AC' , '32,590' , 'Images/sac2.jpg'); cart();">Add To Cart</button></div></div></div>
<div class="newchild"><centre><div style="height: 195px;"><img src="Images/71ecWAy-JuL._AC_UY218_.jpg" alt="Comp1" style="width: 100px;height: 185px;padding-top: 20px;"></div></centre><div class="item1"><p style="font-size: 21px;">Samsung 183 L, 4 Star, Digital Inverter, Single Door Refrigerator Camellia Blue </p></div><img src="Images/rating-4.png" alt="Comp1" style="height: 24px;padding: 10px;"><div>
<div class="item1" style="color: red;">-18%</div><div class="item2" style="font-size:xx-large;border-bottom: solid 1px;display: inline-block;width: 280px;">₹34,999</div><h2 style="display: none;">Samsung Single Door Refrigerator,fridge</h2>
<div class="qty"><p style="color: black; font-size:larger;display: inline-block;">Quantity:</p><select class="quantity8" onchange=" count = (document.querySelector('.quantity8').value); change();" style="font-weight: bold; width: 45px;height: 23px;cursor: pointer;">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
</select></div>
<div class="hiddenMessage8 hiddenMessage"><img src="Images/526-5264359_check-mark-icon-transparent-hd-png-download.png" style="width: 27px; height: 23px; border-radius: 50%;">Added</div>
<div style="padding-top: 25px;"><button class="see1" onclick="message = document.querySelector('.hiddenMessage8');
hid(); Popup(); cartClick('Samsung Single Door Frige' , '34,999' , 'Images/71ecWAy-JuL._AC_UY218_.jpg'); cart();">Add To Cart</button></div></div></div>
<div class="newchild"><centre><div style="height: 195px;"><img src="Images/614fkA7aVEL._AC_UY218_.jpg" alt="Comp1" style="width: 150px;height: 185px;padding-top: 20px;"></div></centre><div class="item1"><p style="font-size: 21px;">Samsung 236 L, 3 Star, Digital Inverter, Double Door Refrigerator ( Silver, 2024 Model)</p></div><img src="Images/rating-45.png" alt="Comp1" style="height: 24px;padding: 10px;"><div>
<div class="item1" style="color: red;">-15%</div><div class="item2" style="font-size:xx-large;border-bottom: solid 1px;display: inline-block;width: 280px;">₹72,999</div><h2 style="display: none;">Samsung Double Door Refrigirator,fridge</h2>
<div class="qty"><p style="color: black; font-size:larger;display: inline-block;">Quantity:</p><select class="quantity9" onchange=" count = (document.querySelector('.quantity9').value); change();" style="font-weight: bold; width: 45px;height: 23px;cursor: pointer;">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
</select></div>
<div class="hiddenMessage9 hiddenMessage"><img src="Images/526-5264359_check-mark-icon-transparent-hd-png-download.png" style="width: 27px; height: 23px; border-radius: 50%;">Added</div>
<div style="padding-top: 25px;"><button class="see1" onclick="message = document.querySelector('.hiddenMessage9');
hid(); Popup(); cartClick('Samsung Double Door Fridge' , '72,999' , 'Images/614fkA7aVEL._AC_UY218_.jpg'); cart();">Add To Cart</button></div></div></div>
<div class="newchild"><centre><div style="height: 195px;"><img src="Images/715hVUAu3GL._AC_UY218_.jpg" alt="Comp1" style="width: 200px;height: 195px;padding-top: 20px;"></div></centre><div class="item1"><p style="font-size: 21px;">HIFRESH Air Cooler for Home, 107CM Tower Cooler, Smart Remote & LED Touch Screen</p></div><img src="Images/rating-45.png" alt="Comp1" style="height: 24px;padding: 10px;"><div>
<div class="item1" style="color: red;">-44%</div><div class="item2" style="font-size:xx-large;border-bottom: solid 1px;display: inline-block;width: 280px;">₹8,399</div><h2 style="display: none;">Hifresh Air Tower Cooler</h2>
<div class="qty"><p style="color: black; font-size:larger;display: inline-block;">Quantity:</p><select class="quantity10" onchange=" count = (document.querySelector('.quantity10').value); change();" style="font-weight: bold; width: 45px;height: 23px;cursor: pointer;">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
</select></div>
<div class="hiddenMessage10 hiddenMessage"><img src="Images/526-5264359_check-mark-icon-transparent-hd-png-download.png" style="width: 27px; height: 23px; border-radius: 50%;">Added</div>
<div style="padding-top: 25px;"><button class="see1" onclick="message = document.querySelector('.hiddenMessage10');
hid(); Popup(); cartClick('Hifresh Air Cooler' , '8,399' , 'Images/715hVUAu3GL._AC_UY218_.jpg'); cart();">Add To Cart</button></div></div></div>
</div>
</div></center>
</div>
<!--Popup for Added to Cart-->
<div class="popup popupd" id="popup">
<div class="green"></div>
<div style="display: flex; align-items: center; justify-content: center; margin-top: 15px;">
<img src="Images/tick.png" style="height: 25px; width: 25px; margin-right: 4px;">
<p style="color: rgb(6, 125, 98); font-size: larger;font-weight: 400 ;font-family: 'Poppins',sans-serif;margin-top: 3px;margin-bottom: 0;">Added To Cart</p>
</div>
</div>
<!--Footer-->
<footer>
<div class="footer1" style="text-align: left;">
<ul>
<p>Get Us To Know</p>
<a>About Us</a>
<a>Protect And Build</a>
<a>Careers</a>
<a>Sell on TechBazaar</a>
</ul>
<ul>
<p>Help</p>
<a>Payments</a>
<a>Shipping</a>
<a>Cancellation & Return</a>
<a>FAQ</a>
<a>Report Infringement</a>
</ul>
<ul>
<p>Connect With Us</p>
<a>Facebook</a>
<a>Twitter</a>
<a>Instagram</a>
</ul>
<ul>
<p>Get Us To Know</p>
<a>About Us</a>
<a>Protect And Build</a>
<a>Careers</a>
<a>Sell on TechBazaar</a>
</ul>
</div>
<div class="footer3">
<img src="Images/logo web.png" alt="Comp" style="height: 70px;">
</div>
<div class="footer2">
<p style="font-size: 15px; font-family: 'Poppins',sans-serif; margin: 10px;">© All Rights Reserved With Author: B.Sriram</p>
<div style="padding-bottom: 10px;"><a href="mailto:[email protected]" style="color: #f19b1a;">[email protected]</a></div>
</div>
</footer>
<script src="cart.js"></script>
<script>
const csrsDiv = document.getElementById('CSRS');
let csrs;
// Fetch and display CSRs
async function fetchCSRs() {
const response = await fetch('http://localhost:8002/user/details');
csrs = await response.json();
localStorage.setItem("csrs" , JSON.stringify(csrs));
console.log(csrs);
csrsDiv.innerHTML = '';
const csrElement = document.createElement('div');
csrElement.className = 'csr';
csrElement.innerHTML = `
<div class="fName">Hello, ${csrs.firstName}</div>
<div class="E-mail">email_ID:${csrs.email}</div>
<button class="out see1">Log out</button>
`;
csrsDiv.appendChild(csrElement);
document.querySelector('.out').addEventListener("click" , ()=>{
logOut();
});
};
fetchCSRs();
function logOut(){
console.log('hi');
document.getElementById('CSRS').innerHTML = `<button class="see1" onclick="window.location.href = 'index.html';">Sign In</button>`;
};
cartQuantity = 0;
totalQuantity = 0;
let totalNumber = 1;
let count;
let message;
let totalQuantitye;
let cartCount = Cart.length;
localStorage.setItem("cartCount", JSON.stringify(cartCount));
totalQuantitye =localStorage.getItem("cartCount");
document.querySelector('span').innerHTML = `${parseInt(totalQuantitye) || 0}`;
/*Function to assign value of quantity selector to totalNumber*/
function change(){
totalNumber = parseInt(count);
console.log(count);
};
/*Functon to update the quantity in the CartButton span */
function cart(){
totalQuantity = totalQuantity + (1 * totalNumber);
totalQuantitye =localStorage.getItem("cartCount");
document.querySelector('span').innerHTML = `${parseInt(totalQuantitye)}`;
console.log(totalQuantitye);
};
/*Function to display Added to Cart*/
function hid(){
message.style.display = 'flex';
setTimeout(()=>{
message.style.display = 'none';
},3000);
};
/*Function*/
function searchItem() {
let input = document.querySelector('.search').value;
input = input.toLowerCase();
let v = document.querySelector('.notFound');
let x = document.querySelectorAll('.newchild');
let y = document.getElementsByTagName('h2');
let w ;
for (i = 0; i < y.length; i++) {
if (!y[i].innerHTML.toLowerCase().includes(input)) {
x[i].style.display = "none";
}
else {
x[i].style.display = "";
w = 1;
v.style.display = "none";
}
};
if(w !== 1){
v.style.display = "";
};
};
localStorage.setItem("cartCount", JSON.stringify(cartCount));
function cartClick(name, price , image){
let numb = 0;
Cart.forEach((duct) => {
if (duct.proName === name) {
numb = 1;
}
});
if (numb === 0) {
Cart.push({ // Adding products to cart array
proName: name,
proPrice: price,
proImage: image,
proQuantity: "1"
});
localStorage.setItem("Cart", JSON.stringify(Cart));
cartCount = Cart.length;
localStorage.setItem("cartCount", JSON.stringify(cartCount));
};
};
/*Function to save Search Value to localStorage*/
function log1(){
localStorage.setItem("value1", JSON.stringify(document.querySelector('.search').value));
}
/*Translate on button click*/
let scale = 0;
let rep = 1;
let acer ;
function transright1(){
const right = document.querySelector('.iconright');
const srci = document.querySelector('.innerBox1');
acer = rep*300;
if(scale > -350){
srci.style.transform = `translateX(${scale - 350}px)`;
scale = scale - 350;
rep++;
}
};
let lep = 1;
let acel = 300;
function transleft1(){
const left = document.querySelector('.iconleft');
const srcl = document.querySelector('.innerBox1');
if(scale < 0){
srcl.style.transform = `translateX(${scale + 350}px)`;
scale = scale + 350;
lep++;
}
};
/**/
let scale1 = 0;
let scaleCount=0;
let dots;
let a = 0;
function transright2(){
const right1 = document.querySelector('.main-scroll-box');
if(scale1 > -4800){
right1.style.transform = `translateX(${scale1 - 1600}px)`;
scale1 = scale1 - 1600;
scaleCount = (scale1/1600) * -1;
dots = document.querySelectorAll('.dot');
dots.forEach((dots)=>{
dots.style.backgroundColor = 'transparent';
});
dots[scaleCount].style.backgroundColor = 'white';
}else{
a=1;
}
};
function transleft2(){
const left1 = document.querySelector('.main-scroll-box');
if(scale1 < 0){
left1.style.transform = `translateX(${scale1 + 1600}px)`;
scale1 = scale1 + 1600;
scaleCount = (scale1/1600) * -1;
dots = document.querySelectorAll('.dot');
dots.forEach((dots)=>{
dots.style.backgroundColor = 'transparent';
});
dots[scaleCount].style.backgroundColor = 'white';
}else{
a=1;
}
};
function trans(){
setInterval(()=>{
transright2();
if(scale1 <= -4800){
};
scaleCount = (scale1/1600) * -1;
dots = document.querySelectorAll('.dot');
dots.forEach((dots)=>{
dots.style.backgroundColor = 'transparent';
});
dots[scaleCount].style.backgroundColor = 'white';
if(a === 1){
const right1 = document.querySelector('.main-scroll-box');
right1.style.transform = `translateX(0px)`;
scale1 = 0;
scaleCount = 0;
a=0;
dots.forEach((dots)=>{
dots.style.backgroundColor = 'transparent';
});
dots[0].style.backgroundColor = 'white';
}
},5000);
};
setTimeout(()=>{
trans();
},500);
/*Function to show popup for a set time*/
var popup = document.getElementById('popup');
var closeButton = document.getElementById('close');
var popupButton = document.querySelector('.see1');
function Popup() {
popup.classList.add('show');
setTimeout(function() {
popup.classList.remove('show');
}, 3000); // Adjust the delay (in milliseconds) as per requirement
}
closeButton.addEventListener('click', function() {
popup.classList.remove('show');
});
</script>
<script src="product-search.js"></script>
</body>
</html>