forked from Ajay-bhagal/team_12
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproductDetails.html
358 lines (325 loc) · 13.4 KB
/
productDetails.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta name="viewport">
<title>Overstock.com | Product Details</title>
<link href="productDetails.css" rel="stylesheet" />
<link href="footer.css" rel="stylesheet" />
<link href="navbar.css" rel="stylesheet" />
<link rel="icon" href="https://th.bing.com/th/id/OIP.hwhAzr40Lm_D2HK9mmnWvgAAAA?w=173&h=180&c=7&r=0&o=5&dpr=1.3&pid=1.7">
<script src="https://kit.fontawesome.com/34bcab5945.js" crossorigin="anonymous"></script>
</head>
<body>
<!--Navbar Division-->
<div id="navbar">
<div class="header">
<div>
<div type="button"
data-bs-toggle="offcanvas"
data-bs-target="#offcanvasExample"
aria-controls="offcanvasExample" class="menupage">
</div>
<div class="overstocklogo" onclick="window.location.href='index.html'">
<img class="overstockIndex" src="https://i.postimg.cc/0yCKC2SV/svgexport-1.png" alt="" />
</div>
<div class="class-input">
<div>
<input type="text" placeholder="Search... everthing you find ships for free" />
</div>
<div>
<img src="https://i.postimg.cc/tgWqzB8p/Search-1.png alt="">
</div>
</div>
<div id="account1" class="class-account class-account-common">
<div onclick="window.location.href='signin$signup.html'">
<img src="https://i.postimg.cc/RCb3PDNz/User.png" alt="" />
</div>
<div onclick="window.location.href='signin$signup.html'" >Account</div>
<div class="chevronup">
<img src="https://i.postimg.cc/DZHpvK2K/Chevron-Up.png" alt="" />
</div>
<div class="Account-hidden-content">
<div>My Account</div>
<div>My Orders</div>
<div>My Reviews</div>
<div>Gift Cards</div>
<div>Help</div>
<div>Sign Out</div>
</div>
</div>
<div onclick="window.location.href='list.html'" class="class-account class-account-common">
<div>
<img src="https://i.postimg.cc/B6TrjykP/Heart.png" alt="" />
</div>
<div>Lists</div>
<div class="chevronup">
<img src="https://i.postimg.cc/DZHpvK2K/Chevron-Up.png" alt="" />
</div>
<div class="Account-hidden-content" style="right: -100%">
<div>Favorites</div>
<div>Save for Later</div>
<div>View All My Lists</div>
<div>Find a List</div>
</div>
</div>
<div id="cart1" class="class-account">
<div>
<img onclick="window.location.href='cart.html'" src="https://i.postimg.cc/DyZNh8vX/Cart-Empty.png" alt="" />
</div>
<div onclick="window.location.href=''">Cart</div>
</div>
</div>
<div class="section-div">
<div onclick="window.location.href=''"
>Furniture</div>
<div>Rugs</div>
<div>Decor</div>
<div>Bed & Bath</div>
<div>Home Improvement</div>
<div>Kitchen</div>
<div>Outdoor</div>
<div>Jewelry</div>
<div>Lighting</div>
<div>Kids & Baby</div>
<div>More</div>
<div>Holiday & Gifts</div>
<div>Sales & Deals</div>
</div>
<div class="dropdown-content-main dropdown-content-part">
<div>
<div>
<div class="D-div">Living Room Furniture</div>
<div>Sofas & Couches</div>
<div>Sectionals</div>
<div>Benches</div>
<div>Ottomans & Poufs</div>
<div>Accent Chairs</div>
<div>Recliners</div>
<div>Coffee & Accent Tables</div>
<div>TV Stands</div>
</div>
<div>
<div class="D-div">Patio & Outdoor Furniture</div>
<div>Patio Furniture Sets</div>
<div>Sofas, Chairs & Sectionals</div>
<div>Dining Sets</div>
<div>Coffee & Side Tables</div>
<div>Chaise Lounges</div>
<div>Adirondack Chairs</div>
</div>
</div>
<div>
<div>
<div class="D-div">Bedroom Furniture</div>
<div>Beds</div>
<div>Bedroom Sets</div>
<div>Headboards</div>
<div>Bed Frames</div>
<div>Dressers & Chests</div>
<div>Nightstands</div>
<div>Armoires & Wardrobes</div>
<div>Mattresses</div>
<div>Kids Beds</div>
</div>
<div>
<div class="D-div">Office Furniture</div>
<div>Desks</div>
<div>Office Chairs</div>
<div>Small Space Desks</div>
<div>Office Shelves & Storage</div>
<div>File Cabinets</div>
</div>
</div>
<div>
<div>
<div class="D-div">Dining, Kitchen & Bar</div>
<div>Kitchen & Dining Sets</div>
<div>Kitchen & Dining Chairs</div>
<div>Kitchen & Dining Tables</div>
<div>Counter & Bar Stools</div>
<div>Bar Tables</div>
<div>Buffets & Sideboards</div>
<div>Home Bars</div>
<div>Kitchen Islands & Carts</div>
<div>Kitchen Furniture</div>
</div>
<div>
<div class="D-div">More</div>
<div>Entryway</div>
<div>Bathroom</div>
<div>Home Gym</div>
<div>Rec Room</div>
<div>Small Space Living</div>
</div>
</div>
<div>
<div class="dropdown-img-cont">
<div>
<img
src="https://i.postimg.cc/tg7z1Kz4/Warrenton-Boho-Handcrafted-2-Door-Acacia-Wood-Sideboard-by-Christopher-Knight-Home.jpg"
alt=""
/>
</div>
<div>extra 15% off</div>
<div>Select Furniture by Christopher Knight*</div>
</div>
<div>
<div class="D-div">More Ways to Shop</div>
<div class="R-div">Featured Sales</div>
<div class="R-div">New Arrivals</div>
<div class="R-div">Clearance</div>
<div class="R-div">Furniture Advice</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="Product_categorization">Home/Home Decor/Elrene Barcelona Damask Elegant Fabric Tablecloth</div>
<!--Product Page Body Divison-->
<div id="Product_Parent">
<div id="product_image">
<img id="pro_img" src="https://ak1.ostkcdn.com/img/mxc/030822-RIUpdate-Dsk.svg?imwidth=1920"/>
<i>Share this Product:</i>
<div id="social_Media">
<div><a href=""><img src="image/email.png" class="logo_image"/></a></div>
<div> <a href=""><img src="image/facebook.png" class="logo_image"/></a></div>
<div> <a href=""><img src="image/twitter.png"class="logo_image"/></a></div>
<div> <a href=""><img src="image/pinterest.png"class="logo_image"/></a></div>
</div>
</div>
<div id="Product_Details">
<p id="Product_name">Elrene Barcelona Damask Elegant Fabric Tablecloth</p>
<div id="Customer_ratings">
<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSyNm3O0L9PWAzL3oGmbsZl_EgQEggF6mlR1w&usqp=CAU" id="rating_image"/>
<p id="rate">4.5 Stars</p>
</div>
<p id="Product_price">Sale Starts at INR 1957.63</p>
<p id="choose_size">Size (8):<b>Choose Size</b></p>
<table >
<tr id="size_table">
<td>70" Round</td>
<td>90" Round</td>
<td>52" W X 52" L</td>
<td>52" W X 52" L</td>
</tr>
<tr id="size_table">
<td>52" W X 52" L</td>
<td>52" W X 52" L</td>
<td>60" W X 102" L</td>
<td>60" W X 120" L</td>
</tr>
</table>
<p id="choose_size">Color (8):<b>Choose Color</b></p>
<table >
<tr id="color_table">
<td style="background-color:red;">Red</td>
<td style="background-color:gold;">Gold</td>
<td style="background-color:teal;">Teal</td>
<td style="background-color:burlywood">Burlywood</td>
</tr>
<tr id="color_table">
<td style="background-color:blueviolet">BlueViolet</td>
<td style="background-color:skyblue">SkyBlue</td>
<td style="background-color:brown">Brown</td>
<td style="background-color:coral">Coral</td>
</tr>
</table>
<div id="ProductCart">
<select name="Quantity" id="pquanitiy">
<option value="1">Quantity: 1</option>
<option value="2">Quantity: 2</option>
<option value="3">Quantity: 3</option>
<option value="4">Quantity: 4</option>
<option value="5">Quantity: 5</option>
<option value="6">Quantity: 6</option>
<option value="7">Quantity: 7</option>
<option value="8">Quantity: 8</option>
<option value="9">Quantity: 9</option>
<option value="10">Quantity: 10</option>
</select>
<button id="AdtoCart" ><a href="cart.html"><i class="fa-solid fa-cart-plus"></i> Add To Cart</a></button>
</div>
</div>
</div>
<div id="Footer_Section">
<div id="footer_menu">
<div>
<h4>MY ACCOUNT </h4>
<p><a href="">Orders & Returns</a></p>
<p><a href="">Email Preferences</a></p>
<p> <a href=""> Account Settings</a></p>
</div>
<div >
<h4>LET US HELP </h4>
<p><a href=""><p></p>Contact Customer Care
</a></p>
<p><a href="">Shipping Information</a></p>
<p><a href="">Return Policy </a></p>
<p> <a href="">International Help </a></p>
<p><a href="">Accessibility</a></p>
</div>
<div>
<h4> COMPANY INFORMATION</h4>
<p><a href="">About Overstock™</a></p>
<p><a href="">Contact Us</a></p>
<p><a href="">Careers</a></p>
<p><a href="">Investor Relations </a></p>
<p> <a href="">Sell Your Products</a></p>
<p><a href="">Supply Chain Transparency</a></p>
</div>
<div>
<h4>MORE WAYS TO SHOP</h4>
<p> <a href="">Tips & Ideas</a></p>
<p><a href="">Deals</a></p>
<p> <a href="">Clearance </a></p>
<p> <a href="">New Arrivals</a></p>
</div>
</div>
<div id="footer_copyright">
<div id="copyrights">
<span>© Copyright 2022, Overstock.com®, Inc.</span><br>
<p style="margin-top:5px;"> 799 Coliseum Way Midvale, UT 84047 | 1-800-843-2446</p>
</div>
<div id="copyright_menu">
<p id="cmenu"><a href="">Privacy Policy</a></p>
<p id="cmenu"><a href="">Terms & Conditions</a></p>
<p id="cmenu"><a href="">*Promotion Terms</a></p>
<p id="cmenu" style="margin-top:15px;"><a href="">Ship to: <img src="https://ak1.ostkcdn.com/img/mxc/intFlag_IN.gif" id="flag"/></a></p>
</div>
</div>
</div>
</body>
</html>
<script>
var product_Des=JSON.parse(localStorage.getItem("product_data"));
productDescription();
function productDescription(){
document.getElementById('Product_categorization').textContent="Home / Products / "+product_Des.category;
document.getElementById('pro_img').src = product_Des.image_url ;
document.getElementById('Product_name').textContent=product_Des.name;
document.getElementById('rate').textContent=product_Des.rating;
document.getElementById('Product_price').textContent="Sale Starts at INR "+product_Des.fprice;
};
var cart=JSON.parse(localStorage.getItem("cart"))||[];
document.getElementById('AdtoCart').addEventListener("click",function(){
var flag=0;
cart.map(function(elem)
{
if(elem.name===product_Des.name)
{
var quant= document.getElementById('pquanitiy').value;
elem.qty=elem.qty+parseInt(quant);
flag++;
}
});
if(flag===0)
{
var quant= document.getElementById('pquanitiy').value;
product_Des.qty=parseInt(quant);
cart.push(product_Des);
}
localStorage.setItem("cart", JSON.stringify(cart));
});
</script>