-
Notifications
You must be signed in to change notification settings - Fork 0
/
try.html
554 lines (535 loc) Β· 24 KB
/
try.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Shopping Cart</title>
<link rel="stylesheet" href="style.css" />
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-aFq/bzH65dt+w6FI2ooMVUpc+21e0SRygnTpmBvdBgSdnuTN7QbdgL+OapgHtvPp" crossorigin="anonymous">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<style>
table {
width: 100%;
border-collapse: collapse;
}
td {
border: 1px solid #c12323;
padding: 10px;
vertical-align: top;
width: 16.66%; /* 6 columns */
}
.item {
display: flex;
flex-direction: column;
align-items: center;
}
.item img {
max-width: 100px;
margin-bottom: 10px;
}
.cartImg {
display: flex;
align-items: center;
margin: 10px 0;
}
.cartImg img {
max-width: 50px;
margin-right: 10px;
}
.marketing .col-md-4 {
margin-bottom: 30px;
}
.marketing img {
max-width: 100%;
height: auto;
display: block;
margin: 0 auto;
border-radius: 50%;
box-shadow: 0px 0px 20px rgba(220, 176, 31, 0.952); /* Add 3D border effect */
}
.marketing h2 {
color: #3519c0;
font-family: serif;
}
.marketing p {
color: #1198d2;
font-family: cursive;
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container-fluid">
<a class="navbar-brand" href="index.html"><img src="bag-heart-fill.svg" alt="shop now" height="25"/>GetSetKart</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="#">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="about.html">About</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="home.html" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-cart4" viewBox="0 0 16 16">
<path d="M0 2.5A.5.5 0 0 1 .5 2H2a.5.5 0 0 1 .485.379L2.89 4H14.5a.5.5 0 0 1 .485.621l-1.5 6A.5.5 0 0 1 13 11H4a.5.5 0 0 1-.485-.379L1.61 3H.5a.5.5 0 0 1-.5-.5M3.14 5l.5 2H5V5zM6 5v2h2V5zm3 0v2h2V5zm3 0v2h1.36l.5-2zm1.11 3H12v2h.61zM11 8H9v2h2zM8 8H6v2h2zM5 8H3.89l.5 2H5zm0 5a1 1 0 1 0 0 2 1 1 0 0 0 0-2m-2 1a2 2 0 1 1 4 0 2 2 0 0 1-4 0m9-1a1 1 0 1 0 0 2 1 1 0 0 0 0-2m-2 1a2 2 0 1 1 4 0 2 2 0 0 1-4 0"/>
</svg> Shop Now
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
<li><a class="dropdown-item" href="#">Men</a></li>
<li><a class="dropdown-item" href="#">Women</a></li>
<li><a class="dropdown-item" href="#">Kids</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="home.html">All products</a></li>
</ul>
</li>
</ul>
<form class="d-flex">
<input class="form-control me-2" type="search" placeholder="Shop Now" aria-label="Search">
<button class="btn btn-outline-success" type="submit">Search</button>
</form>
</div>
</div>
</nav>
<div class="contains">
<div id="carouselExampleCaptions" class="carousel slide">
<div class="carousel-indicators">
<button type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide-to="0" class="active" aria-current="true" aria-label="Slide 1"></button>
<button type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide-to="1" aria-label="Slide 2"></button>
<button type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide-to="2" aria-label="Slide 3"></button>
</div>
<div class="carousel-inner">
<div class="carousel-item active">
<img src="image\sale\ne.png" class="d-block w-100" alt="kid" width="500" height="600">
<div class="carousel-caption d-none d-md-block">
<p></p>
</div>
</div>
<div class="carousel-item">
<img src="image\sale\men.jpg" class="d-block w-100" alt="men" width="500" height="600">
<div class="carousel-caption d-none d-md-block">
<h1>Men</h1>
<p>Trending Jeans,Tops,Shirt for Mens.</p>
</div>
</div>
<div class="carousel-item">
<img src="image\sale\womensec.jpg" class="d-block w-100" alt="men" width="500" height="600">
<div class="carousel-caption d-none d-md-block">
<h1>Women</h1>
<p>Why should boys have all the fun..!!Get the most lastest and newly lauched dress,skirt,shirt,casuals at resonable rate.</p>
</div>
</div>
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
</div>
<p>
</p>
<p>
</p>
<div class="container marketing">
<!-- Three columns of text below the carousel -->
<div class="row">
<div class="col-md-4">
<img src="./image/sale/ji.jpg" alt="men" width="150" height="150" class="img-fluid">
<h2 class="fw-normal">Men</h2>
<p>Find the latest trending shirts right here, right now.</p>
<p><a class="btn btn-secondary" href="#">View details Β»</a></p>
</div><!-- /.col-md-4 -->
<div class="col-md-4">
<img src="./image/sale/women.jpg" alt="women" width="150" height="150" class="img-fluid">
<h2 class="fw-normal">Women</h2>
<p>Fulfill your wishes, fulfill your needs, the things you want are the only things we seed.</p>
<p><a class="btn btn-secondary" href="#">View details Β»</a></p>
</div><!-- /.col-md-4 -->
<div class="col-md-4">
<img src="image\sale\Screenshot 2024-05-17 083751.png" alt="kids" width="150" height="150" class="img-fluid">
<h2 class="fw-normal">Kids</h2>
<p>Kids and their demands are high. Customize their clothes at their wish and at valuable prices.</p>
<p><a class="btn btn-secondary" href="#">View details Β»</a></p>
</div><!-- /.col-md-4 -->
</div><!-- /.row -->
</div><!-- /.container -->
<table id="itemsTable">
<tr>
<td>
<div class="item">
<!-- Image space for Item 1 -->
<img src="./image/women/item1.jpg" alt="Item 1" width="150" height="200">
<h5>Shasmi Women Maxi Gown</h5>
<div>
<div></div>
<select>
<option>XS</option>
<option>S</option>
<option>M</option>
<option>L</option>
<option>XL</option>
<option>XXL</option>
<option>XXXL</option>
</select>
</div>
<button onclick="addToCart(this)">Add to Cart π</button>
<button onclick="buyNow(this)">Buy Now π·οΈ</button>
</div>
</td>
<td>
<div class="item">
<!-- Image space for Item 2 -->
<img src="./image/women/i5.jpg" alt="Item 2" width="150" height="200">
<h6>Saree</h6>
<div>
<select>
<option>XS</option>
<option>S</option>
<option>M</option>
<option>L</option>
<option>XL</option>
<option>XXL</option>
<option>XXXL</option>
</select>
</div>
<button onclick="addToCart(this)">Add to Cart π</button>
<button onclick="buyNow(this)">Buy Now π·οΈ</button>
</div>
</td>
<td>
<div class="item">
<!-- Image space for Item 3 -->
<img src="./image/women/i3.png" alt="Item 3" width="150" height="200">
<h5>Chiffon A-Line Mini Dress</h5>
<div>
<select>
<option>XS</option>
<option>S</option>
<option>M</option>
<option>L</option>
<option>XL</option>
<option>XXL</option>
<option>XXXL</option>
</select>
</div>
<button onclick="addToCart(this)">Add to Cart π</button>
<button onclick="buyNow(this)">Buy Now π·οΈ</button>
</div>
</td>
</tr>
<tr>
<td>
<div class="item">
<!-- Image space for Item 4 -->
<img src="./image/kids/i1.jpg" alt="Item 4" width="150" height="200">
<h5>Hopscotch Baby Boy's Cotton</h5>
<div>
<select>
<option>XS</option>
<option>S</option>
<option>M</option>
<option>L</option>
<option>XL</option>
<option>XXL</option>
<option>XXXL</option>
</select>
</div>
<button onclick="addToCart(this)">Add to Cart π</button>
<button onclick="buyNow(this)">Buy Now π·οΈ</button>
</div>
</td>
<td>
<div class="item">
<!-- Image space for Item 5 -->
<img src="./image/kids/i2.jpg" alt="Item 5" width="150" height="200">
<h5>Daddy's Boy</h5>
<div>
<select>
<option>XS</option>
<option>S</option>
<option>M</option>
<option>L</option>
<option>XL</option>
<option>XXL</option>
<option>XXXL</option>
</select>
</div>
<button onclick="addToCart(this)">Add to Cart π</button>
<button onclick="buyNow(this)">Buy Now π·οΈ</button>
</div>
</td>
<td>
<div class="item">
<!-- Image space for Item 6 -->
<img src="./image/kids/i8.png" alt="Item 6" width="150" height="200">
<h5>Floral Printed Dress</h5>
<div>
<select>
<option>XS</option>
<option>S</option>
<option>M</option>
<option>L</option>
<option>XL</option>
<option>XXL</option>
<option>XXXL</option>
</select>
</div>
<button onclick="addToCart(this)">Add to Cart π</button>
<button onclick="buyNow(this)">Buy Now π·οΈ</button>
</div>
</td>
</tr>
<tr>
<td>
<div class="item">
<!-- Image space for Item 7 -->
<img src="./image/men/i1.jpg" alt="Item 7" width="150" height="200">
<h5>Trendy Shirt</h5>
<div>
<select>
<option>XS</option>
<option>S</option>
<option>M</option>
<option>L</option>
<option>XL</option>
<option>XXL</option>
<option>XXXL</option>
</select>
</div>
<button onclick="addToCart(this)">Add to Cart π</button>
<button onclick="buyNow(this)">Buy Now π·οΈ</button>
</div>
</td>
<td>
<div class="item">
<!-- Image space for Item 8 -->
<img src="./image/men/it2.jpg" alt="Item 8" width="150" height="200">
<h5>Blue Pants</h5>
<div>
<div>Label 8</div>
<select>
<option>XS</option>
<option>S</option>
<option>M</option>
<option>L</option>
<option>XL</option>
<option>XXL</option>
<option>XXXL</option>
</select>
</div>
<button onclick="addToCart(this)">Add to Cart π</button>
<button onclick="buyNow(this)">Buy Now π·οΈ</button>
</div>
</td>
<td>
<div class="item">
<!-- Image space for Item 9 -->
<img src="./image/men/11.jpg" alt="Item 9" width="150" height="200">
<div>Item 9</div>
<div>
<div>Label 9</div>
<select>
<option>XS</option>
<option>S</option>
<option>M</option>
<option>L</option>
<option>XL</option>
<option>XXL</option>
<option>XXXL</option>
</select>
</div>
<button onclick="addToCart(this)">Add to Cart π</button>
<button onclick="buyNow(this)">Buy Now π·οΈ</button>
</div>
</td>
</tr>
<tr>
<td>
<div class="item">
<!-- Image space for Item 10 -->
<img src="./image/women/10.jpg" alt="Item 10" width="150" height="200">
<div>Item 10</div>
<div>
<div>Label 10</div>
<select>
<option>XS</option>
<option>S</option>
<option>M</option>
<option>L</option>
<option>XL</option>
<option>XXL</option>
<option>XXXL</option>
</select>
</div>
<button onclick="addToCart(this)">Add to Cart π</button>
<button onclick="buyNow(this)">Buy Now π·οΈ</button>
</div>
</td>
<td>
<div class="item">
<!-- Image space for Item 11 -->
<img src="./image/women/5.jpg" alt="Item 11" width="150" height="200">
<div>Item 11</div>
<div>
<div>Label 11</div>
<select>
<option>XS</option>
<option>S</option>
<option>M</option>
<option>L</option>
<option>XL</option>
<option>XXL</option>
<option>XXXL</option>
</select>
</div>
<button onclick="addToCart(this)">Add to Cart π</button>
<button onclick="buyNow(this)">Buy Now π·οΈ</button>
</div>
</td>
<td>
<div class="item">
<!-- Image space for Item 12 -->
<img src="./image/women/10.jpg" alt="Item 12" width="150" height="200">
<div>Item 12</div>
<div>
<div>Label 12</div>
<select>
<option>XS</option>
<option>S</option>
<option>M</option>
<option>L</option>
<option>XL</option>
<option>XXL</option>
<option>XXXL</option>
</select>
</div>
<button onclick="addToCart(this)">Add to Cart π</button>
<button onclick="buyNow(this)">Buy Now π·οΈ</button>
</div>
</td>
</tr>
<tr>
<td>
<div class="item">
<!-- Image space for Item 13 -->
<img src="./image/kids/6.jpg" alt="Item 13" width="150" height="200">
<div>Item 13</div>
<div>
<div>Label 13</div>
<select>
<option>XS</option>
<option>S</option>
<option>M</option>
<option>L</option>
<option>XL</option>
<option>XXL</option>
<option>XXXL</option>
</select>
</div>
<button onclick="addToCart(this)">Add to Cart π</button>
<button onclick="buyNow(this)">Buy Now π·οΈ</button>
</div>
</td>
<td>
<div class="item">
<!-- Image space for Item 14 -->
<img src="./image/women/2.jpg" alt="Item 14" width="150" height="200">
<div>Item 14</div>
<div>
<div>Label 14</div>
<select>
<option>XS</option>
<option>S</option>
<option>M</option>
<option>L</option>
<option>XL</option>
<option>XXL</option>
<option>XXXL</option>
</select>
</div>
<button onclick="addToCart(this)">Add to Cart π</button>
<button onclick="buyNow(this)">Buy Now π·οΈ</button>
</div>
</td>
<td>
<div class="item">
<!-- Image space for Item 11 -->
<img src="./image/men/5.jpg" alt="Item 11" width="150" height="200">
<div>Item 11</div>
<div>
<div>Label 11</div>
<select>
<option>XS</option>
<option>S</option>
<option>M</option>
<option>L</option>
<option>XL</option>
<option>XXL</option>
<option>XXXL</option>
</select>
</div>
<button onclick="addToCart(this)">Add to Cart π</button>
<button onclick="buyNow(this)">Buy Now π·οΈ</button>
</div>
</td>
</tr>
</table>
<script>
var addItemId = 0;
function addToCart(button) {
addItemId += 1;
// Get the parent item element
var item = button.parentElement;
// Get item details
var imgSrc = item.children[0].currentSrc;
var title = item.children[1].innerText;
var label = item.children[2].children[0].innerText;
var selectValue = item.children[2].children[1].value;
// Redirect to the cart page with item details as query parameters
window.location.href = `cart.html?id=${addItemId}&img=${encodeURIComponent(imgSrc)}&title=${encodeURIComponent(title)}&label=${encodeURIComponent(label)}&option=${encodeURIComponent(selectValue)}`;
}
function buyNow(button) {
// Get the parent item element
var item = button.parentElement;
// Get item details
var imgSrc = item.children[0].currentSrc;
var title = item.children[1].innerText;
var label = item.children[2].children[0].innerText;
var selectValue = item.children[2].children[1].value;
// Redirect to the buy page with item details as query parameters
window.location.href = `buy.html?img=${encodeURIComponent(imgSrc)}&title=${encodeURIComponent(title)}&label=${encodeURIComponent(label)}&option=${encodeURIComponent(selectValue)}`;
}
</script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
<footer class="row row-cols-1 row-cols-sm-2 row-cols-md-5 py-5 my-5 border-top">
<div class="col mb-3">
<h5>Section</h5>
<ul class="nav flex-column">
<li class="nav-item mb-2"><a href="#" class="nav-link p-0 text-body-secondary">Home</a></li>
<li class="nav-item mb-2"><a href="#" class="nav-link p-0 text-body-secondary">Features</a></li>
<li class="nav-item mb-2"><a href="#" class="nav-link p-0 text-body-secondary">Pricing</a></li>
<li class="nav-item mb-2"><a href="#" class="nav-link p-0 text-body-secondary">FAQs</a></li>
<li class="nav-item mb-2"><a href="#" class="nav-link p-0 text-body-secondary">About</a></li>
</ul>
</div>
<div class="col mb-3">
<a href="/" class="d-flex align-items-center mb-3 link-body-emphasis text-decoration-none">
<svg class="bi me-2" width="40" height="32"><use xlink:href="#bootstrap"></use></svg>
</a>
<p class="text-body-secondary">Β© 2024 GetSetKart. All Rights Reserved to Hritika Sharan.</p>
</div>
<div class="col mb-3">
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</body>
</html>