-
Notifications
You must be signed in to change notification settings - Fork 2
/
search.html
189 lines (166 loc) · 6.02 KB
/
search.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
<!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://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="assets/style.css">
<title>What's for dinner</title>
</head>
<body>
<!-- Header ---------------------------------------------------------------------------------------------------------------------- -->
<header>
<div class="jumbotron">
<h1>What's for dinner?!</h1>
<p>Taking the what's for dinner out of dinner</p>
<div class="switch right">Dark mode:<span class="inner-switch">OFF</span></div>
</div>
<nav>
<div class="nav-wrapper">
<a href="#!" class="brand-logo right">Logo</a>
<a href="#" data-target="mobile-demo" class="sidenav-trigger"><i class="material-icons">menu</i></a>
<ul class="left hide-on-med-and-down">
<li><a href="index.html">Home</a></li>
<li><a href="recipes.html">Saved Recipes</a></li>
<li><a href="search.html">Recipe Search</a></li>
</ul>
</div>
</nav>
<ul class="sidenav" id="mobile-demo">
<li><a href="index.html">Home</a></li>
<li><a href="recipes.html">Saved Recipes</a></li>
<li><a href="search.html">Recipe Search</a></li>
</ul>
</nav>
</header>
<!-- Body ------------------------------------------------------------------------------------------------------------------------ -->
<div class="container content">
<div class="row rowFlex">
<div class="col s12 m5">
<form id="allergiesForm" action="#">
<p>
<h5>Allergies/Intolerances</h5>
</p>
<div class="row">
<div class="col s6">
<p>
<label>
<input type="checkbox" id="dairyBox" />
<span>Dairy</span>
</label>
</p>
<p>
<label>
<input type="checkbox" id="eggBox" />
<span>Eggs</span>
</label>
</p>
<p>
<p>
<label>
<input type="checkbox" id="glutenBox" />
<span>Gluten</span>
</label>
</p>
<p>
<label>
<input type="checkbox" id="peanutBox" />
<span>Peanut</span>
</label>
</p>
</div>
<div class="col s6">
<p>
<label>
<input type="checkbox" id="treeNutBox" />
<span>Tree Nut</span>
</label>
</p>
<p>
<label>
<input type="checkbox" id="seafoodBox" />
<span>Seafood</span>
</label>
</p>
<p>
<label>
<input type="checkbox" id="shellfishBox" />
<span>Shellfish</span>
</label>
</p>
<p>
<label>
<input type="checkbox" id="soyBox" />
<span>Soy</span>
</label>
</p>
</div>
</div>
<form id="searchRecipe">
<div class="input-field">
<input id="recipeSearchInput" type="text" placeholder="Recipe">
</div>
<button id="recipeSearchButton" type="submit" class="btn">Search Recipes</button>
</form>
</form>
</div>
<div id="orFlex" class="col s12 m2">
<p>-- or --</p>
</div>
<div class="col s12 m5">
<form id="addIngredient">
<div class="input-field">
<input id="addIngredientInput" type="text" placeholder="Ingredient">
</div>
<button id="addButton" type="submit" class="btn">Add Ingredient</button>
</form>
<div id="currentIngredients">
<h5>Added Ingredients:</h5>
<ul id="currentIngredientsList"></ul>
</div>
<button id="ingredientSearchButton" type="submit" class="btn">Search Recipes</button>
</div>
</div>
<div>
<h5>Recipe Results:</h5>
</div>
<div id="searchResults">
</div>
</div>
<!-- Footer ---------------------------------------------------------------------------------------------------------------------- -->
<footer class="page-footer">
<div class="container">
<div class="row">
<div class="col l6 s12">
<h5 class="white-text">What's for Dinner!? is brought to you by the Alan Parsons Project.</h5>
<p class="grey-text text-lighten-4">Find recipes by name and allergies, or by ingredients you
already have!
</p>
</div>
<div class="col l4 offset-l2 s12">
<h5 class="white-text">Links</h5>
<ul>
<li><a class="grey-text text-lighten-3" href="#!">Home</a></li>
<li><a class="grey-text text-lighten-3" href="#!">Recipes</a></li>
<li><a class="grey-text text-lighten-3" href="#!">Ingredients</a></li>
</ul>
</div>
</div>
</div>
<div class="footer-copyright">
<div class="container">
© 2020 Copyright Text
<a class="grey-text text-lighten-4 right" href="#!">More Links</a>
</div>
</div>
</footer>
</body>
<script src="https://code.jquery.com/jquery-3.5.1.js" integrity="sha256-QWo7LDvxbWT2tbbQ97B53yJnYU3WhH/C8ycbRAkjPDc="
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js"></script>
<script src="assets/scripts/mootools.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<script src="assets/scripts/search.js"></script>
</body>
</html>