-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
184 lines (160 loc) · 7.97 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.14.0/css/all.css" integrity="sha384-HzLeBuhoNPvSl5KYnjx0BT+WB0QEEqLprO+NBkkk5gbc67FTaL7XIGa2w1L0Xbgc" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css2?family=Lobster&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.0.0/animate.min.css">
<link rel="stylesheet" href="style.css">
<title>Drink and Food Recipe App</title>
</head>
<body>
<header class="header text-center">
<h1 class="animate__animated animate__bounceInDown">What Are We Making Today?</h1>
</header>
<!-- Button to switch to Drink HTML -->
<div class="text-center"><a href="drinksindex.html"><button type="submit" class="animate__animated animate__bounceInLeft animate__delay-1s btn btn-meal btn-primary" id="switch-to-drink">Care for a cocktail?</button></a></div>
<div class="container text-center">
<div class="row">
<div class="col-sm-12">
<h2>Make a meal!</h2>
<form>
<div class="form-group">
<label for="ingredient"><h4>Choose your main ingredient:</h4></label>
<div class="cell small-12 medium-3 alt-font">
<select id="ingredient" name="protein">
<option value="Chicken">Chicken</option>
<option value="Beef">Beef</option>
<option value="Salmon">Salmon</option>
<option value="Pork">Pork</option>
<option value="Lamb">Lamb</option>
</select>
</div>
</div>
<button type="submit" class="animate__animated animate__bounceInUp animate__delay-2s btn btn-primary" id="search-btn">What are we eating?</button>
</form>
</div>
</div>
<div class="row">
<div class="col-sm-12 d-none" id="results">
<h4><b><i>Results:</i></b></h4>
<!-- Meal Button Modals that are generated on search -->
<!-- Modal 1 button -->
<div><row><button type="button" id="modal-btn-1" class="btn btn-primary d-none" data-toggle="modal" data-target="#staticBackdrop1"><span id="modal-btn-1-title"></span></button></row></div>
<!-- Modal 2 Button -->
<div><row><button type="button" id="modal-btn-2" class="btn btn-primary d-none" data-toggle="modal" data-target="#staticBackdrop2"><span id="modal-btn-2-title"></span></button></row></div>
<!-- Modal 3 Button -->
<div><row><button type="button" id="modal-btn-3" class="btn btn-primary d-none" data-toggle="modal" data-target="#staticBackdrop3"><span id="modal-btn-3-title"></span></button></row></div>
<!-- Modal 4 Button -->
<div><row><button type="button" id="modal-btn-4" class="btn btn-primary d-none" data-toggle="modal" data-target="#staticBackdrop4"><span id="modal-btn-4-title"></span></button></row></div>
</div>
</div>
</div>
<!-- Modal 1 (different names for each one;can't have same ID if you want different results), give different ID to each Modal and put ID in array and select each one, or give numbers-->
<div class="modal fade" id="staticBackdrop1" data-backdrop="static" data-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<span></span><h5 class="modal-title" id="recipe-name1"></h5></span>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<img id="food-image1" style= "max-width: 400px;">
<h5><b><i>Ingredients:</i></b></h5>
<div id="ingredientsDiv1"></div>
<br>
<h5><b><i>Directions:</i></b></h5>
<p><span id="directions1"></span></p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Modal 2 -->
<div class="modal fade" id="staticBackdrop2" data-backdrop="static" data-keyboard="false" tabindex="-1"
aria-labelledby="staticBackdropLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="recipe-name2"></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<img id="food-image2" style= "max-width: 400px;">
<h5><b><i>Ingredients:</i></b></h5>
<div id="ingredientsDiv2"></div>
<br>
<h5><b><i>Directions:</i></b></h5>
<p><span id="directions2"></span></p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Modal 3 -->
<div class="modal fade" id="staticBackdrop3" data-backdrop="static" data-keyboard="false" tabindex="-1"
aria-labelledby="staticBackdropLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="recipe-name3"></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<img id="food-image3" style= "max-width: 400px;">
<h5><b><i>Ingredients:</i></b></h5>
<div id="ingredientsDiv3"></div>
<br>
<h5><b><i>Directions:</i></b></h5>
<p><span id="directions3"></span></p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Modal 4 -->
<div class="modal fade" id="staticBackdrop4" data-backdrop="static" data-keyboard="false" tabindex="-1"
aria-labelledby="staticBackdropLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="recipe-name4"></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<img id="food-image4" style= "max-width: 400px;">
<h5><b><i>Ingredients:</i></b></h5>
<div id="ingredientsDiv4"></div>
<br>
<h5><b><i>Directions:</i></b></h5>
<p><span id="directions4"></span></p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js"></script>
<script src=script2.js></script>
</body>
</html>