Repository navigation
Expand file tree
/
Copy pathmeal_plan.html
More file actions
330 lines (292 loc) · 18.3 KB
/
Copy pathmeal_plan.html
File metadata and controls
330 lines (292 loc) · 18.3 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<script src="script.js"></script>
<script src="https://kit.fontawesome.com/cf7810e762.js" crossorigin="anonymous"></script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="./images/logo.png">
<link rel="stylesheet" type="text/css" href="styles.css">
<link href='https://fonts.googleapis.com/css?family=Zen Maru Gothic|Abel' rel='stylesheet'>
<title>Nulife Meal Plan</title>
</head>
<body>
<img id="menu" src="./images/menu.svg" alt="Menu"/>
<div>
<img id="rect" src="./images/rectangle.png">
<div class="navigation">
<a href="index.html" class="navLinks">Home</a><br>
<hr class="menu_hr" id="hr1">
<a href="checklist.html" class="navLinks">To Do</a><br>
<hr class="menu_hr" id="hr2">
<a href="signin.html" class="navLinks">Login</a><br>
<hr class="menu_hr" id="hr4">
<a href="contact.html" class="navLinks">Contact</a><br>
<hr class="menu_hr" id="hr3">
</div>
</div>
<div class="blurcontent">
<img id="mp_bg" src="./FoodPics/bg.png" alt="Background">
<h1 id="title">Your Meal Plan</h1>
<hr class="mp_hr">
<div class="mealNums">
<p id="meal1">Meal 1</p>
<p id="meal2">Meal 2</p>
<p id="meal3">Meal 3</p>
</div>
<img id="mealimg1" src="./images/leaves.jpg" alt="Meal 1 Image">
<img id="mealimg2" src="./images/leaves.jpg" alt="Meal 2 Image">
<img id="mealimg3" src="./images/leaves.jpg" alt="Meal 3 Image">
<div class="prices-dropdown">
<span id="prices-dropdown-button">Prices</span>
<div class="prices-dropdown-content">
<p id="prices-dropdown-0">$0 - $50</p>
<p id="prices-dropdown-50">$50 - $100</p>
<p id="prices-dropdown-100">$100 - $150</p>
<p id="prices-dropdown-150">$150 - $200</p>
</div>
</div>
<div class="diet-dropdown">
<span id="diet-dropdown-title">Diet</span>
<div class="diet-dropdown-content">
<p id="diet-dropdown-lowcarb">Low Carb</p>
<p id="diet-dropdown-highprotein">High Protein</p>
<p id="diet-dropdown-vegan">Vegan</p>
</div>
</div>
<div class="mealNames">
<p id="mealName1">Meal 1</p>
<p id="mealName2">Meal 2</p>
<p id="mealName3">Meal 3</p>
</div>
<div class="ingredients">
<a href="" id="ing1">Ingredients</a>
<a href="" id="ing2">Ingredients</a>
<a href="" id="ing3">Ingredients</a>
</div>
</div>
<script>
menuAnimation("menu", "rect", "blurcontent", "navLinks", "menu_hr");
const meal1 = document.getElementById("mealimg1");
const meal2 = document.getElementById("mealimg2");
const meal3 = document.getElementById("mealimg3");
const mealName1 = document.getElementById("mealName1");
const mealName2 = document.getElementById("mealName2");
const mealName3 = document.getElementById("mealName3");
const ing1 = document.getElementById("ing1");
const ing2 = document.getElementById("ing2");
const ing3 = document.getElementById("ing3");
const dietDropdownBtn = document.getElementById("diet-dropdown-title");
const dietDropdownLowCarb = document.getElementById("diet-dropdown-lowcarb");
const dietDropdownHighProtein = document.getElementById("diet-dropdown-highprotein");
const dietDropdownVegan = document.getElementById("diet-dropdown-vegan");
const pricesDropdownBtn = document.getElementById("prices-dropdown-button");
const pricesDropdown0 = document.getElementById("prices-dropdown-0");
const pricesDropdown50 = document.getElementById("prices-dropdown-50");
const pricesDropdown100 = document.getElementById("prices-dropdown-100");
const pricesDropdown150 = document.getElementById("prices-dropdown-150");
let dietIndex = 0;
let priceIndex = 0;
function updateImages() {
meal1.src = directories[priceIndex][dietIndex][0];
meal2.src = directories[priceIndex][dietIndex][1];
meal3.src = directories[priceIndex][dietIndex][2];
mealName1.textContent = directories[priceIndex][dietIndex][3];
mealName2.textContent = directories[priceIndex][dietIndex][4];
mealName3.textContent = directories[priceIndex][dietIndex][5];
ing1.href = directories[priceIndex][dietIndex][6];
ing2.href = directories[priceIndex][dietIndex][7];
ing3.href = directories[priceIndex][dietIndex][8];
}
dietDropdownLowCarb.addEventListener("click", function() {
if (dietDropdownBtn.textContent == "Diet") {
pricesDropdownBtn.textContent = pricesDropdown0.textContent;
priceIndex = 0;
}
dietDropdownBtn.textContent = dietDropdownLowCarb.textContent;
dietIndex = 1;
updateImages();
});
dietDropdownHighProtein.addEventListener("click", function() {
if (dietDropdownBtn.textContent == "Diet") {
pricesDropdownBtn.textContent = pricesDropdown0.textContent;
priceIndex = 0;
}
dietDropdownBtn.textContent = dietDropdownHighProtein.textContent;
dietIndex = 0;
updateImages();
});
dietDropdownVegan.addEventListener("click", function() {
if (dietDropdownBtn.textContent == "Diet") {
pricesDropdownBtn.textContent = pricesDropdown0.textContent;
priceIndex = 0;
}
dietDropdownBtn.textContent = dietDropdownVegan.textContent;
dietIndex = 2;
updateImages();
});
pricesDropdown0.addEventListener("click", function() {
pricesDropdownBtn.textContent = pricesDropdown0.textContent;
priceIndex = 0;
updateImages();
});
pricesDropdown50.addEventListener("click", function() {
pricesDropdownBtn.textContent = pricesDropdown50.textContent;
priceIndex = 1;
updateImages();
});
pricesDropdown100.addEventListener("click", function() {
pricesDropdownBtn.textContent = pricesDropdown100.textContent;
priceIndex = 2;
updateImages();
});
pricesDropdown150.addEventListener("click", function() {
pricesDropdownBtn.textContent = pricesDropdown150.textContent;
priceIndex = 3;
updateImages();
});
const directories = [
[
[
"./FoodPics/LessThan50/HighProtein/ChickpeaSalad/ChickpeaSaladPic.jpg",
"./FoodPics/LessThan50/HighProtein/QuinoaBowl/quinoa-bowl_01-06-13_1_ca.jpg",
"./FoodPics/LessThan50/HighProtein/ScrambledEggs/ScrambledEggsPic.jpg",
"Chickpea Salad",
"Quinow Bowl",
"Scrambled Eggs",
"./FoodPics/LessThan50/HighProtein/ChickpeaSalad/stats.txt",
"./FoodPics/LessThan50/HighProtein/QuinoaBowl/stats.txt",
"./FoodPics/LessThan50/HighProtein/ScrambledEggs/stats.txt"
],
[
"./FoodPics/LessThan50/LowCarb/BakedSalmon/bakedSalmon.jpg",
"./FoodPics/LessThan50/LowCarb/TunaWraps/Tuna-Avocado-Lettuce-Wraps.jpg",
"./FoodPics/LessThan50/LowCarb/ZucchiniNoodles/ZuccNoodles.jpg",
"Baked Samlon",
"Tuna Wraps",
"Zucchini Noodles",
"./FoodPics/LessThan50/LowCarb/BakedSalmon/stats.txt",
"./FoodPics/LessThan50/LowCarb/TunaWraps/stats.txt",
"./FoodPics/LessThan50/LowCarb/ZucchiniNoodles/stats.txt"
],
[
"./FoodPics/LessThan50/Vegan/BeanBurritoBowl/burritoBowl.jpg",
"./FoodPics/LessThan50/Vegan/TofuScramble/TofuScramble.jpg",
"./FoodPics/LessThan50/Vegan/VegStiryFry/VegStirFry.jpg",
"Burrito Bowl",
"Tofu Scramble",
"Vegetable Stir Fry",
"./FoodPics/LessThan50/Vegan/BeanBurritoBowl/stats.txt",
"./FoodPics/LessThan50/Vegan/TofuScramble/stats.txt",
"./FoodPics/LessThan50/Vegan/VegStiryFry/stats.txt"
],
],
[
[
"./FoodPics/50-100/HighProtein/CheeseAndBerryBowl/Cottage-Cheese-Breakfast-Bowl.jpg",
"./FoodPics/50-100/HighProtein/ChiaPudding/Warm-Chia-Hemp-Seed-Pudding-700x1050.jpg",
"./FoodPics/50-100/HighProtein/EdamameSalad/saladPic.jpg",
"Cheese & Berry Bowl",
"Chia Pudding",
"Edamame Salad",
"./FoodPics/50-100/HighProtein/CheeseAndBerryBowl/stats.txt",
"./FoodPics/50-100/HighProtein/ChiaPudding/stats.txt",
"./FoodPics/50-100/HighProtein/EdamameSalad/stats.txt"
],
[
"./FoodPics/50-100/LowCarb/EggplantTofuCurry/vegan-curry.jpg",
"./FoodPics/50-100/LowCarb/ShrimpBrocStirFry/Shrimp-and-broccoli-skillet-8.jpg",
"./FoodPics/50-100/LowCarb/SpinachMushroomOmelette/Cheesy-Mushroom-Spinach-Omelet-feat.jpg",
"Eggplant Curry",
"Shrimp Stir Fry",
"Spinach & Mushroom Omelette",
"./FoodPics/50-100/LowCarb/EggplantTofuCurry/stats.txt",
"./FoodPics/50-100/LowCarb/ShrimpBrocStirFry/stats.txt",
"./FoodPics/50-100/LowCarb/SpinachMushroomOmelette/stats.txt"
],
[
"./FoodPics/50-100/Vegan/CauliflowerRiceLentilBowl/Grain-Free-Take-on-Mujadara-CURRIED-Cauliflower-Rice-Lentils-and-Shallot-10-ingredients-BIG-flavor-glutenfree-plantbased-mujadara-grainfree-cauliflowerrice-minimalist.jpg",
"./FoodPics/50-100/Vegan/ProteinSmoothie/vegan-strawberry-banana-spinach-smoothie-10-Edit.jpg",
"./FoodPics/50-100/Vegan/VeganCurry/15-Minute-Lentil-Veggie-Curry-1.jpg",
"Cauliflower Rice Lentil Bowl",
"Strawberry Banana Smoothie",
"Lentil Curry",
"./FoodPics/50-100/Vegan/CauliflowerRiceLentilBowl/stats.txt",
"./FoodPics/50-100/Vegan/ProteinSmoothie/stats.txt",
"./FoodPics/50-100/Vegan/VeganCurry/stats.txt"
]
],
[
[
"./FoodPics/100-150/HighProtein/ChickenPotPie/easy-chicken-pot-pie-recipe-1.jpg",
"./FoodPics/100-150/HighProtein/ProteinPancakes/Protein-pancakes-b64bd40.jpg",
"./FoodPics/100-150/HighProtein/TofuStirFry/Spicy-Tofu-Stirfry-LEAD-3-3da17681605c41688be8742e045f71f5.jpg",
"Chicken Pot Pie",
"Protein Pancakes",
"Tofu Stir Fry",
"./FoodPics/100-150/HighProtein/ChickenPotPie/stats.txt",
"./FoodPics/100-150/HighProtein/ProteinPancakes/stats.txt",
"./FoodPics/100-150/HighProtein/TofuStirFry/stats.txt"
],
[
"./FoodPics/100-150/LowCarb/CabbageTacos/6087342-bd8d76c5338045b8b134b3da0cca9eb0.jpg",
"./FoodPics/100-150/LowCarb/CauliflowerFriedRice/cauliflower-shrimp-fried-rice.jpg",
"./FoodPics/100-150/LowCarb/EggSpinachScramble/spinach-and-eggs-featured-2022.jpg",
"Cabbage Tacos",
"Cauliflower Fried Rice",
"Egg-Spinach Scramble",
"./FoodPics/100-150/LowCarb/CabbageTacos/stats.txt",
"./FoodPics/100-150/LowCarb/CauliflowerFriedRice/stats.txt",
"./FoodPics/100-150/LowCarb/EggSpinachScramble/stats.txt"
],
[
"./FoodPics/100-150/Vegan/GrilledMushroomsQuinoa/Vegetable-Stuffed-Mushrooms-SQUARE.jpg",
"./FoodPics/100-150/Vegan/TofuVegetableCurry/one-pan-tofu-coconut-curry4-scaled-720x720.jpg",
"./FoodPics/100-150/Vegan/VeganGreekSalad/Vegan-Greek-Salad-720x720.jpg",
"Grilled Mushrooms",
"Tofu Coconut Curry",
"Greek Salad",
"./FoodPics/100-150/Vegan/GrilledMushroomsQuinoa/stats.txt",
"./FoodPics/100-150/Vegan/TofuVegetableCurry/stats.txt",
"./FoodPics/100-150/Vegan/VeganGreekSalad/stats.txt"
]
],
[
[
"./FoodPics/150+/HighProtein/QuinoaChickpeaBowl/Chickpea-Quinoa-Buddha-Bowl-SQUARE.jpg",
"./FoodPics/150+/HighProtein/SteakSalad/IMG_2094.jpg",
"./FoodPics/150+/HighProtein/TurkeyAvocadoWrap/Turkey-Guacamole-Wraps_EXPS_SDAM18_27746_B12_07_1b.jpg",
"Quinoa Chickpea Bowl",
"Steak Salad",
"Turkey Avocado Wrap",
"./FoodPics/150+/HighProtein/QuinoaChickpeaBowl/stats.txt",
"./FoodPics/150+/HighProtein/SteakSalad/stats.txt",
"./FoodPics/150+/HighProtein/TurkeyAvocadoWrap/stats.txt"
],
[
"./FoodPics/150+/LowCarb/AvocadoTunaBoats/whole30-avocado-tuna-boats-9-1.jpg",
"./FoodPics/150+/LowCarb/BroccoliCheddarStuffedChickenBreast/chicken-sq.jpg",
"./FoodPics/150+/LowCarb/StuffedPepperTurkey/79805-StuffedPeppersWithturkeyAndVegtables-MFS-2x3-0048.jpg",
"Avocado Tuna Boats",
"Stuffed Chicken Breast",
"Stuffed Turkey",
"./FoodPics/150+/LowCarb/AvocadoTunaBoats/stats.txt",
"./FoodPics/150+/LowCarb/BroccoliCheddarStuffedChickenBreast/stats.txt",
"./FoodPics/150+/LowCarb/StuffedPepperTurkey/stats.txt"
],
[
"./FoodPics/150+/Vegan/VeganMediterraneanPlate/DELALLO-EASTER-MEZZE-PLATTER-3-copy.jpg",
"./FoodPics/150+/Vegan/VeganNoriWraps/616f7c9ce5e41786a06054a5_NoriRoll6.jpg",
"./FoodPics/150+/Vegan/VeganRatatouille/Tian-Ratatouille-by-Nutriciously-4.jpg",
"Mediterranean Plate",
"Nori Roll",
"Tian Ratatouille",
"./FoodPics/150+/Vegan/VeganMediterraneanPlate/stats.txt",
"./FoodPics/150+/Vegan/VeganNoriWraps/stats.txt",
"./FoodPics/150+/Vegan/VeganRatatouille/stats.txt"
]
]
];
</script>
</body>
</html>