-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathresult.html
138 lines (114 loc) · 7.07 KB
/
result.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title> Food Maker</title>
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/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">
<!-- Custom styles for Food Maker Website -->
<link href="css/index.css" rel="stylesheet">
<link href="css/sidebar.css" rel="stylesheet">
</head>
<body>
<div id="header"></div>
<div class="container content">
<div class="row ">
<!-- Sidebar -->
<div class="col-sm-3 border-right">
<h4>Ingredients</h4>
<p>Filter what type of ingredient you want to include!</p>
<button type="button" class="btn btn-info filterBtn" data-toggle="collapse" data-target="#demo">
<img class="foodIcon" src="img/milk.png"/>Dairy <img src="img/angle-arrow-down.png" class="right"/>
</button>
<div id="demo" class="collapse">
<span class="check"><input type="checkbox" id="Egg" onclick="checkIngredient(this)">Egg</span>
<span class="check"><input type="checkbox" id="Cheese" onclick="checkIngredient(this)">Cheese</span>
<span class="check"><input type="checkbox" id="Milk" onclick="checkIngredient(this)">Milk</span>
<span class="check"><input type="checkbox" id="Butter" onclick="checkIngredient(this)">Butter</span>
</div>
<button type="button" class="btn btn-success filterBtn" data-toggle="collapse" data-target="#demo1">
<img class="foodIcon" src="img/salad.png"/>Vegetables <img src="img/angle-arrow-down.png"
class="right"/></button>
<div id="demo1" class="collapse">
<span class="check"><input type="checkbox" id="Tomato" onclick="checkIngredient(this)">Tomato</span>
<span class="check"><input type="checkbox" id="Potato" onclick="checkIngredient(this)">Potato</span>
<span class="check"><input type="checkbox" id="Corn" onclick="checkIngredient(this)">Corn</span>
<span class="check"><input type="checkbox" id="Carrot" onclick="checkIngredient(this)">Carrot</span>
<span class="check"><input type="checkbox" id="Lettuce" onclick="checkIngredient(this)">Lettuce</span>
<span class="check"><input type="checkbox" id="Mushroom" onclick="checkIngredient(this)">Mushroom</span>
</div>
<button type="button" class="btn btn-warning filterBtn" data-toggle="collapse" data-target="#demo2">
<img class="foodIcon" src="img/apple.png"/>Fruits <img src="img/angle-arrow-down.png" class="right"/>
</button>
<div id="demo2" class="collapse">
<span class="check"><input type="checkbox" id="Apple" onclick="checkIngredient(this)">Apple</span>
<span class="check"><input type="checkbox" id="Banana" onclick="checkIngredient(this)">Banana</span>
<span class="check"><input type="checkbox" id="Strawberries" onclick="checkIngredient(this)">
Strawberries</span>
<span class="check"><input type="checkbox" id="Grapes" onclick="checkIngredient(this)">Grapes</span>
</div>
<button type="button" class="btn btn-danger filterBtn" data-toggle="collapse" data-target="#demo3">
<img class="foodIcon" src="img/steak.png"/>Meats <img src="img/angle-arrow-down.png" class="right"/>
</button>
<div id="demo3" class="collapse">
<span class="check"><input type="checkbox" id="Pork" onclick="checkIngredient(this)">pork</span>
<span class="check"><input type="checkbox" id="Beef" onclick="checkIngredient(this)">Beef</span>
<span class="check"><input type="checkbox" id="Chicken" onclick="checkIngredient(this)">Chicken</span>
<span class="check"><input type="checkbox" id="Lamb" onclick="checkIngredient(this)">Lamb</span>
</div>
<button type="button" class="btn btn-primary filterBtn" data-toggle="collapse" data-target="#demo4">
<img class="foodIcon" src="img/fish.png"/>Seafood <img src="img/angle-arrow-down.png" class="right"/>
</button>
<div id="demo4" class="collapse">
<span class="check"><input type="checkbox" id="Fish" onclick="checkIngredient(this)">Fish</span>
<span class="check"><input type="checkbox" id="Shrimp" onclick="checkIngredient(this)">Shrimp</span>
</div>
<button type="button" class="btn btn-basic" onclick="clearAll()">
Clear All
</button>
</div>
<div class="col-sm-9 container">
<h2><b>Search Result</b></h2>
<hr>
<!-- real search result is displeyed through loadRecipe.js -->
<div id="searchResult">
</div>
<div id="noResultDisplay">
<!--images reference: https://goo.gl/images/zf2QqM-->
<img class=" mx-auto d-block img-fluid" src="img/noresult.png">
<div class="mt-3" >
<h3 class="text-center">Sorry, we did not have any recipes for you search.</h3>
<div>
<p class= "list-heading">Suggestions:</p>
<ul>
<li>Make Sure that all words are spelled correctly.</li>
<li>Try Different Keywords.</li>
<li> <b>Or <a href="createRecipe.html"><span class="badge badge-success">Create </span></a> this recipe by yourself.</b></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<!--Footer-->
<div id="footer"></div>
</div>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"
integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous">
</script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"
integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous">
</script>
<script type="text/javascript" src="js/loadHTML.js"></script>
<script type="text/javascript" src="js/loadRecipe.js"></script>
</body>
</html>