forked from GauravPimplekar/UNIT2-PROJECT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
view.html
416 lines (330 loc) · 16.5 KB
/
view.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
<!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>Document</title>
<link rel="stylesheet" href="view.css">
<style>
#navbar>div:nth-child(1){
background-color: darkcyan;
text-align: center;
font-size: 17px;
color: white;
padding: 5px;
}
#navbar>div:nth-child(1)>p>a{
color: white;
}
#head>div{
width: auto;
height: 90px;
border: 1px gray solid;
display: flex;
align-items: center;
justify-content: space-evenly;
}
#head>div>div>img{
height: 80px;
}
input{
width: 700px;
height: 45px;
border:0.5px gray solid;
/* border-left:none ; */
}
#head>div>div:nth-child(2)>button{
width: 50px;
height: 45px;
border:0.5px gray solid;
/* border-right: none; */
background-color: white;
cursor: pointer;
}
select{
background-color: white;
border: none;
width: 55px;
margin-right: 20px;
}
select>option{
background-color:white;
color: gray;
box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}
#head2{
display: flex;
/* border: 1px red solid; */
justify-content: space-evenly;
align-items: center;
font-size: 18px;
height: 30px;
}
#head2>div:nth-child(1){
color: red;
}
#head2>div:nth-child(11){
color:cornflowerblue;
}
#buttom{
/* border: 1px green solid; */
width: auto;
height: 40px;
}
#buttom>div>h1{
text-align:center;
}
#buttom>div>button{
display: flex;
margin: auto;
height: 30px;
width: 250px;
justify-content: center;
align-items: center;
color: darkcyan;
border:0.5px darkcyan solid;
background-color: white;
}
#buttom>div>button:hover{
background-color: darkcyan;
color: white;
}
#buttom>div:nth-child(2){
background-color: hsl(54,35%,94%);
width: auto;
height: 100px;
}
#buttom>div:nth-child(2)>div>p{
line-height: 5px;
}
#user>a>img{
width: 60px;
height: 50px;
}
#details{
margin-bottom: 50px;
}
#head{
color: white;
}
</style>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="navbar">
<div><p id="head">Give Mom $150 in Gift Cards, earn a $25 Promo Card! Ends May 9 at 1pm ET. Restrictions apply. Online only.<a href="https://rack.giftcard.nordstrom.com/store/recipient?">Shop Gift Cards & See Restrictions</a></p></div>
<div id="head">
<div>
<div><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQMAAADCCAMAAAB6zFdcAAAAgVBMVEX///9TU0x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JnnvPC1QkOwOlFI8K3anZXKe0FwUVj136BGDhdx2KAg8/4zMDBwL5Q2Kk1soc6a6aVrVRiPj2wq6FGKpIoYjZx7l0Whp7zLbxNcNBTyw4O6j5NVZpiqSUGTRls2nrdjzToZEufmcznM09wADZuMOC4VGOsbQu7whMkgMFXCZ68/6DxmWc74iA4GJR1sHEDu+ktvjIPYt+eHsgYWO++xkUBn3Ze9ycOcxDJsJ49l888xUEqo/w9uxOXeyLkEoZMPfORN7jLpTKavLQpMKExLbdv+h6MNQQ07O9H7vsxxYGq9c22Lt6ZYl28HJqitQjf7tdEjoilDEQidmw5S9FJbjy2W6rmjbtAblCjuYJKkxw0HqqBHHMb1Nu142x9I9AKelES2YQq02x1DzRLrsu4vlw4+AodKdHIaE2r3rkPpfGZ57ldb5qDgxJVRsRhGGPmsOakAzXdZjNiLRZKqGGtHOBAFDul+rA9RzkmgVB7VL/DgfSZ0TzXrgIHI97cunOsoQ1+eCNT0rTicpnxsjShgiYdxfbWvTjSZ57nPu43OFh8jZzGgV2jYbNO3o5NRuHAaaY6d9h1It+7G0j6zM58Z7omttBlycCBHFu6DWlzEqobn10nXj8LfUfB3uMgleuRbIaFWHFMbuJurvRKXg+1IcpCpQabxKnv+fLy7nzG3SSvhwIRIX1HAt+8KyyTp/tmUAnLFccUndFqzwiFBXGEbMKMU9tWuof1drPZ7oLXWlWHQ3GzZ6HKvV/1htk2b9Znfb/fecpf/a9bgu3t+CSO7/s4uZz7F5yGkS6t0Nwb1PM8wyw2n9pL8BtwXy9S/Xb++WqjoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaHxL+O/rBPPlJpU340AAAAASUVORK5CYII="/></div>
<div>
<!-- <button>
<i class="fa fa-search"></i>
</button> -->
<input type="text" placeholder="Search.." /> </div>
<!--
<div>
<div id="user"><a href="signin.html" ><img src="https://th.bing.com/th/id/OIP.IXo2-EG-CQaJeHN4-UFuZgHaHa?w=181&h=181&c=7&r=0&o=5&dpr=1.38&pid=1.7"/></a></div>
<select>
<option value="name"><h2>Hello,Sign in</h2></option>
<option value="signup"> Sign Up </option>
<option value="Createaccount">Create Account</option>
<option>Your Account</option>
<option value="Purchase">Purchase</option>
<option value="Wishlist">Wishlist</option>
<option value="shippingaddresses">Shipping Address</option>
<option value="Paymentmeathod">Payment Meathods</option>
<option value="Payandmanagecard">Pay & Manage Nordsstrom Card</option>
<option value="passwordandpersoninfo">Password and Personal info</option>
<option value="Emailpreferences"> Email & Preferences</option>
</select>
<i class="fi fi-rr-lock"></i>
</div> -->
</div>
</div>
<div id="head2">
<div>Clearance</div>
<div><a href="womenproduct.html">Women</a> </div>
<div> <a href="menoroduct.html">Men</a></div>
<div>Kids</div>
<div>Shoes</div>
<div>Activewear</div>
<div>Bags & Accessories</div>
<div>Home</div>
<div>Beauty</div>
<div>Gifts</div>
<div>Flash Events</div>
</div>
</div>
<div id="details"></div>
<!-- footer -->
<img src="https://n.nordstrommedia.com/id/ada19f59-fec4-4365-95a8-458a289a9303.jpeg?h=180&w=1600s" alt="">
<div>
<!-- <p>Sign Up </p> -->
<!-- <p>See Restrictions</p> -->
</div>
<div class="top">
<p>Get E-mail Updates:</p>
<input type="text" placeholder="E-mail Address">
<input type="text" placeholder="SIGN UP">
</div>
<div id="container">
<div>
<h3>Customer Service</h3>
<p>Order Status</p>
<p>Guest Returns</p>
<p>Shipping & Return Policy</p>
<p>Gifts Cards</p>
<p>FAQ</p>
<p>Contact Us</p>
</div>
<div>
<h3>About Us</h3>
<p>About Our Brand</p>
<p>The Nordy Club</p>
<p>Store Locator</p>
<p>All Brands</p>
<p>Careers</p>
<p>Get Email Updates</p>
<p>Nordstrom Blog</p>
<p>Nordy Podcast</p>
</div>
<div>
<h3>Nordstrom Rack & The Community</h3>
<p>Corporate Social Responsibility</p>
<p>Diversity, Inclusion & Belonging</p>
<p>Big Brother Big Sister</p>
<p>Donate Clothes</p>
</div>
<div>
<h3>Nordstrom Card</h3>
<p>Apply for a Nordstrom Card</p>
<p>Pay My Bill</p>
<p>Manage my Nordstrom Card</p>
</div>
<div>
<h3>Nordstrom, Inc.</h3>
<p>Nordstrom</p>
<p>Nordstrom Canada</p>
<p>Trunk Club</p>
<p>HauteLook</p>
<p>Investor Relation</p>
<p>Press Releases</p>
<p>Nordstrom Media Network</p>
</div>
<div class="social">
<div class="phone">
<button>
<i class="fa fa-download" aria-hidden="true"></i>
<i class="fa fa-mobile" aria-hidden="true"></i>
<p>Download Our App</p>
</button>
</div>
<button>
<a href="https://www.facebook.com/NordstromRack" target="_blank">
<i class="fa fa-facebook" aria-hidden="true"></i>
</a>
</button>
<button>
<a href="https://twitter.com/nordstromrack" target="_blank">
<i class="fa fa-twitter" aria-hidden="true"></i>
</a>
</button>
<button>
<a href="https://www.pinterest.com/nordstromrack/" target="_blank">
<i class="fa fa-pinterest-p" aria-hidden="true"></i>
</a>
</button>
<button>
<a href="https://www.instagram.com/nordstromrack/" target="_blank">
<i class="fa fa-instagram" aria-hidden="true"></i>
</a>
</button>
</div>
</div>
<div class="last">
<p>Your Privacy Rights</p>
<p>Do Not Sell My Info</p>
<p>Terms & Conditions</p>
<p>Internet Based Ads</p>
<p>California Supply Chain Act</p>
<p>©2022 Nordstrom Rack</p>
</div>
</body>
</html>
<script>
var arr = JSON.parse(localStorage.getItem("projectdata")) || []
var container = document.querySelector('#details');
var data = JSON.parse(localStorage.getItem('details')) || [];
data.forEach(function(elem){
console.log(elem)
var image = document.createElement("div")
image.setAttribute("id","box1")
var info = document.createElement("div")
info.setAttribute("id","box2");
container.append(image,info);
// For Box 1
var back = document.createElement("p")
back.innerText = ""
var backlink = document.createElement("a")
backlink.innerText = "Back to result"
// back.append(backlink)
backlink.href = "mens.html"
var photo = document.createElement("img")
photo.setAttribute("src", elem.img)
document.querySelector("#box1").append(back,photo)
// For Box2
var name = document.createElement("p")
name.innerText = elem.name
var brand = document.createElement("p")
brand.innerText = elem.brand
var price = document.createElement("h3")
price.innerText = elem.cPrice
var offer = document.createElement("s")
offer.innerText = elem.oPrice
var catagory = document.createElement("p")
catagory.innerText = elem.catagory
var shipping = document.createElement("p")
shipping.innerText = "FREE SHIPPING ON ORDERS $89+"
var bonus = document.createElement("p")
bonus.innerText = "Get a $40 Bonus Note when you use a new Nordstrom credit card."
var aply = document.createElement("a")
aply.innerText = "Apply now";
// aply.setAttribute("href")
var size = document.createElement("select")
size.setAttribute("id","size");
var option1 = document.createElement("option")
option1.innerText = "Size"
var option2 = document.createElement("option")
option2.innerText = 28
option2.setAttribute("value","28")
var option3 = document.createElement("option")
option3.innerText = 30
option3.setAttribute("value","30")
var option4 = document.createElement("option")
option4.innerText = 32
option4.setAttribute("value","32")
var option5 = document.createElement("option")
option5.innerText = 34
option5.setAttribute("value","34")
size.append(option1,option2,option3,option4,option5)
var cart = document.createElement("button")
cart.setAttribute("id","cart");
cart.innerText = "Add to Bag"
cart.addEventListener("click",function(){
addcard(elem)
})
document.querySelector("#box2").append(name,brand,price,offer,catagory,shipping,bonus,aply,size,cart)
})
function addcard(elem){
for(var i=0; i<arr.length; i++){
if(arr[i].productID == elem.productID){
alert("product already in card")
return
}
}
arr.push(elem)
localStorage.setItem("projectdata",JSON.stringify(arr))
window.location.href = "appcard.html"
}
</script>