-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOn The Go.html
486 lines (460 loc) · 20.2 KB
/
On The Go.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
<!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>LIFE>On The Go</title>
<link rel="stylesheet" href="home.css">
<script src="https://kit.fontawesome.com/f6dcf461c1.js" crossorigin="anonymous"></script>
</head>
<body>
<!-- TOP NAV -->
<header>
<nav id="nav">
<ul>
<li><a href="index.html">WOMENS</a> </li>
<li><a href="Myteresa.html">MEN</a> </li>
<li><a href="LANDING3.html">KIDS</a> </li>
<li><a href="LANDING.html">LIFE</a> </li>
</ul>
<ul id="ul2">
<li><a href="myAccount.html">Signup for Newsletter</a> </li>
<li><a href="myAccount.html">My account</a> </li>
<li><a href="AddToCart.html">My Wishlist ♡ </a> </li>
<li><a href="#">INDIA</a> </li>
</ul>
</nav>
</header> <br>
<!-- TOP NAV end -->
<!-- Navbar -->
<div id="body">
<div>
<a href="LANDING.html"><img id="logo"
src="https://www.mytheresa.com/skin/frontend/mytheresa/default/images/logo.png?v=20220614T092128"
alt="Error"></a></div>
<div id="miniNav">
<div>
<a href="New Arrivals.html">
<p>NEW ARRIVALS</p>
</a>
<a href="">
<p>DESIGNERS</p>
</a>
<a href="home.html">
<p>HOME</p>
</a>
<a href="On The Go.html">
<h3>ON THE GO</h3>
</a>
<a href="Pets.html">
<p>PETS</p>
</a>
<a href="Stories.html">
<p>STORIES</p>
</a>
</div>
<div id="searchBar">
<form>
<input type="text" placeholder="Search for....">
<button><img
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAjVBMVEX///8AAADKysrHx8fNzc2IiIj4+Pjq6ur7+/vt7e3X19eAgIDn5+fc3NzExMTj4+MbGxuoqKh4eHiRkZFKSkpZWVm1tbUrKysiIiLz8/NwcHBeXl6cnJyurq48PDwMDAxLS0soKCh8fHygoKC7u7s4ODhlZWUeHh4xMTE6OjoLCwsVFRVTU1NCQkKVl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lWyCBMqn95KriaPorchloJEgtwbz8W2a5OZ/Ghjt4Pu/OfGaRiaqXV6sFbBNPLPSR/GixSC3dvwca2OYb6Wy1XjXck79/RW9sLj6HXfou+3zP+5zJeLdckFSvTrIrAeQkv42mTDPVnHOfL1P7kIqnasVkq/nyPg9QOXWOQcrBklKH+0vGyalKnsW2nT7vpKuoZxR9jrSWXak7nuZu5Y2+aoZ46lVDFOJmVd3273jhDPdHreq9ZK0i1uh88b/L56Yaq+MNDZ+RFgwQ9D5E36hSItIw0VEnLf2xsFv31er5e9xebxqNf/KDMcBUxMNdQ0SiBiiUw1BKoWAJDNc+BQ8cZqg2UQMUSGGoJVCyBobpFwwbMObYhowTfYqkN1RoVS2CoJVCxBIZaAhVLYKjOgbOBUhuqNSqWwFBLoGIJDLUEKqYaqp5S8BSkqGhIwQMUEg11bEa9AyQSVFyZ8DIwIoqhLi0y0RMXozixTsELFceWmegJYKgTKxUEKtr3DZ75M9SVtQr+qWjnN3jmx1D3Vi30KjUblwmHw+FwOBwOh8NhFP8BxfhYVXrDP/oAAAAASUVORK5CYII="
alt="Error"></button>
</form>
</div>
</div>
<div class="blink"><span>Free returns within 30 Days</span></div>
<!-- End of Navbar -->
<div>
</div>
<!-- Sort navbar -->
<div id="top">
<div>
<p>LIFE/On The Go >></p>
</div>
<div>
<select id="sort">
<option value="Sort by">Sort by</option>
<option value="asc">Price low-to-high</option>
<option value="desc">Price high-to-low</option>
</select>
</div>
</div>
<!-- End of Sort navbar -->
<div id="bottom">
<div id="sidebar">
<p>ON THE GO</p>
<div id="brand">
<!-- <p>NEW ARRIVALS</p> -->
<p>Designer</p>
<form id="ONTHEGO" id="designer">
<input type="checkbox" name="All" id="All" value="All">
<label for="All">All</label><br>
<input type="checkbox" name="Bottega Veneta" id="Bottega_Veneta" value="BOTTEGA VENETA">
<label for="Bottega_Veneta">Bottega Veneta</label><br>
<input type="checkbox" name="Burberry" id="Burberry" value="BURBERRY">
<label for="Burberry">Burberry</label><br>
<input type="checkbox" name="Gucci" id="Gucci" value="LOEWE">
<label for="Gucci">Gucci</label><br>
<input type="checkbox" name="Loewe" id="Loewe" value="LOEWE">
<label for="Loewe">Loewe</label>
</form>
</div>
<div id="color-section">
<p>Colors</p>
<form id="colour">
<input type="checkbox" name="All" id="All" value="All">
<label for="All">All</label><br>
<input type="checkbox" name="Beige" id="Beige" value="beige">
<label for="Beige">Beige</label><br>
<input type="checkbox" name="Brown" id="Brown" value="brown">
<label for="Brown">Brown</label><br>
<input type="checkbox" name="Pink" id="Pink" value="pink">
<label for="Pink">Pink</label><br>
<input type="checkbox" name="Black" id="Black" value="black">
<label for="Black">Black</label><br>
<input type="checkbox" name="Multicoloured" id="Multicoloured" value="multicoloured">
<label for="Multicoloured">Multicoloured</label><br>
</form>
</div>
</div>
<div id="display">
</div>
</div>
<footer id="FooterDetails">
<div>
<p>SERVICE & SECURITY</p>
<p>✓ Fast delivery</p>
<p>Delivery within 2 business days</p>
<p>✓ Free returns within 30 days</p>
<p>Convenient return service</p>
<p>✓ Secure payment and data protection</p>
<p>SSL encryption for secure transactions and personal data</p>
</div>
<div>
<p>MYTHERESA</p>
<p>About us</p>
<p> Trust & services</p>
<p>Sustainability</p>
<p> Press</p>
<p> Careers</p>
<p> Investor Relations</p>
<p> Affiliates</p>
</div>
<div>
<p>CUSTOMER CARE</p>
<p>Contact us</p>
<p>Shipping information</p>
<p>Secure payment</p>
<p>Exchanges</p>
<p>Returns</p>
<p>After sale service</p>
<p>Gift card</p>
</div>
<div>
<p>GET TREND UPDATES, STYLE TIPS AND MORE</p>
<input type="email" placeholder="your email address here"><label for="Signup">SIGNUP</label>
<p>Wishlist ♡</p>
<p>Receive personal notifications</p>
<p>Follow us on</p>
<div id="FatherLogo">
<div><img id="LoGo"
src="https://www.abacuspg.co.uk/wp-content/uploads/2016/06/linkedin-logo_318-50643.jpg"
alt="x-icon"></div>
<div><img id="LoGo" src="https://www.billingschamber.com/media/facebook.png" alt="x-icon"></div>
<div><img id="LoGo" src="https://clipart.info/images/ccovers/1534043160twitter-logo-png-black.png"
alt="x-icon"></div>
<div><img id="LoGo"
src="https://upload.wikimedia.org/wikipedia/commons/thumb/0/04/Pinterest_font_awesome.svg/512px-Pinterest_font_awesome.svg.png?20170908192524"
alt="x-icon"></div>
<div><img id="LoGo"
src="https://i.etsystatic.com/26102212/r/il/a42611/3201074382/il_1140xN.3201074382_hy4l.jpg"
alt="x-icon"></div>
<div><img id="LoGo"
src="https://www.nicepng.com/png/full/14-147850_youtube-play-button-youtube-play-button-black.png"
alt="x-icon"></div>
<div><img id="LoGo"
src="https://static.vecteezy.com/system/resources/previews/001/195/120/non_2x/camera-film-polaroid-png.png"
alt="x-icon"></div>
<!-- <div><img id="LoGo" src="" alt="x-icon"></div>
<div><img id="LoGo" src="" alt="x-icon"></div> -->
</div>
</div>
</footer>
<footer id="LastFooter">
<div id="img">
<p>payment methods:</p><label>
<img src="https://www.wisdom-drops.com/wp-content/uploads/2017/02/paypal-logo-300x117.png" alt="paypal">
</label>
</div>
<div>
copyright © 2006-2022 mytheresa.com
</div>
<div>
<a href="https://www.mytheresa.com/int_en/service/terms-conditions/">terms of use</a>
<a href="https://www.mytheresa.com/int_en/service/privacy-policy/">privacy-policy</a>
<a href="https://www.mytheresa.com/int_en/service/imprint/">imprint</a>
</div>
<div id="imgg1">
<p>delivered by:</p><label id="im">
<img id="imgg2" src="https://assets.dpdhl-brands.com/guides/dhl/guides/design-basics/logo-and-claim/logo/versions-01.png" alt="dhl">
</label>
</div>
</footer>
</body>
</html>
<script>
let new_arr_data = [{
img: "https://img.mytheresa.com/560/560/33/jpeg/catalog/product/10/P00434730.jpg",
brand: "BOTTEGA VENETA",
name: "Intrecciato passport holder",
price: 285,
cat: "ON THE GO",
color: "black",
qty: 1
}, {
img: "https://img.mytheresa.com/560/560/33/jpeg/catalog/product/5d/P00628848.jpg",
brand: "BURBERRY",
name: "Icon Stripe phone pouch",
price: 445,
cat: "ON THE GO",
color: "multicoloured",
qty: 1
}, {
img: "https://img.mytheresa.com/560/560/33/jpeg/catalog/product/0c/P00340622.jpg",
brand: "CHRISTIAN LOUBOUTIN",
name: "Loubiphone Sneakers iPhone X/XS case",
price: 185,
cat: "ON THE GO",
color: "red",
qty: 1
}, {
img: "https://img.mytheresa.com/560/560/33/jpeg/catalog/product/e1/P00488017.jpg",
brand: "GUCCI",
name: "Ophidia GG iPhone 11 Pro case",
price: 295,
cat: "ON THE GO",
color: "beige",
qty: 1
}, {
img: "https://img.mytheresa.com/560/560/33/jpeg/catalog/product/e8/P00345302.jpg",
brand: "GUCCI",
name: "x Globe-Trotter carry-on suitcase",
price: 2305,
cat: "ON THE GO",
color: "beige",
qty: 1
}, {
img: "https://img.mytheresa.com/560/560/33/jpeg/catalog/product/a0/P00345303.jpg",
brand: "GUCCI",
name: "x Globe-Trotter carry-on suitcase",
price: 2605,
cat: "ON THE GO",
color: "beige",
qty: 1
}, {
img: "https://img.mytheresa.com/560/560/33/jpeg/catalog/product/3f/P00615783.jpg",
brand: "GUCCI",
name: "GG Supreme AirPods case",
price: 379,
cat: "ON THE GO",
color: "mlticoloured",
qty: 1
}, {
img: "https://img.mytheresa.com/560/560/33/jpeg/catalog/product/f8/P00694312.jpg",
brand: "LOEWE",
name: "Anagram embossed leather pouch",
price: 549,
cat: "ON THE GO",
color: "black",
qty: 1
}, {
img: "https://img.mytheresa.com/560/560/33/jpeg/catalog/product/53/P00439193.jpg",
brand: "LOEWE",
name: "Elephant leather iPhone X/XS case",
price: 395,
cat: "ON THE GO",
color: "brown",
qty: 1
}, {
img: "https://img.mytheresa.com/560/560/33/jpeg/catalog/product/fd/P00587331.jpg",
brand: "LOEWE",
name: "iPhone 12 Pro Max Anagram leather case",
price: 265,
cat: "ON THE GO",
color: "brown",
qty: 1
}, {
img: "https://img.mytheresa.com/560/560/33/jpeg/catalog/product/6d/P00682196.jpg",
brand: "LOEWE",
name: "Paula's Ibiza water bottle",
price: 155,
cat: "ON THE GO",
color: "multicoloured",
qty: 1
}, {
img: "https://img.mytheresa.com/560/560/33/jpeg/catalog/product/52/P00682194.jpg",
brand: "LOEWE",
name: "Paula's Ibiza water bottle",
price: 155,
cat: "ON THE GO",
color: "multicoloured",
qty: 1
}, {
img: "https://img.mytheresa.com/560/560/33/jpeg/catalog/product/12/P00439196.jpg",
brand: "LOEWE",
name: "Elephant leather iPhone X case",
price: 365,
cat: "ON THE GO",
color: "pink",
qty: 1
}]
let newArr = JSON.parse(localStorage.getItem("kids-NewArr")) || []
document.querySelector("#sort").addEventListener("change", function () {
sortMe(new_arr_data)
})
function sortMe(new_arr_data) {
let req = document.querySelector("#sort").value;
if (req == "asc") {
let asc = new_arr_data.sort(function (a, b) {
if (a.price > b.price) return 1
if (a.price < b.price) return -1
return 0
})
displayProducts(asc)
}
else if (req == "desc") {
let desc = new_arr_data.sort(function (a, b) {
if (a.price > b.price) return -1
if (a.price < b.price) return 1
return 0
})
displayProducts(desc)
}
}
displayProducts(new_arr_data)
function displayProducts(new_arr_data) {
document.querySelector("#display").innerHTML = ""
new_arr_data.forEach(function (el) {
let child_div = document.createElement("div")
// add to wishlist start
let holder = document.createElement("div")
holder.setAttribute("class", "holder")
let wish = document.createElement("button")
let heart = document.createElement("i")
heart.setAttribute("class", "fas fa-heart")
wish.append(heart)
wish.style.color = "grey"
wish.setAttribute("class", "btn1")
wish.addEventListener("click", function () {
if (toggle(el, wish) == true) {
alert("Item already extists in wishlist")
}
else {
if (wish.style.color == "grey") {
wish.style.color = "red"
}
else {
wish.style.color = "grey"
}
newArr.push(el)
alert("added")
localStorage.setItem("kids-NewArr", JSON.stringify(newArr))
}
})
holder.append(wish);
// add to wishlist end
let img = document.createElement("img")
img.setAttribute("src", el.img)
let brand = document.createElement("p")
brand.innerText = el.brand;
let name = document.createElement("p")
name.innerText = el.name;
let price = document.createElement("p")
price.innerText = "€" + " " + el.price;
child_div.append(holder, img, brand, name, price)
document.querySelector("#display").append(child_div)
});
}
function toggle(el, wish) {
let filtered = newArr.filter(function (elem) {
return el.name == elem.name
})
if (filtered.length > 0) {
return true
}
else {
return false
}
}
let sorting = document.querySelectorAll("#colour>input")
for (let i = 0; i < sorting.length; i++) {
let c = sorting[i].value
sorting[i].addEventListener("click", function () {
colourSort(c)
})
}
function colourSort(c) {
if (c === "All") {
displayProducts(new_arr_data)
}
else {
let filtered = new_arr_data.filter(function (el) {
return el.color == c
})
if (filtered.length == 0) {
alert("No products found")
}
else {
displayProducts(filtered)
}
}
}
let sortingBrand = document.querySelectorAll("#designer>input")
for (let i = 0; i < sortingBrand.length; i++) {
let b = sortingBrand[i].value
console.log(b)
sortingBrand[i].addEventListener("click", function () {
brandSort(b)
})
}
function brandSort(b) {
if (b === "All") {
displayProducts(new_arr_data)
}
else {
let brandFilter = new_arr_data.filter(function (el) {
return el.brand == b
})
if (brandFilter.length == 0) {
alert("No products found")
}
else {
displayProducts(brandFilter)
}
}
}
let sortingCat = document.querySelectorAll("#category>input")
for (let i = 0; i < sortingCat.length; i++) {
let s = sortingCat[i].value
sortingCat[i].addEventListener("click", function () {
catSort(s)
})
}
function catSort(s) {
if (s === "All") {
displayProducts(new_arr_data)
}
else {
let catFilter = new_arr_data.filter(function (el) {
return el.cat == s
})
if (catFilter.length == 0) {
alert("No products found")
}
else {
displayProducts(catFilter)
}
}
}
</script>