-
Notifications
You must be signed in to change notification settings - Fork 1
/
allrecipes.html
89 lines (79 loc) · 3.66 KB
/
allrecipes.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
<!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.0">
<meta http-equiv="cache-control" content="private">
<title>Recipes</title>
<link rel="stylesheet" href="./style.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<script src=" ./paginated-recipes.js"></script>
</head>
<body onload="getAllRecipes()">
<div class="row" id="menu">
<div class="col-sm-2"></div>
<div class="col-sm-10">
<div class="row">
<div class="col-sm-2">
<a href="./index.html" class="menu-item">Home</a>
</div>
<div class="col-sm-2">
<a href="./allrecipes.html" class="menu-item">Recipes</a>
</div>
<div class="col-sm-2">
<a href="./mealplans.html" class="menu-item">Meal Planner</a>
</div>
<div class="col-sm-2">
<a href="./index.html" class="menu-item">My Plans</a>
</div>
<div class="col-sm-2">
<a href="./Login/account.html" class="menu-item">Account</a>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-2"></div>
<div class="col-sm-3">
<h2 class="page-title">Recipes</h2>
</div>
<div class="col-sm-3">
<input class="btn btn-info search" type="submit" id="add-new-recipe" value="Add new recipe" onclick="window.location.href='./addnewrecipe.html';"></button>
</div>
<div class="col-sm-3">
<input class="btn btn-info search" type="submit" id="add-new-recipe" value="Add new ingredient" onclick="window.location.href='./addnewingredient.html';"></button>
</div>
</div>
<div class="row">
<div class="col-sm-2"></div>
<div class="col-sm-3 search">
<h4 class="title">Search recipes by name</h4>
<input id="search-recipe-by-name" class="search-input">
<button id="search-recipe-by-name-btn" class="btn btn-info search">Search Recipes</button>
</div>
<div class="col-sm-3 search">
<h4 class="title">Search recipes by ingredient</h4>
<input id="search-recipe-by-ingredient" class="search-input">
<button class="btn btn-info search" onclick="findRecipesByIngredient()">Search Recipes</button>
</div>
<div class="col-sm-3 search">
<h4 class="title">Search recipes by meal type</h4>
<select id="search-recipe-by-mealtype" class="search-input" onchange="findRecipesByMealType()" type>
<option value="none" selected hidden disabled>Select a meal type</option>
<option value="breakfast">Breakfast</option>
<option value="lunch">Lunch</option>
<option value="dinner">Dinner</option>
</select>
<button class="btn btn-info search" onclick="findRecipesByMealType()">Search Recipes</button>
</div>
</div>
<div id="recipe-result"></div>
<script src=" ./script.js"></script>
</body>
</html>