-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.html
404 lines (367 loc) · 18.6 KB
/
home.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
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
404
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1 shrink-to-fit=no">
<title>Recipino</title>
<!-- Required meta tags -->
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" integrity="sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4" crossorigin="anonymous">
<style>
body {
margin: 0 auto;
text-align: center;
height: 100%;
width: 100%;
background-image: url('background-2.jpg');
}
/* div {*/
/*margin: 0 auto;*/
/*display: inline;*/
/*} */
form {
margin: 0 auto;
}
/* .nav-section {
height: 100%;
} */
#flex-container {
display: flex;
/* height: 100%; */
/* background-color: black; */
/* background-color: FloralWhite; */
/* flex-grow: 6; */
}
.option-labels {
display: inline-block;
text-align: center;
/* width: 25%; */
/* height: 80vh; */
}
.card:hover {
/* background-color: azure; */
border-color: green;
}
a {
/* position: absolute; */
/* top: 0; left: 0; */
/* height: 100%; width: 100%; */
}
a:link {
color: black;
text-decoration: none;
} /* unvisited link */
a:visited {color: black;} /* visited link */
a:hover {color: black;} /* mouse over link */
a:active {color: black;} /* selected link */
#url-label {
/* width: 15%; */
}
#main-nav {
position: fixed;
width: 100%;
display: block;
top: 0;
/* nav will be in front of all content */
z-index: 9;
}
.nav-section {
width: 75%;
margin: auto;
/* float: center; */
/* text-align: center; */
}
h1 {
color: BurlyWood;
/* font-weight: bold; */
}
#user-recipes {
width: 100%;
display: none;
}
.card-text {
text-align: left;
}
/* #preview { */
/* visibility: hidden; */
/* } */
</style>
<link href="/docs/4.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<!-- Documentation extras -->
<link href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" rel="stylesheet">
<link href="/docs/4.0/assets/css/docs.min.css" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script defer src="https://use.fontawesome.com/releases/v5.0.10/js/all.js" integrity="sha384-slN8GvtUJGnv6ca26v8EzVaR9DC58QEwsIk9q1QXdCU8Yu8ck/tL/5szYlBbqmS+" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.10/css/all.css" integrity="sha384-+d0P83n9kaQMCwj8F4RJB66tzIwOKmrdb46+porD/OvrJ+37WqIM7UoBtwHO6Nlg" crossorigin="anonymous">
</head>
<body data-spy="scroll" data-target="#main-nav" data-offset="10" onload="window.scrollTo(0,0)">
<!-- Scrollspy Nav -->
<nav id="main-nav" class="navbar navbar-light bg-light">
<!-- <a class="navbar-brand" href="#">Navbar</a> -->
<ul class="nav nav-pills">
<a class="navbar-brand" href="/home.html">Recipino</a>
<li class="nav-item" id="recipe-type-section">
<a class="nav-link active" href="#options">Step 1: Recipe Options</a>
</li>
<li class="nav-item" id="recipe-input-section">
<a class="nav-link" href="#input">Step 2: Recipe Input</a>
</li>
<!-- <li class="nav-item" id="recipe-preview-section">
<a class="nav-link" href="#preview-edit">3: Recipe Preview</a>
</li> -->
<li class="nav-item" id="profile">
<a class="nav-link" href="/profile.php">Profile</a>
</li>
<li class="nav-item" id="sign-out">
<a class="nav-link" href="#logout">Logout</a>
</li>
</ul>
</nav>
<div class="nav-section" id="options">
<br><br><br>
<h1><b>Select a Recipe Input Method</b></h1>
<div class="card-deck">
<div class="card" id="url-label">
<a href="#input" />
<img class="card-img-top" src="./Logos.png" alt="FoodNetwork, Epicurious, AllRecipes, Chowhound, and Genius Kitchen">
<div class="card-body">
<h5 class="card-title">Got a URL?</h5>
<p class="card-text">Found a recipe online? Just click here, give us the URL, and we'll take it from there.
</p>
<p class="card-text"><small class="text-muted">We support your favorite recipe websites like FoodNetwork, Epicurious,
AllRecipes, and more! For a full list of websites that we support,
click <a href="/support"><b><i>here</i></b>.</small></p></a>
<!-- <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br> -->
</div>
</div>
<div class="card" id="text-label">
<a href="#input"/>
<img class="card-img-top" src="./Lemon Drops.jpg" alt="Card image cap">
<div class="card-body">
<h5 class="card-title">Saved Recipes</h5>
<p class="card-text">Click here to select one of your favorite recipes. </p>
<!-- <p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p> -->
<!-- <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br> -->
</div>
</div>
</div>
</div>
<div class="nav-section" id="input">
<br><br><br>
<h1><b>Select a Recipe</b></h1>
<!-- url input -->
<div id="url-input-form" style="margin: 0 auto; width:100%;">
<form style="margin: 0 auto; width:100%;">
<div class="form-group" style="width: 50%; margin: 0 auto;">
<label for="recipe-url"><b>URL<b></label>
<a style="width: 50%;">
<input type="text" class="form-control" oninput="recipeParse();" id="recipe-url" placeholder="https://www.foodnetwork.com/recipes/food-network-kitchen/greek-easter-bread-recipe-2042563">
</input>
</a>
</div>
<a>
<div class="form-group col-md-4" style="margin: 0 auto; width: 60%;">
<label for="inputState">Demo URLs</label>
<select id="inputState" oninput="matchURL();recipeParse();" class="form-control">
<!-- <option selected>Choose a URL</option> -->
<option selected> Demos </option>
<option> http://www.geniuskitchen.com/recipe/kosher-perfect-matzo-balls-94412 </option>
<option> https://www.epicurious.com/recipes/food/views/classic-omelette-15068 </option>
<option> https://www.chowhound.com/recipes/chinese-garlic-eggplant-32058 </option>
<option> https://www.allrecipes.com/recipe/255744/silpancho-from-cochabamba-bolivia/ </option>
<option> https://www.foodnetwork.com/recipes/food-network-kitchen/cadbury-deviled-eggs-5119490 </option>
</select>
</div>
</a>
<!-- <div class="form-row"> -->
<!-- <div class="form-group" style="width: 50%; margin: 0 auto;"> -->
<!-- <br><br><br><br><br><br><br><br -->
<!-- <br>
<label for="recipe-url"><b>URL<b></label>
<a>
<input type="text" class="form-control" oninput="recipeParse();" id="recipe-url" placeholder="https://www.foodnetwork.com/recipes/food-network-kitchen/greek-easter-bread-recipe-2042563">
</input>
</a> -->
<!-- <br> -->
<!-- <a class="btn btn-primary" href="#preview-edit" onclick="recipeParse();" role="button">Next</a> -->
<!-- <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br> -->
<!-- </div> -->
<!-- </div> -->
</form>
</div>
<!-- text input -->
<div id="saved-recipes" style="margin: 0 auto; width: 100%; z-index: 10;">
<!-- <form style="margin: 0 auto; width: 100%;" > -->
<!-- <div class="form-group" id="list-tab" role="tablist" style="margin: 0 auto; width:100%">
<br><br> -->
<!-- <br><br><br><br><br><br><br><br> -->
<!-- <label for="inputState">Choose a Recipe</label> -->
<!-- <a> -->
<!-- <select id="list-tab" class="form-control" onchange="location = this.value;" role="tablist" style="width: 50%; margin: 0 auto;">
<option value="#list-custom" role="tab" selected>Chocolate Chip Cookies</option>
<option value="#list-one" role="tab">Custom Recipe #1</option>
<option>Custom Recipe #2</option>
<option>Custom Recipe #3</option>
<option>Custom Recipe #4</option>
<option>Custom Recipe #5</option>
</select> -->
<!-- </a> -->
<!-- </div> -->
<!-- <div class="row">
<div class="col-8" style="max-width: 75%">
<div class="tab-content" id="nav-tabContent">
<div class="tab-pane fade show active" id="list-custom" role="tabpanel" aria-labelledby="default-recipe">
<div class="form-row">
<div class="form-group col-md-6">
<label for="recipe-ing-0"><b>Ingredients</b></label>
<textarea class="form-control ingredients" id="recipe-ing-1" rows="9"></textarea>
</div>
<div class="form-group col-md-6">
<label for="recipe-steps-0"><b>Steps</b></label>
<textarea class="form-control steps" id="recipe-steps-1" rows="9"></textarea>
</div>
</div>
</div>
<div class="tab-pane fade" id="list-one" role="tabpanel" aria-labelledby="custom-recipe-1">
<div class="form-row">
<div class="form-group col-md-6">
<label for="recipe-ing-1"><b>Ingredients</b></label>
<textarea class="form-control ingredients" id="recipe-ing-2" rows="9"></textarea>
</div>
<div class="form-group col-md-6">
<label for="recipe-steps-1"><b>Steps</b></label>
<textarea class="form-control steps" id="recipe-steps-2" rows="9"></textarea>
</div>
</div>
</div>
<div class="tab-pane fade" id="list-two" role="tabpanel" aria-labelledby="custom-recipe-2">
<div class="form-row">
<div class="form-group col-md-6">
<label for="recipe-ing-2"><b>Ingredients</b></label>
<textarea class="form-control ingredients" id="recipe-ing-3" rows="9"></textarea>
</div>
<div class="form-group col-md-6">
<label for="recipe-steps-2"><b>Steps</b></label>
<textarea class="form-control steps" id="recipe-steps-3" rows="9"></textarea>
</div>
</div>
</div>
<div class="tab-pane fade" id="list-three" role="tabpanel" aria-labelledby="custom-recipe-3">
<div class="form-row">
<div class="form-group col-md-6">
<label for="recipe-ing-3"><b>Ingredients</b></label>
<textarea class="form-control ingredients" id="recipe-ing-4" rows="9"></textarea>
</div>
<div class="form-group col-md-6">
<label for="recipe-steps-3"><b>Steps</b></label>
<textarea class="form-control steps" id="recipe-steps-4" rows="9"></textarea>
</div>
</div>
</div>
<div class="tab-pane fade" id="list-four" role="tabpanel" aria-labelledby="custom-recipe-4">
<div class="form-row">
<div class="form-group col-md-6">
<label for="recipe-ing-4"><b>Ingredients</b></label>
<textarea class="form-control ingredients" id="recipe-ing-5" rows="9"></textarea>
</div>
<div class="form-group col-md-6">
<label for="recipe-steps-4"><b>Steps</b></label>
<textarea class="form-control steps" id="recipe-steps-5" rows="9"></textarea>
</div>
</div>
</div>
<div class="tab-pane fade" id="list-five" role="tabpanel" aria-labelledby="custom-recipe-5">
<div class="form-row">
<div class="form-group col-md-6">
<label for="recipe-ing-5"><b>Ingredients</b></label>
<textarea class="form-control ingredients" id="recipe-ing-6" rows="9"></textarea>
</div>
<div class="form-group col-md-6">
<label for="recipe-steps-5"><b>Steps</b></label>
<textarea class="form-control steps" id="recipe-steps-6" rows="9"></textarea>
</div>
</div>
</div>
</div>
</div>
</div> -->
<!-- <br> -->
<!-- <a class="btn btn-primary" href="#preview-edit" role="button">Next</a> -->
<!-- </form> -->
</div>
<!-- <br><br><br><br><br><br><br><br><br><br> -->
<!-- </div> -->
<!-- <div class="nav-section" id="preview-edit">
<br><br><br>
<h1><b>Preview and Edit</b></h1> -->
<a>
<div id="preview" class="bd-example" style="width: 100%; margin: 0 auto;">
<label><b>Preview</b></label>
<br>
<div style="display: flex; width: 60%; margin: 0 auto; justify-content: space-between">
<textarea class="form-control" id="ingredients" rows="12" cols="10" placeholder="Ingredients"></textarea>
<textarea class="form-control" id="steps" rows="12" cols="10" placeholder="Steps"></textarea>
</div>
<!-- <div class="row">
<div class="col-4" style="height: 300px; overflow-y: scroll;">
<div id="list-links" class="list-group">
</div>
</div>
<div class='col-8'>
<div id="list-pages" data-spy="scroll" data-target="#list-links" data-offset="0" class="scrollspy-example" style="text-align: left; background-color: white; height: 300px; overflow-y: scroll;">
</div>
</div>
</div> -->
</div>
<div id="user-recipes" class="bd-example" style="width: 100%; margin: 0 auto;">
<br>
<!-- <label><b>Saved Recipes</b></label> -->
<br>
<!-- <div class="row">
<div class="col-4" style="height: 300px; overflow-y: scroll; background-color: white;">
<div id="list-links" class="list-group">
</div>
</div>
<div class='col-8'>
<textarea id="ingredients" rows="15" cols="30"></textarea>
<textarea id="steps" rows="15" cols="30"></textarea>
</div>
</div> -->
<div class="row">
<div class="col-4" style="height: 400px;" id="list-tab-div" >
<br>
<div class="list-group" id="list-tab" role="tablist">
</div>
</div>
<div class="col-8">
<div class="tab-content" id="nav-tab-content">
</div>
</div>
<br><br><br><br>
</div>
<!-- </div> -->
</a>
<!-- <br><br><br><br><br><br><br><br><br><br><br><br><br> -->
<!-- </div> -->
<!-- <div class="nav-section" id="submit"> -->
<!-- <h4>Save or Send Recipe to Recipino</h4> -->
<!-- <p>...</p> -->
<br>
<br>
</div>
<br><br>
<button type="submit" class="btn btn-primary" id="save-recipe">Save Recipe</button>
<button type="submit" class="btn btn-primary" id="submit-recipe">Send to Recipino!</button>
<br><br><br>
<!-- <br>
<button type="submit" class="btn btn-primary" id="save-recipe">Save Recipe</button>
<button type="submit" class="btn btn-primary" id="submit-recipe">Send to Recipino!</button>
<button type="button" class="btn btn-primary" id="add-url-recipe">Add to Recipes!</button> -->
<!-- <button type="button" class="btn btn-primary" id="url-next">Next</button> -->
<script src="./form.js" />
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js" integrity="sha384-cs/chFZiN24E4KMATLdqdvsezGxaGsi4hLGOzlXwp5UZB1LY//20VyM2taTB4QvJ" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js" integrity="sha384-uefMccjFJAIv6A+rW+L4AHf99KvxDjWSu1z9VI8SKNVmz4sk7buKt/6v9KI65qnm" crossorigin="anonymous"></script>
</div>
</body>
</html>