-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
357 lines (349 loc) · 20 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Chefify</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-modal/0.9.1/jquery.modal.min.css" />
<link
rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.8.1/css/all.css"
integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="./Assets/style.css" />
</head>
<body>
<div class="flex-container" id="settings-modal">
<div class=settings-header>
<h3 class=header-text><span>Profile Settings</span></h3>
<span class="close-settings">×</span>
</div>
<div class="settings-body">
<div class="settings-card">
<div class="intolerances">
<p class="settings-card-title"><b>Dietary Intolerances</b></p>
<div class="intolerance">
<input type="checkbox" name="Dairy" id="dairy">
<span class="checkmark"></span>
<label for="dairy">Dairy</label>
</div>
<div class="intolerance">
<input type="checkbox" name="Egg" id="egg">
<span class="checkmark"></span>
<label for="egg">Egg</label>
</div>
<div class="intolerance">
<input type="checkbox" name="Gluten" id="gluten">
<span class="checkmark"></span>
<label for="gluten">Gluten</label>
</div>
<div class="intolerance">
<input type="checkbox" name="Grain" id="grain">
<span class="checkmark"></span>
<label for="grain">Grain</label>
</div>
<div class="intolerance">
<input type="checkbox" name="Peanut" id="peanut">
<span class="checkmark"></span>
<label for="peanut">Peanut</label>
</div>
<div class="intolerance">
<input type="checkbox" name="Seafood" id="seafood">
<span class="checkmark"></span>
<label for="seafood">Seafood</label>
</div>
<div class="intolerance">
<input type="checkbox" name="Sesame" id="sesame">
<span class="checkmark"></span>
<label for="sesame">Sesame</label>
</div>
<div class="intolerance">
<input type="checkbox" name="Shellfish" id="shellfish">
<span class="checkmark"></span>
<label for="shellfish">Shellfish</label>
</div>
<div class="intolerance">
<input type="checkbox" name="Soy" id="soy">
<span class="checkmark"></span>
<label for="soy">Soy</label>
</div>
<div class="intolerance">
<input type="checkbox" name="Sulfite" id="sulfite">
<span class="checkmark"></span>
<label for="sulfite">Sulfite</label>
</div>
<div class="intolerance">
<input type="checkbox" name="Tree Nut" id="tree-Nut">
<span class="checkmark"></span>
<label for="tree-Nut">Tree Nut</label>
</div>
<div class="intolerance">
<input type="checkbox" name="Wheat" id="wheat">
<span class="checkmark"></span>
<label for="wheat">Wheat</label>
</div>
</div>
</div>
<div class="settings-card">
<div class="restrictions">
<p class="settings-card-title"><b>Dietary Restrictions</b></p>
<div class="restriction">
<input type="checkbox" name="Gluten Free" id="gluten-Free">
<span class="checkmark"></span>
<label for="gluten-Free">Gluten Free</label>
</div>
<div class="restriction">
<input type="checkbox" name="Ketogenic" id="ketogenic">
<span class="checkmark"></span>
<label for="ketogenic">Ketogenic</label>
</div>
<div class="restriction">
<input type="checkbox" name="Vegetarian" id="vegetarian">
<span class="checkmark"></span>
<label for="vegetarian">Vegetarian</label>
</div>
<div class="restriction">
<input type="checkbox" name="Lacto-Vegetarian" id="lacto-Vegetarian">
<span class="checkmark"></span>
<label for="lacto-Vegetarian">Lacto-Vegetarian</label>
</div>
<div class="restriction">
<input type="checkbox" name="Ovo-Vegetarian" id="ovo-Vegetarian">
<span class="checkmark"></span>
<label for="ovo-Vegetarian">Ovo-Vegetarian</label>
</div>
<div class="restriction">
<input type="checkbox" name="Vegan" id="vegan">
<span class="checkmark"></span>
<label for="vegan">Vegan</label>
</div>
<div class="restriction">
<input type="checkbox" name="Pescatarian" id="pescatarian">
<span class="checkmark"></span>
<label for="pescatarian">Pescatarian</label>
</div>
<div class="restriction">
<input type="checkbox" name="Paleo" id="paleo">
<span class="checkmark"></span>
<label for="paleo">Paleo</label>
</div>
<div class="restriction">
<input type="checkbox" name="Primal" id="primal">
<span class="checkmark"></span>
<label for="primal">Primal</label>
</div>
<div class="restriction">
<input type="checkbox" name="Whole30" id="whole-30">
<span class="checkmark"></span>
<label for="whole-30">Whole30</label>
</div>
</div>
</div>
</div>
<div class="settings-footer">
<button type="submit" class="settings-save-button"><span><i class="fa fa-save"></i> Save</span></button>
</div>
</div>
<header>
<div class="search">
<div class="bc-dropdown">
<button class="bc-dropBtn"><span>Browse Categories <i class="fa fa-angle-right"></span></i></button>
<div class="bc-dropdown-content">
<div class="browse-body">
<div class="categories-card">
<h3 class="cat-card-title">Meal-Types</h3>
<div class="category" id="meal-type">
<li class="meal-types" id="breakfast">Breakfast</li>
<li class="meal-types" id="lunch">Lunch</li>
<li class="meal-types" id="dinner">Dinner</li>
<li class="meal-types" id="snack">Snack</li>
<li class="meal-types" id="appetizer">Appetizer</li>
<li class="meal-types" id="dessert">Dessert</li>
<li class="meal-types" id="side">Side Dish</li>
<li class="meal-types" id="salad">Salad</li>
</div>
</div>
<div class="categories-card">
<h3 class="cat-card-title">Diets</h3>
<div class="category" id="diets">
<li class="diet" id="gluten-free-diet">Gluten Free</li>
<li class="diet" id="ketogenic-diet">Ketogenic</li>
<li class="diet" id="vegetarian-diet">Vegetarian</li>
<li class="diet" id="lacto-vegetarian-diet">Lacto-Vegetarian</li>
<li class="diet" id="ovo-vegetarian-diet">Ovo-Vegetarian</li>
<li class="diet" id="vegan-diet">Vegan</li>
<li class="diet" id="pescetarian-diet">Pescetarian</li>
<li class="diet" id="paleo-diet">Paleo</li>
<li class="diet" id="primal-diet">Primal</li>
<li class="diet" id="whole30-diet"><span>Whole30</span></li>
</div>
</div>
<div class="categories-card">
<h3 class="cat-card-title">Cuisines</h3>
<div class="category" id="cuisines">
<li class="cuisine" id="african">African</li>
<li class="cuisine" id="american">American</li>
<!-- <li class="cuisine" id="british">British</li> -->
<li class="cuisine" id="cajun">Cajun</li>
<!-- <li class="cuisine" id="caribbean">Caribbean</li> -->
<li class="cuisine" id="chinese">Chinese</li>
<!-- <li class="cuisine" id="eastearn-european">Eastern European</li> -->
<!-- <li class="cuisine" id="european">European</li> -->
<li class="cuisine" id="french">French</li>
<li class="cuisine" id="german">German</li>
<li class="cuisine" id="greek">Greek</li>
<li class="cuisine" id="indian">Indian</li>
<!-- <li class="cuisine" id="irish">Irish</li> -->
<li class="cuisine" id="italian">Italian</li>
<li class="cuisine" id="japanese">Japanese</li>
<!-- <li class="cuisine" id="jewish">Jewish</li> -->
<!-- <li class="cuisine" id="korean">Korean</li> -->
<!-- <li class="cuisine" id="latin-american">Latin American</li> -->
<!-- <li class="cuisine" id="mediterranean">Mediterranean</li> -->
<li class="cuisine" id="mexican">Mexican</li>
<li class="cuisine" id="middle-eastern">Middle Eastern</li>
<!-- <li class="cuisine" id="nordic">Nordic</li> -->
<!-- <li class="cuisine" id="southern">Southern</li> -->
<!-- <li class="cuisine" id="spanish">Spanish</li> -->
<li class="cuisine" id="thai">Thai</li>
<li class="cuisine" id="vietnamese">Vietnamese</li>
</div>
</div>
<div class="categories-card">
<h3 class="cat-card-title">Others</h3>
<div class="category" id="others">
<div class="other" id="time">Under 30 Minutes</div>
<div class="other" id="carbs">Low Carbs</div>
<div class="other" id="fat">Low Fat</div>
<div class="other" id="calorie">Low Calorie</div>
<div class="other" id="cholesterol">Low Cholesterol</div>
<div class="other" id="sugar">Low Sugar</div>
<div class="other" id="protein">High Protein</div>
<div class="other" id="calcium">High Calcium</div>
<div class="other" id="fiber">High Fiber</div>
</div>
</div>
</div>
</div>
</div>
<div class="search-recipes">
<input type="text" id="search-recipe" name="search-recipe" placeholder="Find Recipe">
<button type="submit" class="search-recipe-button"><i class="fa fa-search"></i></button>
</div>
<div class="search-ingredients">
<button type="submit" class="search-ingredient">Search By Ingredient</button>
</div>
</div>
<nav class="navbar">
<div class="nav-left-content navbar-brand"><i class="fas fa-chevron-circle-left back-btn"> </i>Chefify</div>
<div class="nav-right-content">
<!-- <div class="nav-search">
<input id="searchText" name="searchText" type="text" placeholder="Quick search" class="recipe-search">
<i class="fas fa-search search-icon"></i>
</div> -->
<div class="search-parameters">
<div class="search-filter-dropdown">
<button class="sf-dropdown-button"><i class="fas fa-sort"></i></button>
<div class="sf-dropdown-content">
<!-- <li class="sf-filter" id="price">Price</li> -->
<li class="sf-filter" id="rating">Rating</li>
<!-- <li class="sf-filter" id="time">Time</li> -->
</div>
</div>
</div>
<i id="favorites-icon" class="fas fa-heart nav-favorite"></i>
<div class="dropdown"><i class="fas fa-bars"></i>
<div class="dropdown-content">
<ol>
<li id="shopping-btn" class="dropdown-item">Shopping List</li>
<li id="favorites-btn" class="dropdown-item">Favorites</li>
<li id="user_settings" class="dropdown-item">Settings</li>
<li id="contact-btn" class="dropdown-item">Contact</li>
</ol>
</div>
</div>
</nav>
<div class="sec-search-ingredients">
<div class="sec-search">
<button type="submit" id="exit-ingredient-search"><i class="fa fa-times"></i></button>
</div>
<div class="sec-search" id="sec-search-keywords">
<input type="text" id="sec-search-keyword" name="sec-search-keyword" placeholder="Keywords">
</div>
<div class="sec-search" id="sec-search-add-ingredients">
<input type="text" id="sec-search-add-ingredient" name="sec-search-add-ingredient" placeholder="Add Ingredient">
<button type="button" class="add-ingredient-button"><i class="fa fa-plus"></i></button>
<div class="added-ingredients"></div>
</div>
<div class="sec-search" id="sec-search-exclude-ingredients">
<input type="text" id="sec-search-exclude-ingredient" name="sec-search-exclude-ingredient" placeholder="Exlude Ingredient">
<button type="submit" class="exclude-ingredient-button"><i class="fa fa-plus"></i></button>
<div class="excluded-ingredients"></div>
</div>
<button type="submit" class="submit-ingredient-search">GO</button>
</div>
<!-- Displays what the user inputted for their search parameters -->
</header>
<!-- <div class="category" id="exclude-ingredients">
<li class="exclude-ingredient" id="exlude-dairy">Dairy</li>
<li class="exclude-ingredient" id="exlude-egg">Egg</li>
<li class="exclude-ingredient" id="exlude-gluten">Gluten</li>
<li class="exclude-ingredient" id="exlude-grain">Grain</li>
<li class="exclude-ingredient" id="exlude-peanut">Peanut</li>
<li class="exclude-ingredient" id="exlude-seafood">Seafood</li>
<li class="exclude-ingredient" id="exlude-sesame">Sesame</li>
<li class="exclude-ingredient" id="exlude-shellfish">Shellfish</li>
<li class="exclude-ingredient" id="exlude-soy">Soy</li>
<li class="exclude-ingredient" id="exlude-sulfite">Sulfite</li>
<li class="exclude-ingredient" id="exlude-treenut">Tree Nut</li>
<li class="exclude-ingredient" id="exlude-wheat">Wheat</li>
</div> -->
<section id="recipe_container">
</section>
<!-- Overlay modal to provide a notification to the user -->
<div class="modal-container">
<div class="modal">
<p id="modal-message">Message Content</p>
</div>
</div>
<!-- Overlay modal to for nutrition -->
<div class="nutrition-modal-container">
<div class="nutrition-modal">
<div class="close-btn"><i class="fas fa-times-circle close"></i></div>
<div class="nutrition-title">Nutrition Facts:</div>
<div class="nutrition-content">
<table class="nutrition-table">
<tr><td>Item Name</td> <td class="table-desc" id="item_name" colspan="2"></td> </tr>
<tr><td>Brand Name</td> <td class="table-desc" id="brand_name" colspan="2"></td> </tr>
<tr><td>Calories</td> <td class="table-text" id="nf_calories"></td> <td>kcal</td></tr>
<tr><td>Calories from Fat</td> <td class="table-text" id="nf_calories_from_fat"></td> <td>kcal</td></tr>
<tr><td>Total Fat</td> <td class="table-text" id="nf_total_fat"></td> <td>g</td></tr>
<tr><td>Saturated Fat</td> <td class="table-text" id="nf_saturated_fat"></td> <td>g</td></tr>
<tr><td>Monounsaturated Fat</td> <td class="table-text" id="nf_monounsaturated_fat"></td> <td>g</td></tr>
<tr><td>Polyunsaturated Fat</td> <td class="table-text" id="nf_polyunsaturated_fat"></td> <td>g</td></tr>
<tr><td>Trans Fatty Acid</td> <td class="table-text" id="nf_trans_fatty_acid"></td> <td>g</td></tr>
<tr><td>Cholesterol</td> <td class="table-text" id="nf_cholesterol"></td> <td>mg</td></tr>
<tr><td>Sodium</td> <td class="table-text" id="nf_sodium"></td> <td>mg</td></tr>
<tr><td>Total Carbohydrate</td> <td class="table-text" id="nf_total_carbohydrate"></td> <td><g/td></tr>
<tr><td>Dietary Fiber</td> <td class="table-text" id="nf_dietary_fiber"></td> <td>g</td></tr>
<tr><td>Sugars</td> <td class="table-text" id="nf_sugars"></td> <td>g</td></tr>
<tr><td>Protein</td> <td class="table-text" id="nf_protein"></td> <td>g</td></tr>
<tr><td>Vitamin A</td> <td class="table-text" id="nf_vitamin_a_dv"></td> <td>% DV</td></tr>
<tr><td>Vitamin C</td> <td class="table-text" id="nf_vitamin_c_dv"></td> <td>% DV</td></tr>
<tr><td>Calcium</td> <td class="table-text" id="nf_calcium_dv"></td> <td>% DV</td></tr>
<tr><td>Iron</td> <td class="table-text" id="nf_iron_dv"></td> <td>% DV</td></tr>
<tr><td>Serving size</td> <td class="table-text" id="nf_serving_size_qty"></td> <td id="nf_serving_size_unit"></td></tr>
<tr><td>Serving weight</td> <td class="table-text" id="nf_serving_weight_grams"></td> <td>g</td></tr>
</table>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-modal/0.9.1/jquery.modal.min.js"></script>
<script src="./Assets/api.js"></script>
<script src="./Assets/db_api.js"></script>
<script src="./Assets/script.js"></script>
</body>
</html>