-
Notifications
You must be signed in to change notification settings - Fork 2
/
productdescription.html
483 lines (417 loc) · 23.6 KB
/
productdescription.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
<!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>Buy T-shirt </title>
<link rel="icon" type="image/x-icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAACoCAMAAABt9SM9AAABNVBMVEX////9kTzxOrHxOrDwVSPvUSL+lD39kDrxMq/wIKrwUiH+kzzwLK3+lj79jzbxOLL9hyL9iy31cjT9hBn9iSbvQgD/9O3+l0PwJqnxNrX2m9HwVhH8k0j9qG///P74tdzwVRn70un+07n0f8X+8/r4r9r96PX/9/H6iT3xRLL4g0PwWCnxOLv6yOX5vd/+7Pf3pNb1i8rxUbTxXDT+0rf+3cn0cDv9nVzzbb7+6d39vJTyUJb9tIf+yav0d8LyX7rxU3H5fzT82u32kcz70sb6x7T83dPvQzD5rpL3ocL5eyDxPaPxWWP9pWvxWUTwHLTxSJ7xYzT9rXrxSYfwRZLyYl7wVEn0ZCbxT2fxVFzxUn72cGP5lZD1Zm393Nr3f6L80Nz4h0f1ahz1fEn0h2X6yLn5tKfoWG+lAAARTUlEQVR4nO1daXvTSBJGkg/JURw7cQ7HwXHIASEXMVeSgXgILLO7HENgBpjZnd1lGOb//4TVrZb6qpK6FTMP9fD0N9Kt19XVbx1dfe3aN/km3+SvLkfP/vb8ZgXzPP/yvIJZtMrF+Q+Li4uDt6ea5/m7N8viD/8Yap5GpwyP3bujWq3WqnXOdM5z45+LNX+axRcHOqfRKju7P770sfI+43ZvbUnbPK96tVBGr3/c1DaLXjl07BeD6DPqy+2Opq241Gw/qUfTDL5zx1t6ptEr247Z/34UfUXr9oyxcF/HNKfdZmOvFqvWy75t7eiYRq/ccUxr/278Fa0Hs4axcE/9NKed5sytWLE8mTNt96tDy9Mr0xwPko/YWzZ0oHXaMYzGkxSswZs5a+5rQ8vDyjLnvkvBaq0ZPlo31E7jY2XMzreSaUbf97157SO10+iVQ0+vLCs1WaH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a5P3OhrjnXsEW+Gi8Pt9QMdnSqzcvrs8Z/Pnpf1BWWydXFQydd8k2/yTVTK/wHUN+nRabAiYQAAAABJRU5ErkJggg==">
<!-- fontawesome css-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="./navbar/navbar.css" />
<link rel="stylesheet" href="./footer/mainfooter.css" />
<link rel="stylesheet" href="./style//productdesc.css" />
<!-- fontawesome script -->
<script src="https://kit.fontawesome.com/d9e48e53e2.js" crossorigin="anonymous"></script>
<style>
#upper{
background-color: aqua;
width: 100%;
height: 55px;
color: pink;
/* margin: auto; */
text-align: center;
text-shadow: 5px;
padding-top: 5px;
}
#main{
width: 100%;
height: 1000px;
display: flex;
}
#left{
width: 50%;
display: grid;
}
#right{
display: grid;
grid-template-columns: repeat(1 , 1fr);
height: 1500px;
width: 50%;
padding-left: 10px;
}
#lowerright{
height: 1000px;
width: 80%;
}
#lowerbox{
margin-top: 500px;
height: 500px;
width: 92%;
display: flex;
gap: 90px;
}
</style>
</head>
<body>
<!-- navabar folder -->
<div id="navbar_placeholder"></div>
<div style="margin-top: 110px;"></div>
Home/Clothing/Women Clothing/Dresses/Marks & Spencer Dresses>More By Marks & Spencer
<br>
<br>
<div id="main">
<div id="left">
<div></div>
<div></div>
</div>
<div id="right">
<div id="upperright"></div>
<div id="lowerright">
<h3> <img src="https://fonts.google.com/icons?selected=Material%20Icons%20Outlined%3Ashopping_cart%3A" alt="">Get it by Wed, Apr 06</h3>
<h3>Pay on delivery available</h3>
<h3>Easy 30 days return & exchange available</h3>
<br>
<p>100% Original Products</p>
<h3>BEST OFFERS </h3>
<h3>Best Price: </h3>
<ul>
<li>Applicable on: Orders above Rs. 2999
</li>
<li>Coupon code: SSNEW12</li>
<li>Coupon Discount: 12% off </li>
</ul>
<h5 style="color: brown;">View Eligible Products</h5>
<h4>Get additional offer</h4>
<p>Buy this style and unlock additional 10% off upto ₹200 on a selected catalogue</p>
<h5 style="color: brown;">View Products</h5>
<h2>EMI option available</h2>
<ul>
<li>EMI starting from Rs.234/month</li>
</ul>
<hr>
<h4>PRODUCT DETAILS </h4>
<p>Green and black floral print a-line dress</p>
<p>V-neck</p>
<p>Long, puff sleeve</p>
<p>Gathered or pleated detail</p>
<p>Midi length in flounce hem</p>
<p>Comes with a belt</p>
<h3>Size & Fit</h3>
<p>The model (height 5'8) is wearing a size S</p>
<h3>Material & Care</h3>
<p>100% viscose (exclusive of trimmings)
Machine wash</p>
<h3>Specifications</h3>
<p>Shape</p>
<p>A-Line</p>
<hr>
<p>length</p>
<p>Midi</p>
<hr>
<p>Sleeve Length</p>
<p>Long Sleeves</p>
<hr>
<p>Occasion</p>
<p>Casual</p>
<hr>
<p>see more</p>
<hr>
<h5>Product Code: 17000248</h5>
<p>Seller:
</p>
</div>
</div>
</div>
<!-- <img style="padding-left: 50px; width: 40%;" src="https://assets.myntassets.com/f_webp,h_560,q_90,w_420/v1/assets/images/17036164/2022/2/14/82fe731b-bc2a-4d86-be20-e26f007cfc5c1644838499494TopsMarksSpencerWomenTopsMarksSpencerWomenTopsMarksSpencerWo1.jpg" alt=""> -->
<div id="lowerbox">
</div>
<!-- footer folder -->
<div id="mainfooter_placeholder"></div>
</body>
</html>
<script type="module">
// Navbar import
import {Navbar} from './navbar/script.js';
var navbarfolder=document.querySelector("#navbar_placeholder");
navbarfolder.innerHTML=Navbar();
document.querySelector("#navbarlogo").addEventListener("click",home1);
function home1(){
document.querySelector("#sub1").style.fontweight="600";
window.location.href="https://www.myntra.com/"
};
document.querySelector("#Subway").addEventListener("click",display);
function display(){
window.location.href="mensprod.html"
};
document.querySelector("#MENSPAGE").addEventListener("dblclick",displaydbl);
function displaydbl(){
window.location.href="mens.html"
};
document.querySelector("#Subway1").addEventListener("click",display1);
function display1(){
window.location.href="womenpr.html"
};
document.querySelector("#Womenpage").addEventListener("dblclick",displaydb1);
function displaydb1(){
window.location.href="womenhome.html"
};
document.querySelector("#Subway2").addEventListener("click",display2);
function display2(){
window.location.href="https://www.myntra.com/kids?f=Categories%3ATshirts%3A%3AGender%3Aboys%2Cboys%20girls&plaEnabled=false"
};
document.querySelector("#kidspage").addEventListener("dblclick",displaydb2);
function displaydb2(){
window.location.href="kids.html"
};
document.querySelector("#Subway3").addEventListener("click",display3);
function display3(){
window.location.href="https://www.myntra.com/bedsheets";
};
document.querySelector("#homeliving").addEventListener("dblclick",displaydb3);
function displaydb3(){
window.location.href="https://www.myntra.com/shop/home-living";
};
document.querySelector("#Subway4").addEventListener("click",display4);
function display4(){
window.location.href="https://www.myntra.com/lipstick";
};
document.querySelector("#beautypage").addEventListener("dblclick",displaydb4);
function displaydb4(){
window.location.href="https://www.myntra.com/personal-care";
};
document.querySelector("#studiobtn").addEventListener("click",display5);
function display5(){
window.location.href="https://www.myntra.com/studio/home";
};
// signup pgae
document.querySelector("#loginnav").addEventListener("click",Loginnav);
function Loginnav(){
window.location.href="login.html";
}
// wishlist page
document.querySelector("#details").addEventListener("click",Wishlist);
function Wishlist(){
window.location.href="wishlist.html"
}
// add to cart page
document.querySelector("#details1").addEventListener("click",Bag);
function Bag(){
window.location.href="addcart.html"
}
let cartCounts=JSON.parse(localStorage.getItem('cartItems')) || [];
let cartCountDiv=document.querySelector('.cartCounts');
if(cartCounts.length===0){
cartCountDiv.style.display="none";
}else{
cartCountDiv.style.display="visible";
cartCountDiv.innerText=cartCounts.length;
}
// footer importing..
import {mainFooter} from './footer/script.js'
var cartArr = []
var proArr = JSON.parse(localStorage.getItem("product"))
console.log(proArr)
var right = document.querySelector("#upperright")
var left = document.querySelector("#left")
var itemcount=0;
function appenddata(proArr)
{
// proArr.map((elem) =>{
const elem=proArr[0];
var img1 = document.createElement("img")
img1.src = elem.images[0]
img1.style.width = "80%"
img1.style.padding = "50px"
img1.style.marginTop="-450px"
// var img2 = document.createElement("img")
// img2.src = elem.images[1]
left.append(img1)
var heading = document.createElement("h1")
heading.innerText = elem.brand;
right.append(heading)
var para = document.createElement("p")
para.innerText =elem.sub_heading;
right.append(para)
var price = document.createElement("h1")
price.innerText = "Rs." + elem.dis_price;
right.append(price)
var para1 = document.createElement("p")
para1.innerText ="Inclusive of all taxes"
right.append(para1)
var sizediv =document.createElement("div")
sizediv.style.display = "flex"
var para2 = document.createElement("h2")
para2.innerText ="Select size"
var selectsize = document.createElement("h2")
selectsize.innerText = "selectsize >"
selectsize.style.color = "red"
selectsize.style.marginLeft = "20px"
sizediv.append(para2,selectsize)
right.append(sizediv)
var size = document.createElement("div")
size.style.display = "flex"
//size.style.padding = "10px"
size.style.cursor = "pointer"
var div1 = document.createElement("div")
div1.innerText = "XS"
div1.style.marginRight = "20px"
div1.style.border = "1px solid"
div1.style.padding = "20px"
div1.style.borderRadius = "40%"
var div2 = document.createElement("div")
div2.style.border = "1px solid"
div2.innerText = "S"
div2.style.marginRight = "20px"
div2.style.padding = "20px"
div2.style.borderRadius = "40%"
var div3 = document.createElement("div")
div3.innerText = "M"
div3.style.marginRight = "20px"
div3.style.border = "1px solid"
div3.style.padding = "20px"
div3.style.borderRadius = "40%"
var div4 = document.createElement("div")
div4.innerText = "L"
div4.style.marginRight = "20px"
div4.style.border = "1px solid"
div4.style.padding = "20px"
div4.style.borderRadius = "40%"
var div5 = document.createElement("div")
div5.innerText = "XL"
div5.style.marginRight = "20px"
div5.style.border = "1px solid"
div5.style.padding = "20px"
div5.style.borderRadius = "40%"
var div6 = document.createElement("div")
div6.innerText = "XXL"
div6.style.marginRight = "20px"
div6.style.border = "1px solid"
div6.style.borderRadius = "40%"
div6.style.padding = "20px"
var div7 = document.createElement("div")
div7.innerText = "3XL"
div7.style.border = "1px solid"
div7.style.borderRadius = "40%"
div7.style.padding = "20px"
size.append(div1,div2,div3,div4,div5,div6,div7)
right.append(size)
var buttondiv = document.createElement("div")
buttondiv.style.marginTop = "30px"
var cartbutton = document.createElement("button")
cartbutton.setAttribute('class','addBagBtn');
cartbutton.innerText = "ADD TO BAG"
cartbutton.style.backgroundColor = "#e7396a";
cartbutton.style.cursor = "pointer"
// cartbutton.style.height = "40px"
cartbutton.style.border="0px"
// cartbutton.style.boxShadow = "5px"
cartbutton.addEventListener("click" , function(){
const cartItems=JSON.parse(localStorage.getItem('cartItems')) || [];
cartItems.push(elem);
localStorage.setItem('cartItems',JSON.stringify(cartItems));
itemcount++;
cartArr.push(elem)
localStorage.setItem("cart" ,JSON.stringify(cartArr))
localStorage.setItem("itemCount",itemcount);
let cartDiv=document.querySelector('.cartCounts');
cartDiv.style.display="visible";
cartDiv.innerText=cartItems.length;
window.location.reload();
})
let wishlistIds=JSON.parse(localStorage.getItem('hearticon'));
var wishlistbutt = document.createElement("button")
wishlistbutt.setAttribute('class','wishlistBtn');
wishlistbutt.style.marginLeft = "20px"
const heartIcon=document.createElement('i');
heartIcon.setAttribute('class','fa-regular fa-heart');
wishlistbutt.append(heartIcon);
if(wishlistIds && wishlistIds[elem.id]===true){
heartIcon.setAttribute('class','fa-solid fa-heart');
wishlistbutt.innerText = "WISHLISTED"
}else{
heartIcon.setAttribute('class','fa-regular fa-heart');
wishlistbutt.innerText = "WISHLIST"
}
wishlistbutt.addEventListener('click',handleAddWishlist);
function handleAddWishlist(){
wishlistbutt.innerText = "WISHLISTED"
let wishlistIds=JSON.parse(localStorage.getItem('hearticon')) || {};
wishlistIds[elem.id]=true;
localStorage.setItem('hearticon',JSON.stringify(wishlistIds));
let wishlistedItems=JSON.parse(localStorage.getItem('wishlistedItem')) || [];
wishlistedItems.push(elem);
localStorage.setItem('wishlistedItems',JSON.stringify(wishlistedItems));
alert('Product is wishlisted successfully');
}
buttondiv.append(cartbutton , wishlistbutt)
right.append(buttondiv)
var delivery = document.createElement( "p")
delivery.innerText = "DELIVERY OPTIONS "
right.append(delivery)
var pincode = document.createElement("input")
pincode.innerText = ""
pincode.style.border = "solid 1px"
right.append("pincode")
// })
}
appenddata(proArr)
var products = [
{
imglink :["https://assets.myntassets.com/f_webp,dpr_1.0,q_60,w_210,c_limit,fl_progressive/assets/images/11369740/2020/10/15/f8e99b19-1b04-4968-828b-5add2713cd541602749203648-W-Women-Kurtas-9021602749202693-1.jpg",
"https://content.shop4reebok.com/static/Product-GL2296/reebok_GL2296_1.jpg.plp"],
s : "W",
name : " mujh kurti",
price : 236
},
{
imglink :["https://assets.myntassets.com/f_webp,dpr_1.0,q_60,w_210,c_limit,fl_progressive/assets/images/productimage/2020/8/19/9930c311-f548-4d3d-b89c-51dbfee260da1597789847697-1.jpg",
"https://content.shop4reebok.com/static/Product-GV5726/reebok_GV5726_1.jpg.plp"],
s : "W",
name : " bnjh kurti",
price : 563
},
{
imglink :["https://assets.myntassets.com/f_webp,dpr_1.0,q_60,w_210,c_limit,fl_progressive/assets/images/13447232/2021/11/9/2358b115-7049-45d1-8408-af35c9ddbd8b1636451372149-Biba-Women-Kurta-Sets-9131636451371392-1.jpg",
"https://content.shop4reebok.com/static/Product-GT2338/reebok_GT2338_1.jpg.plp"],
s : "W",
name : "kurti",
price :556
},
{
imglink :["https://assets.myntassets.com/f_webp,dpr_1.0,q_60,w_210,c_limit,fl_progressive/assets/images/13446516/2021/2/11/c61361ea-f4f0-439a-9a84-40f59217ff331613024999252KurtasBibaWomenKurtasBibaWomenKurtasBibaWomenKurtasBibaWomen1.jpg",
"https://content.shop4reebok.com/static/Product-GK6777/reebok_GK6777_1.jpg.plp"],
s : "W",
name : " nbvjk kurti",
price : 967
},
{
imglink :["https://assets.myntassets.com/f_webp,dpr_1.0,q_60,w_210,c_limit,fl_progressive/assets/images/productimage/2020/8/12/d7e46f0a-0421-4dba-aeb9-f0d7b528012e1597188009225-1.jpg",
"https://content.shop4reebok.com/static/Product-GV5726/reebok_GV5726_1.jpg.plp",],
s : "W",
name : "hgj kurti",
price : 235
},]
var lowerbox =document.querySelector("#lowerbox")
function appendlower(products)
{
products.map((elem) =>{
let div = document.createElement("div")
var imgl = document.createElement("img")
imgl.style.width = "150%"
imgl.src = elem.imglink[0]
var s = document.createElement("p")
s.innerText = elem.s
var name = document.createElement("p")
name.innerText = elem.name
var price = document.createElement("p")
price.innerText = elem.price
div.append(imgl, s,name , price)
lowerbox.append(div)
})
}
// appendlower(products)
// footer code
var mainfooterfolder=document.querySelector("#mainfooter_placeholder");
mainfooterfolder.innerHTML=mainFooter();
</script>