forked from kesean-EDU/js-allergies-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
143 lines (134 loc) · 5.6 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<title>Re-Find</title>
<link href="https://fonts.googleapis.com/css?family=Satisfy" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="semantic/Semantic-UI-CSS/semantic.css">
<link rel="stylesheet" href="styles/style.css">
<link rel="icon" type="image/x-icon" href="favicon.png" />
</head>
<body id="body" class="ui grid">
<div class="one wide column">
<!-- provide wrapper -->
</div>
<div class="fourteen wide column">
<div class="ui segment">
<h1 id="title_header">Recipe Finder</h1>
</div>
<!-- Container for the recipes start -->
<div class="ui segment main">
<div id="allergies-container" class="ui grid">
<!-- Checkboxes for the recipes -->
<form id="allergy-recipe-form" class="sixteen wide column">
<!-- Form grid -->
<div class="ui grid">
<div class="one wide column">
<!-- provide wrapper -->
</div>
<div class="fourteen wide column centered row">
<div id="check-container">
<div class="ui horizontal segments">
<div class="ui segment">
<div class="ui toggle checkbox">
<input type="checkbox" class="allergy-checkbox" name="allergy" value="dairy">
<label>Milk</label>
</div>
</div>
<div class="ui segment">
<div class="ui toggle checkbox">
<input type="checkbox" class="allergy-checkbox" name="allergy" value="peanuts">
<label>Peanuts</label>
</div>
</div>
<div class="ui segment">
<div class="ui toggle checkbox">
<input type="checkbox" class="allergy-checkbox" name="allergy" value="treenuts">
<label>Treenuts</label>
</div>
</div>
<div class="ui segment">
<div class="ui toggle checkbox">
<input type="checkbox" class="allergy-checkbox" name="allergy" value="soy">
<label>Soy</label>
</div>
</div>
<div class="ui segment">
<div class="ui toggle checkbox">
<input type="checkbox" class="allergy-checkbox" name="allergy" value="gluten">
<label>Gluten</label>
</div>
</div>
<div class="ui segment">
<div class="ui toggle checkbox">
<input type="checkbox" class="allergy-checkbox" name="allergy" value="fish">
<label>Fish</label>
</div>
</div>
<div class="ui segment">
<div class="ui toggle checkbox">
<input type="checkbox" class="allergy-checkbox" name="allergy" value="shellfish">
<label>Shellfish</label>
</div>
</div>
</div>
</div>
<!-- End of Checkboxes -->
<br />
<!-- Start of Custom Input -->
<div class="ui fluid center input" style="padding: 0 5% 0 5%">
<input type="text" name="allergy" id="allergy-name" placeholder="Add any additional allergies...(e.g. strawberry, apple)">
</div>
<br />
<!-- End of Custom Input -->
<!-- Start of recipe name -->
<label for="recipe-name"></label>
<div class="ui fluid center aligned input" style="padding: 0 5% 0 5%">
<input type="text" id="recipe-name" name="recipe" placeholder="Find Recipe For...">
<button id="find" class="red ui button">Re-Find</button>
</div>
<!-- End of recipe name and form in general -->
<!-- End of form content -->
</div>
<div class="one wide column">
<!-- provide wrapper -->
</div>
</div>
<!-- End of Form Grid -->
</form>
</div>
<br />
<br>
<div id="card section" class="ui grid">
<div class="one wide column">
<!-- provide wrapper -->
</div>
<div class="fourteen wide column">
<div id="card container" class="ui fourteen column centered grid">
</div>
</div>
</div>
<div class="ui disabled dimmer" id="recipe-loader">
<div class="ui indeterminate text loader">Preparing Recipes</div>
</div>
<br />
<br>
<div id="button container" class="ui fourteen column centered grid"></div>
<br>
<script
src="https://code.jquery.com/jquery-3.1.1.min.js"
integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="
crossorigin="anonymous"></script>
<script src="src/components/allergy.js" charset="utf-8"></script>
<script src="semantic/Semantic-UI-CSS/semantic.min.js"></script>
<script src="semantic/Semantic-UI-CSS/semantic.js" charset="utf-8"></script>
<script src="src/adapters/recipesAdapter.js" charset="utf-8"></script>
<script src="src/components/recipe.js" charset="utf-8"></script>
<script src="src/components/recipes_list.js" charset="utf-8"></script>
<script src="src/components/app.js" charset="utf-8"></script>
<script type="text/javascript" src="src/index.js"></script>
</div>
<div class="one wide column">
<!-- provide wrapper -->
</div>
</body>
</html>