-
Notifications
You must be signed in to change notification settings - Fork 3
/
data.js
403 lines (371 loc) · 18.2 KB
/
data.js
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
var foodData = [
{
src: "https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61063fef3319dbcfa7088dc3_production-meal-image-29fee2e7-8e88-4cd3-aad9-0e7d25671f7f.jpeg",
name : "Steak Peppercorn",
cal :" 500 Cal | Gluten Free | Single-Serve",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6b8686c6708c070e7d41_production-meal-image-e4122aa8-0fe7-4854-b6f5-e27e0c5be918.jpeg",
name : "Homestyle Chicken",
cal :" 560 Cal | Gluten Free | Single-Serve",
category : "Signature Collection",
},
{ src :"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6b89b735739065897a4f_production-meal-image-c9eef45a-97a9-487c-9550-71488e5f639a.jpeg",
name : "Cauliflower Shell Beef Bolognese",
cal : "490 Cal | Gluten Free | Single-Serve",
category : "Signature Collection",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6b8bdf3b65081fd159c6_production-meal-image-f0de55be-d691-4ade-bc26-b4a8aedaa1fe.jpeg",
name : "Sausage Baked Penne",
cal : "470 Cal | Gluten Free | Single-Serve",
category : "Signature Collection",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6b8e6dd23b60cb122654_production-meal-image-92ec0fc1-d352-4720-9b83-96798ab8d2de.jpeg",
name : "Savory-Sweet Chicken Teriyaki Bowl",
cal : "480 Cal | Gluten Free | Single-Serce",
category : "FreshlyFit",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/610640046931cb5d54bd5472_production-meal-image-7a62bb89-9bcb-4f1f-9f0f-d8372698d48e.jpeg",
name :"Protein-Packed Chicken Parm",
cal : "410 Cal | Gluten Free | Single-Serve",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6b9a85b43c3383a0a3b3_production-meal-image-ef64cbd3-cc91-4c5f-9865-b9ff0442572e.jpeg",
name :" Zingy Buffalo Chicken",
cal :" 470 Cal | Gluten Free | Single-Serve",
category : "FreshlyFit",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6c2c5a38e27cd54e521b_production-meal-image-93da874b-3677-4881-9674-1a9f3a39ba38.jpeg",
name :"Wintertime Turkey Meatloaf",
cal :" 500 Cal | Gluten Free | Single-Serve",
category : "Signature Collection",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/6106401a005f9f6781262949_production-meal-image-17ade4a4-7351-4ff8-95c6-765d70e5ea5d.jpeg",
name :"White Bean Turkey Chili Bowl",
cal :"540 Cal | Gluten Free | Single-Serve",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6bfaee61ff381ae00518_production-meal-image-4aa973ed-846f-4957-9341-272c1125725d.jpeg",
name :" Very Verde Chicken",
cal :"470 Cal | Gluten Free | Single-Serve",
category : "Signature Collection",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6bc1b3af4007be53c093_production-meal-image-51fe566d-7bc5-4500-91b0-622d6c2e665c-p-500.jpeg",
name :" Unwrapped Salsa Verde Burrito",
cal :" 400 Cal | Gluten Free | Single-Serve",
category : "Purely Plant",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6c19df3b6557b5d15ae8_production-meal-image-1ae8822e-987c-4a7e-8961-557d69673c01.jpeg",
name :"Tricolor Beef Lasagna",
cal :" 650 Cal | Gluten Free | Single-Serve",
category : "Signature Collection",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6c1c549a617576e07d76_production-meal-image-353ecb3a-15e4-465e-bb69-4b91e4c6b004.jpeg",
name :" Traditional Beef Stew",
cal :" 260 Cal | Gluten Free | Single-Serve",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6be2ee61ff2719dff7cd_production-meal-image-0a3b0cc8-11c7-4dd7-9b62-21a8a91c6a07-p-800.jpeg",
name :"Three-Grain Harvest Bowl",
cal :" 420 Cal | Gluten Free | Single-Serve",
category : "FreshlyFit",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6c0a2037c265ce187aed_production-meal-image-2f53a0bb-c83f-48f7-b920-53e9157ac5e1.jpeg",
name :"Super-Grain Pulled Pork Bowl",
cal :" 400 Cal | Gluten Free | Single-Serve",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6c0f6dd23b0f8012af30_production-meal-image-93be0073-891b-4443-a6a0-9ab21a1d309c-p-500.jpeg",
name :"Sticky-Sweet BBQ Beef Bowl",
cal :" 390 Cal | Gluten Free | Single-Serve",
category : "FreshlyFit",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6bca85b43c18b1a0ac1e_production-meal-image-cd1dace6-cfd9-406d-a1ee-e836f2f386ea-p-500.jpeg",
name :" Southwest Beef Stew",
cal :" 350 Cal | Gluten Free | Single-Serve",
category : "Signature Collection",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6c0c258c0b2ab9211a8f_production-meal-image-ca312748-3978-41a6-b77b-71968d146b4e-p-500.jpeg",
name :" Southern-Inspired Pork Chop",
cal :" 610 Cal | Gluten Free | Single-Serve",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6c00ce5dcd725212481d_production-meal-image-37f943f1-bab9-4777-8d1f-9271115c69d0-p-500.jpeg",
name :" Slow-Cooked Red Wine Beef Brisket",
cal :"620 Cal | Gluten Free | Single-Serve",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61064033d2877aaa317edab7_production-meal-image-f28dfb4e-efc8-4dff-b95c-9239797edcb0-p-500.jpeg",
name :" Shrimp & Andouille Paella",
cal :"530 Cal | Gluten Free | Single-Serve",
category : "Signature Collection",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6c2f2037c26803188fee_production-meal-image-7a3ba895-37a7-4f47-9e32-3667bb6141d3.jpeg",
name :"Sheet Pan Chicken",
cal :" 420 Cal | Gluten Free | Single-Serve",
category : "FreshlyFit",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6ba5f589fe69d6562dee_production-meal-image-a4feff11-ec91-43e8-bab5-e6daf8b55eea.jpeg",
name :" Sesame-Ginger Chicken & Noodles",
cal :" 430 Cal | Gluten Free | Single-Serve",
category : "Signature Collection",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6ba8406d133a498de788_production-meal-image-e184440d-cfea-4806-b7e3-1e5856975959-p-800.jpeg",
name :" Sautéed French Green Beans (11 oz)",
cal :" 140 Cal | Gluten Free | Single-Serve",
category : "Purely Plant",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6bda86c670c07a0efcd2_production-meal-image-86d5fe9a-e01f-4af5-b246-e68d2eb8aebb.jpeg",
name :" Purely Plant Shepherd’s Pie",
cal :" 410 Cal | Gluten Free | Single-Serve",
category : "Purely Plant",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6ba186c67063830ea67a_production-meal-image-7bfd44a5-38ec-4893-a0ff-d93693b1deb9-p-500.jpeg",
name :" Pork Carnitas",
cal :"480 Cal | Gluten Free | Single-Serve",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6bde0c617f531e552730_production-meal-image-933355a9-e575-456c-9961-d6ac01cb50da-p-500.jpeg",
name :" Oven-Baked Sweet Potato Cakes",
cal :" 430 Cal | Gluten Free | Single-Serve",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6bae406d134c038de8c9_production-meal-image-09259aec-5f39-4b6a-8894-fed742f5ab3c.jpeg",
name :" Oven-Baked Chicken Florentine",
cal :" 410 Cal | Gluten Free | Single-Serve",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6bd0df3b6577c7d15aa4_production-meal-image-c92760b3-d1c8-463a-9721-8effc5cbc614.jpeg",
name :" Miso-Glazed Beef Bowl",
cal :" 330 Cal | Gluten Free | Single-Serve",
category : "FreshlyFit",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6bcd85b43c0274a0ac73_production-meal-image-197e49d6-cfcc-4a4b-b0ea-4854553694de-p-800.jpeg",
name :" Middle Eastern Falafel",
cal :"470 Cal | Gluten Free | Single-Serve",
category : "Purely Plant",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/610640562b4a8d4304d8cd7f_production-meal-image-736d13f8-813c-47a9-91e3-e11eecfeb4ef.jpeg",
name :" Masterful Mash (16 oz)",
cal :" 160 Cal | Gluten Free | Multi-Serve",
category : "Proteins & Side",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/610640534648a3861409719e_production-meal-image-a06ce51f-74b3-429e-8ff1-ada01979e783.jpeg",
name :" Masterful Mac & Cheese (15 oz)",
cal :" 470 Cal | Gluten Free | Single-Serve",
category : "Proteins & Side",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6c16f03e5054a3d2e502_production-meal-image-d326b649-4c05-4215-a730-620b0d93ae2a-p-500.jpeg",
name :" Kung Pao Steak",
cal :" 520 Cal | Gluten Free | Single-Serve",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/6106406e186b52870a4ef9b9_production-meal-image-e11563a9-0714-42b4-aac9-239a7592018b-p-500.jpeg",
name :" Keto-Friendly Chicken Bowl",
cal :" 340 Cal | Gluten Free | Single-Serve",
category : "FreshlyFit",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6bfdfa4a1561bccc8cb2_production-meal-image-6dcb7ec8-8907-481c-b9d1-4bb54a42a89c-p-500.jpeg",
name :" K-Town Pork & Purple Sticky Rice",
cal :" 590 Cal | Gluten Free | Single-Serve",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6c064b4b238487a0b2b0_production-meal-image-2e64815b-800d-4a38-9664-c7a524148b2f-p-500.jpeg",
name :" Jerk Chicken Bowl",
cal :" 380 Cal | Gluten Free | Single-Serve",
category : "FreshlyFit",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6c13fa4a152d43cc96d6_production-meal-image-fa4ff532-e487-4656-b98f-f489d59e73b6-p-500.jpeg",
name :" Indian-Spiced Chickpea Curry Bowl",
cal :" 360 Cal | Gluten Free | Single-Serve",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6bd74b4b23e889a06f18_production-meal-image-7448fb51-c1f4-4ac8-ad5b-1406fc1bfcfd.jpeg",
name :" Huli Huli Chicken",
cal :" 460 Cal | Gluten Free | Single-Serve",
category : "Proteins & Side",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/6106401eb621bbc28987f309_production-meal-image-53e1a296-8d48-4ba8-acb3-0d9032960be2.jpeg",
name :" Hearty Chipotle-Chicken Stew",
cal :" 420 Cal | Gluten Free | Single-Serve",
category : "Signature Collection",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6b94f03e50f2e0d2b7f3_production-meal-image-bc1b24c8-f62a-4756-a40e-173a8b67a590.jpeg",
name :" Golden Oven-Fried Chicken & Mash",
cal :" 510 Cal | Gluten Free | Single-Serve",
category : "Proteins & Side",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6bc4aa4db184af441ba7_production-meal-image-b845ba48-1300-4ecb-b9d0-d545b084f15a.jpeg",
name :" Farmstead Baked Lentil Pasta",
cal :" 500 Cal | Gluten Free | Single-Serve",
category : "Purely Plant",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/6106402df2b93274e84b7c29_production-meal-image-b01ab4ec-ab22-4963-b985-7b980709d4b0-p-500.jpeg",
name :" Escovitch Steak",
cal :" 450 Cal | Gluten Free | Single-Serve",
category : "Proteins & Side",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6bf7fa4a155c27cc8b88_production-meal-image-207ee5a9-50b6-4d3f-a0bb-e31354d0e606-p-500.jpeg",
name :" Creamy Mushroom Risotto",
cal :" 460 Cal | Gluten Free | Single-Serve",
category : "Signature Collection",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6bee549a61ddbce0691d_production-meal-image-603e4274-71b0-48a1-8072-c11baab58220.jpeg",
name :" Chipotle Chicken Bowl",
cal :" 240 Cal | Gluten Free | Single-Serve",
category : "Signature Collection",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6bb12037c27177184b97_production-meal-image-fa07e0dc-cb7f-43d7-a669-d35dc3fbcf93-p-500.jpeg",
name :" Chicken Tikka Masala",
cal :"570 Cal | Gluten Free | Single-Serve",
category : "Proteins & Side",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6bf485b43cf5faa0b293_production-meal-image-d5e81f22-3f38-4eaa-932a-c0bca23a021c.jpeg",
name :" Chicken & Pumpkin Parmesan Risotto",
cal :" 530 Cal | Gluten Free | Single-Serve",
category : "Signature Collection",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6bd35a38e27af54e3f3e_production-meal-image-68fb94dd-b723-4a29-8a8e-ad7b6a02c2ec.jpeg",
name :" Chicken ’n’ Drop Biscuits",
cal :" 700 Cal | Gluten Free | Single-Serve",
category : "Proteins & Side",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/6106400aa25771202335c782_production-meal-image-1a05b254-2fc5-4eec-9cec-5b1cde753c06-p-500.jpeg",
name :" Chicken Livorno",
cal :" 490 Cal | Gluten Free | Single-Serve",
category : "Signature Collection",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6bf10a8aa972b7670255_production-meal-image-8f27cccd-b0db-405a-9341-3f4adabcbe9c.jpeg",
name :" Chicken Cordon Bleu ",
cal :" 710 Cal | Gluten Free | Single-Serve",
category : "Proteins & Side",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6c264b4b234713a0e3fe_production-meal-image-1daa7db4-183a-4aa0-bd4c-2ab21a5a47a5-p-500.jpeg",
name :" Brown-Butter Pork & Cauli Shells",
cal :" 600 Cal | Gluten Free | Single-Serve",
category : "Signature Collection",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6be4ee61ff706bdff870_production-meal-image-9e969581-d09c-4617-9b17-d455d23c8952-p-500.jpeg",
name :" BBQ Bison Burger*",
cal :" 600 Cal | Gluten Free | Single-Serve",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6c1f3b2d3a4142f2afe5_production-meal-image-b22511da-67a6-428b-a50d-10212f5cea17.jpeg",
name :" Bangers & Mash",
cal :" 450 Cal | Gluten Free | Single-Serve",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6c03aa4db1849944565d_production-meal-image-2d36ad62-ae02-42fe-9c16-f2064587d892-p-500.jpeg",
name :" Baked Turkey Meatballs",
cal :"360 Cal | Gluten Free | Single-Serve",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6beaaa4db1087744427f_production-meal-image-d49fdb42-ecc3-4c0f-ae05-6968f1049a73.jpeg",
name :" Baja Pork Bowl",
cal :" 420 Cal | Gluten Free | Single-Serve",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61ff6bc75803c5766db77d82_production-meal-image-63479068-f450-4424-a206-229bd42ab321-p-500.jpeg",
name :" Asian-Style Chicken & Noodles",
cal :" 400 Cal | Gluten Free | Single-Serve",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/61064050a510183577a6c7f7_production-meal-image-ea98e43b-5663-49f6-9c00-8f2b23225bd2-p-500.jpeg",
name :" 8 Baked Turkey Meatballs (9.98 oz)",
cal :" 110 Cal | Gluten Free | Multi-Serve",
category : "Proteins & Side",
},
{
src:"https://assets-global.website-files.com/5d03b4e13011831ae4624b37/6106404a9ca1f30fe0fbb9a9_production-meal-image-50d04c03-029a-4039-ab75-8aecefbdcf43-p-500.jpeg",
name :" 3 Grilled Chicken Breasts (9.75 oz)",
cal :" 160 Cal | Gluten Free | Multi-Serve",
category : "Proteins & Side",
},
];
localStorage.setItem("foodData", JSON.stringify(foodData));
var arr = JSON.parse(localStorage.getItem("foodData")) || [];
var value = document.getElementById("select").value;
function search() {
document.getElementById("list").innerHTML = "";
var searchText = document.getElementById("select").value;
if(searchText=="All Meals")
{
// allMeals();
// console.log(searchText);
arr.map(function(ele,index)
{
var div = document.createElement("div");
var img = document.createElement("img");
img.src = ele.src;
var h3 = document.createElement("h3");
h3.innerText = ele.name;
div.append(img,h3,ele.cal);
document.getElementById("list").append(div)
});
}
else
{
var searchText = document.getElementById("select").value;
console.log(searchText);
var filterData = arr.filter(function(ele)
{
return ele.category== searchText;
// console.log()
});
// console.log(arr);
console.log(filterData);
filterData.map(function(ele,index)
{
var div = document.createElement("div");
var img = document.createElement("img");
img.src = ele.src;
var h3 = document.createElement("h3");
h3.innerText = ele.name;
div.append(img,h3,ele.cal);
document.getElementById("list").append(div)
});
}
}
document.getElementById("date").addEventListener("click",function()
{
date();
});
function date()
{
window.location.href = "choose.html";
}