-
Notifications
You must be signed in to change notification settings - Fork 2
/
recipecard.html
279 lines (253 loc) · 8.69 KB
/
recipecard.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
<!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" />
<title>Voice to Recipe🎤</title>
<!-- import the webpage's stylesheet -->
<link rel="stylesheet" href="./assets/css/styles.css" />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap@4.1.3/dist/css/bootstrap.min.css"
integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<!-- Body -->
<body class="container">
<!--NavBar-->
<nav class="navbar navbar-expand-lg navbar-light bg-light container">
<img src="./assets/img/logo2.JPG" class="logo">
<!-- <a class="navbar-brand" href="#">Voice to Recipe</a> -->
<button
class="navbar-toggler"
type="button"
data-toggle="collapse"
data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse container" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="./index.html"
>Home <span class="sr-only">(current)</span></a
>
</li>
<li class="nav-item active">
<a class="nav-link" href="#body"
>Previous Searches <span class="sr-only">(current)</span></a
>
</li>
<li class="nav-item active"></li>
<li class="nav-item dropdown">
<a
class="nav-link dropdown-toggle"
href="#"
id="navbarDropdown"
role="button"
data-toggle="dropdown"
aria-haspopup="true"
aria-expanded="false"
>
Explore More
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a
class="dropdown-item"
href="https://www.amazon.ca/dp/B0CKV2D99K?psc=1&ref=ppx_yo2ov_dt_b_product_details"
target="_blank"
>Buy Recipe Notebook</a
>
<a class="dropdown-item" href="#">Another action</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Something else here</a>
</div>
</li>
</ul>
</div>
</nav>
<div>
<!-- Modal -->
<div
class="modal fade"
id="exampleModalCenter"
tabindex="-1"
role="dialog"
aria-labelledby="exampleModalCenterTitle"
aria-hidden="true"
>
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalCenterTitle">
Modal title
</h5>
<button
type="button"
class="close"
data-dismiss="modal"
aria-label="Close"
>
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">Add here the ingredients</div>
<div class="modal-footer">
<button
type="button"
class="btn btn-secondary"
data-dismiss="modal"
>
Close
</button>
<button type="button" class="btn btn-primary">See more</button>
</div>
</div>
</div>
</div>
<!-- Adding the boxes for Recipe
moved the previous 10 searches to the bottom of the page -->
<div class="row">
<div class="col">
<div class="recipe-details-box rounded">
<h2 class="recipe-title" id="title">Name of Recipe</h2>
<p class="recipe-details">Servings:</p>
<p id="servings">123</p>
<p class="recipe-details">Ingredients:</p>
<p id="ingredients">
<li>
<ul>
123
</ul>
</li>
</p>
<p class="recipe-details" contenteditable="recipe-details">Instructions:</p>
<p id="instruction">
Recipe detailsRecipe detailsRecipe detailsRecipe detailsRecipe
detailsRecipe detailsRecipe detailsRecipe detailsRecipe
detailsRecipe detailsRecipe detailsRecipe detailsRecipe
detailsRecipe detailsRecipe detailsRecipe detailsRecipe
detailsRecipe detailsRecipe detailsRecipe detailsRecipe details
</p>
</div>
</div>
</div>
<!--Still working on formatting this, add border-->
<!--Search Recipe Results-->
<div class="previous-searches" id="previous-searches">
<h2>Previous Searches:</h2>
<!-- Button trigger modal -->
<button
type="button"
class="btn btn-primary previous-searches-btn recipe-1"
data-toggle="modal"
data-target="#exampleModalCenter"
>
Launch demo modal
</button>
<button
type="button"
class="btn btn-primary previous-searches-btn recipe-2"
data-toggle="modal"
data-target="#exampleModalCenter"
>
Launch demo modal
</button>
<button
type="button"
class="btn btn-primary"
data-toggle="modal"
data-target="#exampleModalCenter"
>
Launch demo modal
</button>
<button
type="button"
class="btn btn-primary previous-searches-btn recipe-3"
data-toggle="modal"
data-target="#exampleModalCenter"
>
Launch demo modal
</button>
<button
type="button"
class="btn btn-primary previous-searches-btn recipe-4"
data-toggle="modal"
data-target="#exampleModalCenter"
>
Launch demo modal
</button>
</div>
<!--Modify the modal here-->
<!-- Modal -->
<div
class="modal fade"
id="exampleModalCenter"
tabindex="-1"
role="dialog"
aria-labelledby="exampleModalCenterTitle"
aria-hidden="true"
>
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalCenterTitle">
Modal title
</h5>
<button
type="button"
class="close"
data-dismiss="modal"
aria-label="Close"
>
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">Add here the ingredients</div>
<div class="modal-footer">
<button
type="button"
class="btn btn-secondary"
data-dismiss="modal"
>
Close
</button>
<button type="button" class="btn btn-primary">See more</button>
</div>
</div>
</div>
</div>
<!--From here on is the Wit original code-->
<!-- removed the original record, verify and send to wit -->
<!-- Recipe search this will be a separate JS file to perform task -->
<!-- Display modal with Relevant Recipe -->
<!-- Display detailed information for the recipe -->
<!-- call jQuery script before it can be used in script assets: ./assets/script/... -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script
src="https://cdn.jsdelivr.net/npm/popper.js@1.14.3/dist/umd/popper.min.js"
integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@4.1.3/dist/js/bootstrap.min.js"
integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy"
crossorigin="anonymous"
></script>
<script src="./assets/script/listen.js"></script>
<script src="./assets/script/understand.js"></script>
<script src="./assets/script/search.js"></script>
<script src="./assets/script/relevantrecipe.js"></script>
<script src="./assets/script/retrieverecipe.js"></script>
<!-- <footer class="footer">
<span class="text-muted">Made with ❤️ by Samantha, Maika & Arnaldo</span>
<p>© 2023 Voice Recipe Search System.</p>
</footer> -->
</body>
</html>