Spaces:
Sleeping
Sleeping
Hemanth-Thaluru
commited on
Commit
•
e0c4a6d
1
Parent(s):
4f922f2
added styles
Browse files- static/script.js +104 -0
- static/style.css +354 -0
- templates/index.html +225 -0
- templates/index_copy.html +178 -0
- templates/index_cpy2.html +226 -0
- templates/recommendations.html +3 -0
static/script.js
ADDED
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
$(document).ready(function () {
|
2 |
+
console.log("Document ready!"); // Check if document is ready
|
3 |
+
|
4 |
+
$('.toggle-button').click(function () {
|
5 |
+
console.log("Button clicked:", this.name); // Check if button click is detected
|
6 |
+
$(this).toggleClass('active');
|
7 |
+
|
8 |
+
let hiddenInput = $('input[name="' + this.name + '"]');
|
9 |
+
if ($(this).hasClass('active')) {
|
10 |
+
hiddenInput.val('1');
|
11 |
+
} else {
|
12 |
+
hiddenInput.val('');
|
13 |
+
}
|
14 |
+
|
15 |
+
let anyActive = $('.toggle-button.active').length > 0;
|
16 |
+
if (anyActive) {
|
17 |
+
$('#recommendationsOutput').show();
|
18 |
+
} else {
|
19 |
+
$('#recommendationsOutput').hide();
|
20 |
+
}
|
21 |
+
});
|
22 |
+
});
|
23 |
+
|
24 |
+
document.getElementById('recommendationForm').addEventListener('submit', function(e) {
|
25 |
+
e.preventDefault(); // Prevent default form submission
|
26 |
+
|
27 |
+
var formData = new FormData(this);
|
28 |
+
|
29 |
+
fetch('/recommend', {
|
30 |
+
method: 'POST',
|
31 |
+
body: formData
|
32 |
+
})
|
33 |
+
.then(response => {
|
34 |
+
if (!response.ok) {
|
35 |
+
throw new Error('Network response was not ok');
|
36 |
+
}
|
37 |
+
return response.json();
|
38 |
+
})
|
39 |
+
.then(data => {
|
40 |
+
var recommendationsDiv = document.getElementById('recommendationsOutput');
|
41 |
+
recommendationsDiv.innerHTML = ''; // Clear previous recommendations
|
42 |
+
|
43 |
+
if (data.recommendations && data.recommendations.length > 0) {
|
44 |
+
var h2 = document.createElement('h2');
|
45 |
+
h2.textContent = 'Based on your Favorite drinks ☕ we think you will love 💚 these drinks..';
|
46 |
+
recommendationsDiv.appendChild(h2);
|
47 |
+
|
48 |
+
var ul = document.createElement('ol');
|
49 |
+
data.recommendations.forEach(function(drink) {
|
50 |
+
var li = document.createElement('li');
|
51 |
+
li.textContent = drink.Drink_name;
|
52 |
+
ul.appendChild(li);
|
53 |
+
});
|
54 |
+
recommendationsDiv.appendChild(ul);
|
55 |
+
|
56 |
+
// Add collaboration invitation
|
57 |
+
var collaborationText = document.createElement('div');
|
58 |
+
collaborationText.className = 'collaboration-text';
|
59 |
+
collaborationText.innerHTML = `<h3>Intrigued by the Fusion of Coffee and Data?</h3>
|
60 |
+
<p>If you're excited about this blend of coffee and data science, or if you have ideas for collaboration, let's connect!<br><br>
|
61 |
+
Reach out to me at <a href="mailto:nihithna@buffalo.edu">nihithna@buffalo.edu</a>. Together, we can brew something innovative!</p>`;
|
62 |
+
recommendationsDiv.appendChild(collaborationText);
|
63 |
+
|
64 |
+
// Add Clear Drinks button
|
65 |
+
var clearButton = document.createElement('button');
|
66 |
+
clearButton.type = 'button';
|
67 |
+
clearButton.className = 'btn btn-outline-danger';
|
68 |
+
clearButton.textContent = 'Clear Drinks';
|
69 |
+
clearButton.addEventListener('click', function() {
|
70 |
+
location.reload(); // Reload the page
|
71 |
+
});
|
72 |
+
recommendationsDiv.appendChild(clearButton);
|
73 |
+
} else {
|
74 |
+
var noResult = document.createElement('p');
|
75 |
+
noResult.textContent = 'No drinks selected';
|
76 |
+
recommendationsDiv.appendChild(noResult);
|
77 |
+
}
|
78 |
+
|
79 |
+
// Scroll to recommendationsOutput div
|
80 |
+
recommendationsDiv.scrollIntoView({ behavior: 'smooth' });
|
81 |
+
})
|
82 |
+
.catch(error => {
|
83 |
+
console.error('Error:', error);
|
84 |
+
|
85 |
+
var errorDiv = document.getElementById('recommendationsOutput');
|
86 |
+
errorDiv.textContent = 'An error occurred while fetching recommendations.';
|
87 |
+
});
|
88 |
+
});
|
89 |
+
|
90 |
+
function searchDrinks() {
|
91 |
+
const input = document.getElementById('searchInput').value.toLowerCase();
|
92 |
+
const labels = document.querySelectorAll('.sections label');
|
93 |
+
|
94 |
+
labels.forEach(label => {
|
95 |
+
const text = label.textContent.toLowerCase();
|
96 |
+
if (text.includes(input)) {
|
97 |
+
label.style.display = '';
|
98 |
+
} else {
|
99 |
+
label.style.display = 'none';
|
100 |
+
}
|
101 |
+
});
|
102 |
+
|
103 |
+
return false; // Prevent form submission
|
104 |
+
}
|
static/style.css
ADDED
@@ -0,0 +1,354 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* General Body and Header Styling */
|
2 |
+
body {
|
3 |
+
background-color: #f5f5f5;
|
4 |
+
margin: 0;
|
5 |
+
padding: 0;
|
6 |
+
}
|
7 |
+
|
8 |
+
header {
|
9 |
+
background-color: #00723f;
|
10 |
+
color: #fffcfc;
|
11 |
+
text-align: center;
|
12 |
+
padding: 5px 0px;
|
13 |
+
font-weight: bold;
|
14 |
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
|
15 |
+
font-style: italic;
|
16 |
+
height: 80px;
|
17 |
+
}
|
18 |
+
|
19 |
+
header a {
|
20 |
+
|
21 |
+
color: #fffcfc
|
22 |
+
}
|
23 |
+
|
24 |
+
.toggle-button strong {
|
25 |
+
font-weight: bold;
|
26 |
+
}
|
27 |
+
|
28 |
+
.main-heading {
|
29 |
+
font-size: 2.5em;
|
30 |
+
line-height: 1.2;
|
31 |
+
text-align: center;
|
32 |
+
}
|
33 |
+
|
34 |
+
.small-text {
|
35 |
+
font-size: 0.7em;
|
36 |
+
}
|
37 |
+
|
38 |
+
body {
|
39 |
+
font-family: Arial, sans-serif;
|
40 |
+
}
|
41 |
+
|
42 |
+
.container {
|
43 |
+
display: flex;
|
44 |
+
justify-content: flex-start;
|
45 |
+
align-items: flex-start;
|
46 |
+
gap: 20px;
|
47 |
+
margin: 40px;
|
48 |
+
}
|
49 |
+
.intro{
|
50 |
+
padding-top: 25px;
|
51 |
+
padding-bottom: 0px;
|
52 |
+
margin-left: 50px;
|
53 |
+
margin-right: 50px;
|
54 |
+
}
|
55 |
+
|
56 |
+
.intro h2, .container h3 {
|
57 |
+
font-weight: bold;
|
58 |
+
color: #00723f;
|
59 |
+
}
|
60 |
+
|
61 |
+
.intro p, .container p {
|
62 |
+
font-size: 1.1rem;
|
63 |
+
color: #333;
|
64 |
+
line-height: 1.6;
|
65 |
+
}
|
66 |
+
|
67 |
+
.intro a, .container a {
|
68 |
+
color: #00723f;
|
69 |
+
text-decoration: none;
|
70 |
+
font-weight: bold;
|
71 |
+
transition: color 0.3s;
|
72 |
+
}
|
73 |
+
|
74 |
+
.intro a:hover, .container a:hover {
|
75 |
+
color: #00723f; /* Darker green on hover */
|
76 |
+
}
|
77 |
+
|
78 |
+
|
79 |
+
.content {
|
80 |
+
width: 1000px;
|
81 |
+
}
|
82 |
+
|
83 |
+
|
84 |
+
|
85 |
+
|
86 |
+
|
87 |
+
#filters {
|
88 |
+
flex: auto;
|
89 |
+
background-color: #f9f9f9;
|
90 |
+
padding: 10px;
|
91 |
+
border-radius: 8px;
|
92 |
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
93 |
+
flex-shrink: 0;
|
94 |
+
font-weight: bold;
|
95 |
+
margin-top: 30px;
|
96 |
+
}
|
97 |
+
|
98 |
+
#craving_text {
|
99 |
+
font-size: 3em;
|
100 |
+
font-weight: bold;
|
101 |
+
margin-bottom: 20px;
|
102 |
+
}
|
103 |
+
|
104 |
+
.toggle-button {
|
105 |
+
background-color: transparent;
|
106 |
+
color: #007bff;
|
107 |
+
border: 1px solid #007bff;
|
108 |
+
padding: 6px 12px;
|
109 |
+
cursor: pointer;
|
110 |
+
transition: background-color 0.3s, color 0.3s, border-color 0.3s;
|
111 |
+
}
|
112 |
+
|
113 |
+
.toggle-button.active {
|
114 |
+
background-color: #00723f;
|
115 |
+
color: white;
|
116 |
+
border-color: #00723f;
|
117 |
+
}
|
118 |
+
|
119 |
+
.toggle-button:hover:not(.active) {
|
120 |
+
background-color: #00723f;
|
121 |
+
color: white;
|
122 |
+
}
|
123 |
+
|
124 |
+
.sections {
|
125 |
+
display: flex;
|
126 |
+
flex-wrap: wrap;
|
127 |
+
gap: 20px;
|
128 |
+
}
|
129 |
+
|
130 |
+
input[type="checkbox"] {
|
131 |
+
}
|
132 |
+
|
133 |
+
input[type="checkbox"]:checked {
|
134 |
+
background-color: #00723f;
|
135 |
+
}
|
136 |
+
|
137 |
+
.section {
|
138 |
+
flex: 1 1 200px;
|
139 |
+
padding: 10px;
|
140 |
+
background-color: #f9f9f9;
|
141 |
+
border-radius: 8px;
|
142 |
+
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
|
143 |
+
}
|
144 |
+
|
145 |
+
.section img {
|
146 |
+
max-width: 100%;
|
147 |
+
height: auto; /* Maintain aspect ratio */
|
148 |
+
max-height: 150px; /* Significantly reduce the size of the images */
|
149 |
+
border-radius: 8px;
|
150 |
+
}
|
151 |
+
|
152 |
+
#recommendations {
|
153 |
+
display: block;
|
154 |
+
margin: 20px auto;
|
155 |
+
padding: 15px 30px;
|
156 |
+
font-size: 18px;
|
157 |
+
text-align: center;
|
158 |
+
background-color: #00723f;
|
159 |
+
color: #fff;
|
160 |
+
border: none;
|
161 |
+
border-radius: 5px;
|
162 |
+
cursor: pointer;
|
163 |
+
}
|
164 |
+
|
165 |
+
#recommendations:hover {
|
166 |
+
background-color: #00723f;
|
167 |
+
}
|
168 |
+
|
169 |
+
.section h4 {
|
170 |
+
margin-top: 10px;
|
171 |
+
margin-bottom: 5px;
|
172 |
+
font-size: 1.2rem;
|
173 |
+
color: #00723f;
|
174 |
+
}
|
175 |
+
|
176 |
+
.section label {
|
177 |
+
display: block;
|
178 |
+
margin-bottom: 8px;
|
179 |
+
}
|
180 |
+
|
181 |
+
.section input[type="checkbox"] {
|
182 |
+
margin-right: 5px;
|
183 |
+
vertical-align: middle;
|
184 |
+
}
|
185 |
+
|
186 |
+
input[type="submit"] {
|
187 |
+
background-color: #ffffff;
|
188 |
+
color: #000000;
|
189 |
+
border: 2px solid #00723f;
|
190 |
+
padding: 10px 20px;
|
191 |
+
font-size: 1rem;
|
192 |
+
cursor: pointer;
|
193 |
+
border-radius: 4px;
|
194 |
+
transition: background-color 0.3s, color 0.3s;
|
195 |
+
margin: 100px;
|
196 |
+
}
|
197 |
+
|
198 |
+
input[type="submit"]:hover {
|
199 |
+
background-color: #00723f;
|
200 |
+
color: #ffffff;
|
201 |
+
}
|
202 |
+
|
203 |
+
input[type="submit"]:active {
|
204 |
+
background-color: hwb(160 20% 23%);
|
205 |
+
color: #ffffff;
|
206 |
+
}
|
207 |
+
|
208 |
+
label {
|
209 |
+
display: block;
|
210 |
+
margin-bottom: 8px;
|
211 |
+
cursor: pointer;
|
212 |
+
}
|
213 |
+
|
214 |
+
input[type="checkbox"] {
|
215 |
+
margin-right: 5px;
|
216 |
+
vertical-align: middle;
|
217 |
+
}
|
218 |
+
|
219 |
+
.recommendations {
|
220 |
+
margin-top: 20px;
|
221 |
+
padding: 20px;
|
222 |
+
background-color: #f0f0f0;
|
223 |
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
224 |
+
}
|
225 |
+
|
226 |
+
.section label {
|
227 |
+
cursor: pointer;
|
228 |
+
}
|
229 |
+
|
230 |
+
.btn {
|
231 |
+
background-color: white;
|
232 |
+
color: black;
|
233 |
+
border: 1px solid black;
|
234 |
+
padding: 10px 20px;
|
235 |
+
font-size: 16px;
|
236 |
+
margin: 10px;
|
237 |
+
transition: background-color 0.3s, color 0.3s;
|
238 |
+
border-radius: 10px; /* Rounded corners */
|
239 |
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Poppy box-shadow */
|
240 |
+
}
|
241 |
+
|
242 |
+
.btn:hover {
|
243 |
+
background-color: #f0f0f0; /* Light gray on hover */
|
244 |
+
box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2); /* Slightly more prominent box-shadow on hover */
|
245 |
+
}
|
246 |
+
|
247 |
+
|
248 |
+
.btn.selected {
|
249 |
+
background-color: #00723f;
|
250 |
+
color: white;
|
251 |
+
}
|
252 |
+
|
253 |
+
.selected {
|
254 |
+
background-color: #00723f;
|
255 |
+
color: white;
|
256 |
+
}
|
257 |
+
|
258 |
+
.output {
|
259 |
+
flex: auto;
|
260 |
+
background-color: #f9f9f9;
|
261 |
+
padding: 20px;
|
262 |
+
border-radius: 15px;
|
263 |
+
box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
|
264 |
+
flex-shrink: 0;
|
265 |
+
font-weight: bold;
|
266 |
+
margin: 20px;
|
267 |
+
text-align: center;
|
268 |
+
margin-top: 60px;
|
269 |
+
}
|
270 |
+
|
271 |
+
.output p {
|
272 |
+
font-size: 1.2em;
|
273 |
+
margin-bottom: 10px;
|
274 |
+
}
|
275 |
+
|
276 |
+
.output ul {
|
277 |
+
list-style-type: none;
|
278 |
+
padding: 0;
|
279 |
+
}
|
280 |
+
|
281 |
+
.output li {
|
282 |
+
background-color: #00723f;
|
283 |
+
margin: 10px 0;
|
284 |
+
padding: 20px;
|
285 |
+
border-radius: 10px;
|
286 |
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
287 |
+
text-align: left;
|
288 |
+
color: #fff;
|
289 |
+
}
|
290 |
+
|
291 |
+
.output li:hover {
|
292 |
+
transform: scale(1.05);
|
293 |
+
transition: transform 0.3s ease-in-out;
|
294 |
+
}
|
295 |
+
|
296 |
+
.output h3 {
|
297 |
+
font-size: 1.5em;
|
298 |
+
color: #00723f;
|
299 |
+
margin-bottom: 15px;
|
300 |
+
}
|
301 |
+
|
302 |
+
.footer {
|
303 |
+
background-color: #00723f;
|
304 |
+
color: white;
|
305 |
+
text-align: center;
|
306 |
+
padding: 1rem 0;
|
307 |
+
|
308 |
+
width: 100%;
|
309 |
+
bottom: 0;
|
310 |
+
}
|
311 |
+
|
312 |
+
.footer a
|
313 |
+
{
|
314 |
+
color :#fff
|
315 |
+
}
|
316 |
+
.collaboration-text {
|
317 |
+
margin-top: 20px;
|
318 |
+
padding: 20px;
|
319 |
+
background-color: #f0f8ff;
|
320 |
+
border-radius: 10px;
|
321 |
+
text-align: center;
|
322 |
+
font-family: 'Poppins', sans-serif;
|
323 |
+
}
|
324 |
+
|
325 |
+
.collaboration-text h3 {
|
326 |
+
font-size: 24px;
|
327 |
+
color: #2c3e50;
|
328 |
+
}
|
329 |
+
|
330 |
+
.collaboration-text p {
|
331 |
+
font-size: 16px;
|
332 |
+
color: #34495e;
|
333 |
+
}
|
334 |
+
|
335 |
+
.collaboration-text a {
|
336 |
+
color: #2980b9;
|
337 |
+
text-decoration: none;
|
338 |
+
}
|
339 |
+
|
340 |
+
.collaboration-text a:hover {
|
341 |
+
text-decoration: underline;
|
342 |
+
}
|
343 |
+
|
344 |
+
#loadingGif {
|
345 |
+
display: none;
|
346 |
+
text-align: center;
|
347 |
+
margin-top: 20px;
|
348 |
+
}
|
349 |
+
|
350 |
+
#logo-img {
|
351 |
+
width: 60px;
|
352 |
+
height: 60px;
|
353 |
+
vertical-align: middle;
|
354 |
+
}
|
templates/index.html
ADDED
@@ -0,0 +1,225 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Starbucks Drink Recommendation</title>
|
7 |
+
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
8 |
+
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
9 |
+
|
10 |
+
</head>
|
11 |
+
<body>
|
12 |
+
<header>
|
13 |
+
<h1 class="main-heading">
|
14 |
+
<img src="../static/bmr_logo.png" id="logo-img" alt="logo" height="60">
|
15 |
+
Brew My Recommendations <span class="small-text">by <a href="https://www.linkedin.com/in/nihithnath/">Nihith</a></span>
|
16 |
+
</h1>
|
17 |
+
|
18 |
+
</header>
|
19 |
+
<div class="intro">
|
20 |
+
|
21 |
+
<h2>Welcome to Brew My Recommendations!</h2>
|
22 |
+
|
23 |
+
<h3>Select your favorite Starbucks drinks and apply filters like hot, cold, coffee, or tea. The system uses your preferences to recommend the best drinks tailored to your taste.</h3>
|
24 |
+
</div>
|
25 |
+
<div class="container">
|
26 |
+
<div class="content">
|
27 |
+
<h3>Select Your Favorite Drinks:</h3>
|
28 |
+
<form id="recommendationForm" method="POST">
|
29 |
+
<div class="sections">
|
30 |
+
<div class="section">
|
31 |
+
<img src="https://globalassets.starbucks.com/digitalassets/products/bev/SBX20190617_CaffeAmericano.jpg?impolicy=1by1_tight_288" alt="Hot Coffees"><br>
|
32 |
+
<h4>Hot Coffees</h4><br>
|
33 |
+
<label><input type="checkbox" name="selected_drinks" value="Americano"> Americano</label>
|
34 |
+
<label><input type="checkbox" name="selected_drinks" value="Blonde Vanilla Latte"> Blonde Vanilla Latte</label>
|
35 |
+
<label><input type="checkbox" name="selected_drinks" value="Caffe Latte"> Caffe Latte</label>
|
36 |
+
<label><input type="checkbox" name="selected_drinks" value="Caffe Mocha"> Caffe Mocha</label>
|
37 |
+
<label><input type="checkbox" name="selected_drinks" value="Cappuccino"> Cappuccino</label>
|
38 |
+
<label><input type="checkbox" name="selected_drinks" value="Caramel Macchiato"> Caramel Macchiato</label>
|
39 |
+
<label><input type="checkbox" name="selected_drinks" value="Cinnamon Dolce Latte"> Cinnamon Dolce Latte</label>
|
40 |
+
<label><input type="checkbox" name="selected_drinks" value="Dark Chocolate Mocha Reserve"> Dark Chocolate Mocha Reserve</label>
|
41 |
+
<label><input type="checkbox" name="selected_drinks" value="Drip Brew Coffee"> Drip Brew Coffee</label>
|
42 |
+
<label><input type="checkbox" name="selected_drinks" value="Espresso"> Espresso</label>
|
43 |
+
<label><input type="checkbox" name="selected_drinks" value="Espresso Con Panna"> Espresso Con Panna</label>
|
44 |
+
<label><input type="checkbox" name="selected_drinks" value="Espresso Macchiato"> Espresso Macchiato</label>
|
45 |
+
<label><input type="checkbox" name="selected_drinks" value="Flat White"> Flat White</label>
|
46 |
+
<label><input type="checkbox" name="selected_drinks" value="Hazelnut Bianco Latte Reserve"> Hazelnut Bianco Latte Reserve</label>
|
47 |
+
<label><input type="checkbox" name="selected_drinks" value="Honey Almondmilk Flat White"> Honey Almondmilk Flat White</label>
|
48 |
+
<label><input type="checkbox" name="selected_drinks" value="Latte Reserve"> Latte Reserve</label>
|
49 |
+
<label><input type="checkbox" name="selected_drinks" value="White Chocolate Mocha"> White Chocolate Mocha</label>
|
50 |
+
<br>
|
51 |
+
<img src="https://globalassets.starbucks.com/digitalassets/products/bev/SBX20190617_SignatureHotChocolate.jpg?impolicy=1by1_tight_288" alt="Milk, Juice & More" role="presentation"><br>
|
52 |
+
<h4>Hot Drinks</h4><br>
|
53 |
+
<label><input type="checkbox" name="selected_drinks" value="Caramel Apple Spice"> Caramel Apple Spice</label>
|
54 |
+
<label><input type="checkbox" name="selected_drinks" value="Hot Chocolate"> Hot Chocolate</label>
|
55 |
+
<label><input type="checkbox" name="selected_drinks" value="Steamed Apple Juice"> Steamed Apple Juice</label>
|
56 |
+
<label><input type="checkbox" name="selected_drinks" value="Steamed Milk"> Steamed Milk</label>
|
57 |
+
<label><input type="checkbox" name="selected_drinks" value="Vanilla Creme"> Vanilla Creme</label>
|
58 |
+
<label><input type="checkbox" name="selected_drinks" value="White Hot Chocolate"> White Hot Chocolate</label>
|
59 |
+
<br>
|
60 |
+
<img src="https://globalassets.starbucks.com/digitalassets/products/bev/SBX20220411_ChaiLatte.jpg?impolicy=1by1_tight_288" alt="Hot Teas" role="presentation"><br>
|
61 |
+
<h4>Hot Teas</h4><br>
|
62 |
+
<label><input type="checkbox" name="selected_drinks" value="Chai Tea"> Chai Tea</label>
|
63 |
+
<label><input type="checkbox" name="selected_drinks" value="Chai Tea Latte"> Chai Tea Latte</label>
|
64 |
+
<label><input type="checkbox" name="selected_drinks" value="Earl Grey Tea"> Earl Grey Tea</label>
|
65 |
+
<label><input type="checkbox" name="selected_drinks" value="Emperors Cloud & Mist"> Emperors Cloud & Mist</label>
|
66 |
+
<label><input type="checkbox" name="selected_drinks" value="English Breakfast Tea"> English Breakfast Tea</label>
|
67 |
+
<label><input type="checkbox" name="selected_drinks" value="English Tea Latte"> English Tea Latte</label>
|
68 |
+
<label><input type="checkbox" name="selected_drinks" value="Honey Citrus Mint Tea"> Honey Citrus Mint Tea</label>
|
69 |
+
<label><input type="checkbox" name="selected_drinks" value="Jade Citrus Mint Tea"> Jade Citrus Mint Tea</label>
|
70 |
+
<label><input type="checkbox" name="selected_drinks" value="London Fog Tea Latte"> London Fog Tea Latte</label>
|
71 |
+
<label><input type="checkbox" name="selected_drinks" value="Mango Black Tea"> Mango Black Tea</label>
|
72 |
+
<label><input type="checkbox" name="selected_drinks" value="Matcha Tea Latte"> Matcha Tea Latte</label>
|
73 |
+
<label><input type="checkbox" name="selected_drinks" value="Mint Majesty Tea"> Mint Majesty Tea</label>
|
74 |
+
<label><input type="checkbox" name="selected_drinks" value="Peach Tranquility Tea"> Peach Tranquility Tea</label>
|
75 |
+
<br>
|
76 |
+
</div>
|
77 |
+
|
78 |
+
<div class="section">
|
79 |
+
<img src="https://globalassets.starbucks.com/digitalassets/products/bev/SummerBerryRefreshersLemonade.jpg?impolicy=1by1_tight_288" alt="Starbucks Refreshers® Beverages" role="presentation"><br>
|
80 |
+
<h4>Starbucks Refreshers® Beverages</h4><br>
|
81 |
+
<label><input type="checkbox" name="selected_drinks" value="Blended Strawberry Lemonade"> Blended Strawberry Lemonade</label>
|
82 |
+
<label><input type="checkbox" name="selected_drinks" value="Dragon Drink Refreshers"> Dragon Drink Refreshers</label>
|
83 |
+
<label><input type="checkbox" name="selected_drinks" value="Frozen Mango Dragonfruit Lemonade"> Frozen Mango Dragonfruit Lemonade</label>
|
84 |
+
<label><input type="checkbox" name="selected_drinks" value="Frozen Pineapple Passionfruit Lemonade"> Frozen Pineapple Passionfruit Lemonade</label>
|
85 |
+
<label><input type="checkbox" name="selected_drinks" value="Frozen Strawberry Açaí Lemonade"> Frozen Strawberry Açaí Lemonade</label>
|
86 |
+
<label><input type="checkbox" name="selected_drinks" value="Mango Dragonfruit Lemonade Refreshers"> Mango Dragonfruit Lemonade Refreshers</label>
|
87 |
+
<label><input type="checkbox" name="selected_drinks" value="Mango Dragonfruit Refreshers"> Mango Dragonfruit Refreshers</label>
|
88 |
+
<label><input type="checkbox" name="selected_drinks" value="Paradise Drink"> Paradise Drink</label>
|
89 |
+
<label><input type="checkbox" name="selected_drinks" value="Pineapple Passionfruit"> Pineapple Passionfruit</label>
|
90 |
+
<label><input type="checkbox" name="selected_drinks" value="Pink Drink"> Pink Drink</label>
|
91 |
+
<label><input type="checkbox" name="selected_drinks" value="Strawberry Açaí Lemonade Refreshers"> Strawberry Açaí Lemonade Refreshers</label>
|
92 |
+
<label><input type="checkbox" name="selected_drinks" value="Strawberry Açaí Refreshers"> Strawberry Açaí Refreshers</label>
|
93 |
+
<br>
|
94 |
+
<img src="https://globalassets.starbucks.com/digitalassets/products/bev/SBX20221130_WhiteChocolateMacadamiaColdBrew.jpg?impolicy=1by1_tight_288" alt="Cold Coffees" role="presentation"><br>
|
95 |
+
<h4>Cold Coffees</h4><br>
|
96 |
+
<label><input type="checkbox" name="selected_drinks" value="Chocolate Cream Cold Brew"> Chocolate Cream Cold Brew</label>
|
97 |
+
<label><input type="checkbox" name="selected_drinks" value="Cinnamon Caramel Cream Cold Brew"> Cinnamon Caramel Cream Cold Brew</label>
|
98 |
+
<label><input type="checkbox" name="selected_drinks" value="Cinnamon Caramel Cream Nitro Cold Brew"> Cinnamon Caramel Cream Nitro Cold Brew</label>
|
99 |
+
<label><input type="checkbox" name="selected_drinks" value="Cold Brew"> Cold Brew</label>
|
100 |
+
<label><input type="checkbox" name="selected_drinks" value="Cold Brew Coffee with Milk"> Cold Brew Coffee with Milk</label>
|
101 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Americano"> Iced Americano</label>
|
102 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Blonde Vanilla Latte"> Iced Blonde Vanilla Latte</label>
|
103 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Brown Sugar Oatmilk Shaken Espresso"> Iced Brown Sugar Oatmilk Shaken Espresso</label>
|
104 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Caffe Latte"> Iced Caffe Latte</label>
|
105 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Chai Tea Latte"> Iced Chai Tea Latte</label>
|
106 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Chocolate Almondmilk Shaken Espresso"> Iced Chocolate Almondmilk Shaken Espresso</label>
|
107 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Cinnamon Dolce Latte"> Iced Cinnamon Dolce Latte</label>
|
108 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Coffee"> Iced Coffee</label>
|
109 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Coffee with Milk"> Iced Coffee with Milk</label>
|
110 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Espresso"> Iced Espresso</label>
|
111 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Flat White"> Iced Flat White</label>
|
112 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Hazelnut Bianco Latte Reserve"> Iced Hazelnut Bianco Latte Reserve</label>
|
113 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Honey Almondmilk Flat White"> Iced Honey Almondmilk Flat White</label>
|
114 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Latte Reserve"> Iced Latte Reserve</label>
|
115 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Shaken Espresso"> Iced Shaken Espresso</label>
|
116 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Toasted Vanilla Oatmilk Shaken Espresso"> Iced Toasted Vanilla Oatmilk Shaken Espresso</label>
|
117 |
+
<label><input type="checkbox" name="selected_drinks" value="Nitro Cold Brew"> Nitro Cold Brew</label>
|
118 |
+
<label><input type="checkbox" name="selected_drinks" value="Salted Caramel Cream Cold Brew"> Salted Caramel Cream Cold Brew</label>
|
119 |
+
<label><input type="checkbox" name="selected_drinks" value="Vanilla Sweet Cream Cold Brew"> Vanilla Sweet Cream Cold Brew</label>
|
120 |
+
<label><input type="checkbox" name="selected_drinks" value="Vanilla Sweet Cream Nitro Cold Brew"> Vanilla Sweet Cream Nitro Cold Brew</label>
|
121 |
+
<label><input type="checkbox" name="selected_drinks" value="White Chocolate Macadamia Cream Cold Brew"> White Chocolate Macadamia Cream Cold Brew</label>
|
122 |
+
</div>
|
123 |
+
|
124 |
+
|
125 |
+
|
126 |
+
<div class="section">
|
127 |
+
<img src="https://globalassets.starbucks.com/digitalassets/products/bev/SBX20211210_MochaCookieCrumbleFrapp.jpg?impolicy=1by1_tight_288" alt="Frappuccino® Blended Beverages" role="presentation"><br>
|
128 |
+
<h4>Frappuccinos</h4><br>
|
129 |
+
<label><input type="checkbox" name="selected_drinks" value="Caffe Vanilla Frappuccino"> Caffe Vanilla Frappuccino</label>
|
130 |
+
<label><input type="checkbox" name="selected_drinks" value="Caramel Frappuccino"> Caramel Frappuccino</label>
|
131 |
+
<label><input type="checkbox" name="selected_drinks" value="Caramel Ribbon Crunch Creme Frappuccino"> Caramel Ribbon Crunch Creme Frappuccino</label>
|
132 |
+
<label><input type="checkbox" name="selected_drinks" value="Caramel Ribbon Crunch Frappuccino"> Caramel Ribbon Crunch Frappuccino</label>
|
133 |
+
<label><input type="checkbox" name="selected_drinks" value="Chai Creme Frappuccino"> Chai Creme Frappuccino</label>
|
134 |
+
<label><input type="checkbox" name="selected_drinks" value="Chocolate Cookie Crumble Creme Frappuccino"> Chocolate Cookie Crumble Creme Frappuccino</label>
|
135 |
+
<label><input type="checkbox" name="selected_drinks" value="Chocolate Java Mint Frappuccino"> Chocolate Java Mint Frappuccino</label>
|
136 |
+
<label><input type="checkbox" name="selected_drinks" value="Chocolate Mint Creme Frappuccino"> Chocolate Mint Creme Frappuccino</label>
|
137 |
+
<label><input type="checkbox" name="selected_drinks" value="Coffee Frappuccino"> Coffee Frappuccino</label>
|
138 |
+
<label><input type="checkbox" name="selected_drinks" value="Double Chocolaty Chip Creme Frappuccino"> Double Chocolaty Chip Creme Frappuccino</label>
|
139 |
+
<label><input type="checkbox" name="selected_drinks" value="Espresso Frappuccino"> Espresso Frappuccino</label>
|
140 |
+
<label><input type="checkbox" name="selected_drinks" value="Java Chip Frappuccino"> Java Chip Frappuccino</label>
|
141 |
+
<label><input type="checkbox" name="selected_drinks" value="Matcha Creme Frappuccino"> Matcha Creme Frappuccino</label>
|
142 |
+
<label><input type="checkbox" name="selected_drinks" value="Mocha Cookie Crumble Frappuccino"> Mocha Cookie Crumble Frappuccino</label>
|
143 |
+
<label><input type="checkbox" name="selected_drinks" value="Mocha Frappuccino"> Mocha Frappuccino</label>
|
144 |
+
<label><input type="checkbox" name="selected_drinks" value="Strawberry Creme Frappuccino"> Strawberry Creme Frappuccino</label>
|
145 |
+
<label><input type="checkbox" name="selected_drinks" value="Vanilla Bean Creme Frappuccino"> Vanilla Bean Creme Frappuccino</label>
|
146 |
+
<label><input type="checkbox" name="selected_drinks" value="White Chocolate Creme Frappuccino"> White Chocolate Creme Frappuccino</label>
|
147 |
+
<label><input type="checkbox" name="selected_drinks" value="White Chocolate Mocha Frappuccino"> White Chocolate Mocha Frappuccino</label>
|
148 |
+
<br>
|
149 |
+
<img src="https://globalassets.starbucks.com/digitalassets/products/bev/SBX20190531_IcedBlackTea.jpg?impolicy=1by1_tight_288" alt="Iced Tea and Lemonade" role="presentation"><br>
|
150 |
+
<h4>Iced Teas and Lemonade</h4><br>
|
151 |
+
<label><input type="checkbox" name="selected_drinks" value="Lemonade"> Lemonade</label>
|
152 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Black Tea"> Iced Black Tea</label>
|
153 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Black Tea Lemonade"> Iced Black Tea Lemonade</label>
|
154 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Green Tea"> Iced Green Tea</label>
|
155 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Green Tea Lemonade"> Iced Green Tea Lemonade</label>
|
156 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced London Fog Tea Latte"> Iced London Fog Tea Latte</label>
|
157 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Matcha Lemonade"> Iced Matcha Lemonade</label>
|
158 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Matcha Tea Latte"> Iced Matcha Tea Latte</label>
|
159 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Passion Tango Tea"> Iced Passion Tango Tea</label>
|
160 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Passion Tango Tea Lemonade"> Iced Passion Tango Tea Lemonade</label>
|
161 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Peach Green Tea"> Iced Peach Green Tea</label>
|
162 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Peach Green Tea Lemonade"> Iced Peach Green Tea Lemonade</label>
|
163 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Royal English Breakfast Tea Latte"> Iced Royal English Breakfast Tea Latte</label>
|
164 |
+
<label><input type="checkbox" name="selected_drinks" value="Sparkling Unsweetened Peach Green Tea"> Sparkling Unsweetened Peach Green Tea</label>
|
165 |
+
|
166 |
+
</div>
|
167 |
+
|
168 |
+
|
169 |
+
</div>
|
170 |
+
|
171 |
+
|
172 |
+
|
173 |
+
|
174 |
+
<div id="filters">
|
175 |
+
<h3 id="craving_text">I am Craving 😋 ......... </h3>
|
176 |
+
<div class="form-group">
|
177 |
+
<button type="button" class="btn btn-outline-primary mr-2 mb-2 toggle-button" name="include_all">Everything</button>
|
178 |
+
<button type="button" class="btn btn-outline-primary mr-2 mb-2 toggle-button" name="include_coffee"> Coffee</button>
|
179 |
+
<button type="button" class="btn btn-outline-primary mr-2 mb-2 toggle-button" name="include_tea"> Tea</button>
|
180 |
+
<button type="button" class="btn btn-outline-primary mr-2 mb-2 toggle-button" name="include_neither">Neither Coffee Nor Tea</button>
|
181 |
+
<button type="button" class="btn btn-outline-primary mr-2 mb-2 toggle-button" name="include_hot">Something Hot to Sip</button>
|
182 |
+
<button type="button" class="btn btn-outline-primary mr-2 mb-2 toggle-button" name="include_cold">Some Cold Drink to Chill</button>
|
183 |
+
<button type="button" class="btn btn-outline-primary mr-2 mb-2 toggle-button" name="include_frozen">Something Frozen</button>
|
184 |
+
</div>
|
185 |
+
<input type="hidden" name="n_recommendations" value="5">
|
186 |
+
|
187 |
+
<!-- Add hidden input fields for filter values -->
|
188 |
+
<input type="hidden" name="include_all" value="">
|
189 |
+
<input type="hidden" name="include_coffee" value="">
|
190 |
+
<input type="hidden" name="include_tea" value="">
|
191 |
+
<input type="hidden" name="include_neither" value="">
|
192 |
+
<input type="hidden" name="include_hot" value="">
|
193 |
+
<input type="hidden" name="include_cold" value="">
|
194 |
+
<input type="hidden" name="include_frozen" value="">
|
195 |
+
|
196 |
+
<!-- Submit button -->
|
197 |
+
<input id="recommendations" type="submit" value="Brew My Recommendations">
|
198 |
+
</div>
|
199 |
+
</form>
|
200 |
+
|
201 |
+
|
202 |
+
</div>
|
203 |
+
<div id="loadingGif">
|
204 |
+
<iframe src="https://giphy.com/embed/Wlt4ZlGYNBvspLybad" width="480" height="269" frameBorder="0" class="giphy-embed" allowFullScreen></iframe>
|
205 |
+
</div>
|
206 |
+
<div class="output" id="recommendationsOutput">
|
207 |
+
<!-- This section will be dynamically updated with recommendations -->
|
208 |
+
|
209 |
+
|
210 |
+
</div>
|
211 |
+
|
212 |
+
|
213 |
+
</div>
|
214 |
+
|
215 |
+
|
216 |
+
<footer class="footer">
|
217 |
+
<p>Bringing together the art of coffee and the precision of data science. © 2024 Starbucks Drink Recommendation App by <a href="https://www.linkedin.com/in/nihithnath/">Nihith</a>. All rights reserved. </p>
|
218 |
+
</footer>
|
219 |
+
|
220 |
+
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha384-ZvpUoO/+PpLXR1lu4jmpXWu80pZlYUAfxl5NsBMWOEPSjUn/6Z/hRTt8+pR6L4N2" crossorigin="anonymous"></script>
|
221 |
+
|
222 |
+
<!-- Your custom JavaScript -->
|
223 |
+
<script src="{{ url_for('static', filename='script.js') }}"></script>
|
224 |
+
</body>
|
225 |
+
</html>
|
templates/index_copy.html
ADDED
@@ -0,0 +1,178 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Starbucks Drink Recommendation</title>
|
7 |
+
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
8 |
+
</head>
|
9 |
+
<body>
|
10 |
+
<header>
|
11 |
+
<h1>Starbucks Drink Recommendation System by Nihith</h1>
|
12 |
+
</header>
|
13 |
+
<div class="content">
|
14 |
+
<h3>Select Your Favorite Drinks:</h3>
|
15 |
+
<form action="/recommend" method="POST">
|
16 |
+
<div class="sections">
|
17 |
+
<div class="section">
|
18 |
+
<img src="{{ url_for('static', filename='images/hot_coffees.jpg') }}" alt="Hot Coffees"><br>
|
19 |
+
<h4>Hot Coffees</h4><br>
|
20 |
+
<label><input type="checkbox" name="selected_drinks" value="Americano"> Americano</label><br>
|
21 |
+
<label><input type="checkbox" name="selected_drinks" value="Blonde Vanilla Latte"> Blonde Vanilla Latte</label><br>
|
22 |
+
<label><input type="checkbox" name="selected_drinks" value="Caffe Latte"> Caffe Latte</label><br>
|
23 |
+
<label><input type="checkbox" name="selected_drinks" value="Caffe Mocha"> Caffe Mocha</label><br>
|
24 |
+
<label><input type="checkbox" name="selected_drinks" value="Cappuccino"> Cappuccino</label><br>
|
25 |
+
<label><input type="checkbox" name="selected_drinks" value="Caramel Macchiato"> Caramel Macchiato</label><br>
|
26 |
+
<label><input type="checkbox" name="selected_drinks" value="Cinnamon Dolce Latte"> Cinnamon Dolce Latte</label><br>
|
27 |
+
<label><input type="checkbox" name="selected_drinks" value="Dark Chocolate Mocha Reserve"> Dark Chocolate Mocha Reserve</label><br>
|
28 |
+
<label><input type="checkbox" name="selected_drinks" value="Drip Brew Coffee"> Drip Brew Coffee</label><br>
|
29 |
+
<label><input type="checkbox" name="selected_drinks" value="Espresso"> Espresso</label><br>
|
30 |
+
<label><input type="checkbox" name="selected_drinks" value="Espresso Con Panna"> Espresso Con Panna</label><br>
|
31 |
+
<label><input type="checkbox" name="selected_drinks" value="Espresso Macchiato"> Espresso Macchiato</label><br>
|
32 |
+
<label><input type="checkbox" name="selected_drinks" value="Flat White"> Flat White</label><br>
|
33 |
+
<label><input type="checkbox" name="selected_drinks" value="Hazelnut Bianco Latte Reserve"> Hazelnut Bianco Latte Reserve</label><br>
|
34 |
+
<label><input type="checkbox" name="selected_drinks" value="Honey Almondmilk Flat White"> Honey Almondmilk Flat White</label><br>
|
35 |
+
<label><input type="checkbox" name="selected_drinks" value="Latte Reserve"> Latte Reserve</label><br>
|
36 |
+
<label><input type="checkbox" name="selected_drinks" value="White Chocolate Mocha"> White Chocolate Mocha</label><br>
|
37 |
+
</div>
|
38 |
+
|
39 |
+
<div class="section">
|
40 |
+
<img src="{{ url_for('static', filename='images/hot_teas.jpg') }}" alt="Hot Teas"><br>
|
41 |
+
<h4>Hot Teas</h4><br>
|
42 |
+
<label><input type="checkbox" name="selected_drinks" value="Chai Tea"> Chai Tea</label><br>
|
43 |
+
<label><input type="checkbox" name="selected_drinks" value="Chai Tea Latte"> Chai Tea Latte</label><br>
|
44 |
+
<label><input type="checkbox" name="selected_drinks" value="Earl Grey Tea"> Earl Grey Tea</label><br>
|
45 |
+
<label><input type="checkbox" name="selected_drinks" value="Emperors Cloud & Mist"> Emperors Cloud & Mist</label><br>
|
46 |
+
<label><input type="checkbox" name="selected_drinks" value="English Breakfast Tea"> English Breakfast Tea</label><br>
|
47 |
+
<label><input type="checkbox" name="selected_drinks" value="English Tea Latte"> English Tea Latte</label><br>
|
48 |
+
<label><input type="checkbox" name="selected_drinks" value="Honey Citrus Mint Tea"> Honey Citrus Mint Tea</label><br>
|
49 |
+
<label><input type="checkbox" name="selected_drinks" value="Jade Citrus Mint Tea"> Jade Citrus Mint Tea</label><br>
|
50 |
+
<label><input type="checkbox" name="selected_drinks" value="London Fog Tea Latte"> London Fog Tea Latte</label><br>
|
51 |
+
<label><input type="checkbox" name="selected_drinks" value="Mango Black Tea"> Mango Black Tea</label><br>
|
52 |
+
<label><input type="checkbox" name="selected_drinks" value="Matcha Tea Latte"> Matcha Tea Latte</label><br>
|
53 |
+
<label><input type="checkbox" name="selected_drinks" value="Mint Majesty Tea"> Mint Majesty Tea</label><br>
|
54 |
+
<label><input type="checkbox" name="selected_drinks" value="Peach Tranquility Tea"> Peach Tranquility Tea</label><br>
|
55 |
+
</div>
|
56 |
+
|
57 |
+
<div class="section">
|
58 |
+
<img src="{{ url_for('static', filename='images/hot_drinks.jpg') }}" alt="Hot Drinks"><br>
|
59 |
+
<h4>Hot Drinks</h4><br>
|
60 |
+
<label><input type="checkbox" name="selected_drinks" value="Caramel Apple Spice"> Caramel Apple Spice</label><br>
|
61 |
+
<label><input type="checkbox" name="selected_drinks" value="Hot Chocolate"> Hot Chocolate</label><br>
|
62 |
+
<label><input type="checkbox" name="selected_drinks" value="Steamed Apple Juice"> Steamed Apple Juice</label><br>
|
63 |
+
<label><input type="checkbox" name="selected_drinks" value="Steamed Milk"> Steamed Milk</label><br>
|
64 |
+
<label><input type="checkbox" name="selected_drinks" value="Vanilla Creme"> Vanilla Creme</label><br>
|
65 |
+
<label><input type="checkbox" name="selected_drinks" value="White Hot Chocolate"> White Hot Chocolate</label><br>
|
66 |
+
</div>
|
67 |
+
|
68 |
+
<div class="section">
|
69 |
+
<img src="{{ url_for('static', filename='images/frappuccinos.jpg') }}" alt="Frappuccinos"><br>
|
70 |
+
<h4>Frappuccinos</h4><br>
|
71 |
+
<label><input type="checkbox" name="selected_drinks" value="Caffe Vanilla Frappuccino"> Caffe Vanilla Frappuccino</label><br>
|
72 |
+
<label><input type="checkbox" name="selected_drinks" value="Caramel Frappuccino"> Caramel Frappuccino</label><br>
|
73 |
+
<label><input type="checkbox" name="selected_drinks" value="Caramel Ribbon Crunch Creme Frappuccino"> Caramel Ribbon Crunch Creme Frappuccino</label><br>
|
74 |
+
<label><input type="checkbox" name="selected_drinks" value="Caramel Ribbon Crunch Frappuccino"> Caramel Ribbon Crunch Frappuccino</label><br>
|
75 |
+
<label><input type="checkbox" name="selected_drinks" value="Chai Creme Frappuccino"> Chai Creme Frappuccino</label><br>
|
76 |
+
<label><input type="checkbox" name="selected_drinks" value="Chocolate Cookie Crumble Creme Frappuccino"> Chocolate Cookie Crumble Creme Frappuccino</label><br>
|
77 |
+
<label><input type="checkbox" name="selected_drinks" value="Chocolate Java Mint Frappuccino"> Chocolate Java Mint Frappuccino</label><br>
|
78 |
+
<label><input type="checkbox" name="selected_drinks" value="Chocolate Mint Creme Frappuccino"> Chocolate Mint Creme Frappuccino</label><br>
|
79 |
+
<label><input type="checkbox" name="selected_drinks" value="Coffee Frappuccino"> Coffee Frappuccino</label><br>
|
80 |
+
<label><input type="checkbox" name="selected_drinks" value="Double Chocolaty Chip Creme Frappuccino"> Double Chocolaty Chip Creme Frappuccino</label><br>
|
81 |
+
<label><input type="checkbox" name="selected_drinks" value="Espresso Frappuccino"> Espresso Frappuccino</label><br>
|
82 |
+
<label><input type="checkbox" name="selected_drinks" value="Java Chip Frappuccino"> Java Chip Frappuccino</label><br>
|
83 |
+
<label><input type="checkbox" name="selected_drinks" value="Matcha Creme Frappuccino"> Matcha Creme Frappuccino</label><br>
|
84 |
+
<label><input type="checkbox" name="selected_drinks" value="Mocha Cookie Crumble Frappuccino"> Mocha Cookie Crumble Frappuccino</label><br>
|
85 |
+
<label><input type="checkbox" name="selected_drinks" value="Mocha Frappuccino"> Mocha Frappuccino</label><br>
|
86 |
+
<label><input type="checkbox" name="selected_drinks" value="Strawberry Creme Frappuccino"> Strawberry Creme Frappuccino</label><br>
|
87 |
+
<label><input type="checkbox" name="selected_drinks" value="Vanilla Bean Creme Frappuccino"> Vanilla Bean Creme Frappuccino</label><br>
|
88 |
+
<label><input type="checkbox" name="selected_drinks" value="White Chocolate Creme Frappuccino"> White Chocolate Creme Frappuccino</label><br>
|
89 |
+
<label><input type="checkbox" name="selected_drinks" value="White Chocolate Mocha Frappuccino"> White Chocolate Mocha Frappuccino</label><br>
|
90 |
+
|
91 |
+
</div>
|
92 |
+
|
93 |
+
<div class="section">
|
94 |
+
<img src="{{ url_for('static', filename='images/cold_coffees.jpg') }}" alt="Cold Coffees"><br>
|
95 |
+
<h4>Cold Coffees</h4><br>
|
96 |
+
<label><input type="checkbox" name="selected_drinks" value="Chocolate Cream Cold Brew"> Chocolate Cream Cold Brew</label><br>
|
97 |
+
<label><input type="checkbox" name="selected_drinks" value="Cinnamon Caramel Cream Cold Brew"> Cinnamon Caramel Cream Cold Brew</label><br>
|
98 |
+
<label><input type="checkbox" name="selected_drinks" value="Cinnamon Caramel Cream Nitro Cold Brew"> Cinnamon Caramel Cream Nitro Cold Brew</label><br>
|
99 |
+
<label><input type="checkbox" name="selected_drinks" value="Cold Brew"> Cold Brew</label><br>
|
100 |
+
<label><input type="checkbox" name="selected_drinks" value="Cold Brew Coffee with Milk"> Cold Brew Coffee with Milk</label><br>
|
101 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Americano"> Iced Americano</label><br>
|
102 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Blonde Vanilla Latte"> Iced Blonde Vanilla Latte</label><br>
|
103 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Brown Sugar Oatmilk Shaken Espresso"> Iced Brown Sugar Oatmilk Shaken Espresso</label><br>
|
104 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Caffe Latte"> Iced Caffe Latte</label><br>
|
105 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Chai Tea Latte"> Iced Chai Tea Latte</label><br>
|
106 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Chocolate Almondmilk Shaken Espresso"> Iced Chocolate Almondmilk Shaken Espresso</label><br>
|
107 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Cinnamon Dolce Latte"> Iced Cinnamon Dolce Latte</label><br>
|
108 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Coffee"> Iced Coffee</label><br>
|
109 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Coffee with Milk"> Iced Coffee with Milk</label><br>
|
110 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Espresso"> Iced Espresso</label><br>
|
111 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Flat White"> Iced Flat White</label><br>
|
112 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Hazelnut Bianco Latte Reserve"> Iced Hazelnut Bianco Latte Reserve</label><br>
|
113 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Honey Almondmilk Flat White"> Iced Honey Almondmilk Flat White</label><br>
|
114 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Latte Reserve"> Iced Latte Reserve</label><br>
|
115 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Shaken Espresso"> Iced Shaken Espresso</label><br>
|
116 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Toasted Vanilla Oatmilk Shaken Espresso"> Iced Toasted Vanilla Oatmilk Shaken Espresso</label><br>
|
117 |
+
<label><input type="checkbox" name="selected_drinks" value="Nitro Cold Brew"> Nitro Cold Brew</label><br>
|
118 |
+
<label><input type="checkbox" name="selected_drinks" value="Salted Caramel Cream Cold Brew"> Salted Caramel Cream Cold Brew</label><br>
|
119 |
+
<label><input type="checkbox" name="selected_drinks" value="Vanilla Sweet Cream Cold Brew"> Vanilla Sweet Cream Cold Brew</label><br>
|
120 |
+
<label><input type="checkbox" name="selected_drinks" value="Vanilla Sweet Cream Nitro Cold Brew"> Vanilla Sweet Cream Nitro Cold Brew</label><br>
|
121 |
+
<label><input type="checkbox" name="selected_drinks" value="White Chocolate Macadamia Cream Cold Brew"> White Chocolate Macadamia Cream Cold Brew</label><br>
|
122 |
+
</div>
|
123 |
+
|
124 |
+
<div class="section">
|
125 |
+
<img src="{{ url_for('static', filename='images/iced_teas.jpg') }}" alt="Iced Teas and Lemonade"><br>
|
126 |
+
<h4>Iced Teas and Lemonade</h4><br>
|
127 |
+
<label><input type="checkbox" name="selected_drinks" value="Lemonade"> Lemonade</label><br>
|
128 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Black Tea"> Iced Black Tea</label><br>
|
129 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Black Tea Lemonade"> Iced Black Tea Lemonade</label><br>
|
130 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Green Tea"> Iced Green Tea</label><br>
|
131 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Green Tea Lemonade"> Iced Green Tea Lemonade</label><br>
|
132 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced London Fog Tea Latte"> Iced London Fog Tea Latte</label><br>
|
133 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Matcha Lemonade"> Iced Matcha Lemonade</label><br>
|
134 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Matcha Tea Latte"> Iced Matcha Tea Latte</label><br>
|
135 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Passion Tango Tea"> Iced Passion Tango Tea</label><br>
|
136 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Passion Tango Tea Lemonade"> Iced Passion Tango Tea Lemonade</label><br>
|
137 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Peach Green Tea"> Iced Peach Green Tea</label><br>
|
138 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Peach Green Tea Lemonade"> Iced Peach Green Tea Lemonade</label><br>
|
139 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Royal English Breakfast Tea Latte"> Iced Royal English Breakfast Tea Latte</label><br>
|
140 |
+
<label><input type="checkbox" name="selected_drinks" value="Sparkling Unsweetened Peach Green Tea"> Sparkling Unsweetened Peach Green Tea</label><br>
|
141 |
+
</div>
|
142 |
+
|
143 |
+
<div class="section">
|
144 |
+
<img src="{{ url_for('static', filename='images/refreshers.jpg') }}" alt="Starbucks Refreshers® Beverages"><br>
|
145 |
+
<h4>Starbucks Refreshers® Beverages</h4><br>
|
146 |
+
<label><input type="checkbox" name="selected_drinks" value="Blended Strawberry Lemonade"> Blended Strawberry Lemonade</label><br>
|
147 |
+
<label><input type="checkbox" name="selected_drinks" value="Dragon Drink Refreshers"> Dragon Drink Refreshers</label><br>
|
148 |
+
<label><input type="checkbox" name="selected_drinks" value="Frozen Mango Dragonfruit Lemonade"> Frozen Mango Dragonfruit Lemonade</label><br>
|
149 |
+
<label><input type="checkbox" name="selected_drinks" value="Frozen Pineapple Passionfruit Lemonade"> Frozen Pineapple Passionfruit Lemonade</label><br>
|
150 |
+
<label><input type="checkbox" name="selected_drinks" value="Frozen Strawberry Açaí Lemonade"> Frozen Strawberry Açaí Lemonade</label><br>
|
151 |
+
<label><input type="checkbox" name="selected_drinks" value="Mango Dragonfruit Lemonade Refreshers"> Mango Dragonfruit Lemonade Refreshers</label><br>
|
152 |
+
<label><input type="checkbox" name="selected_drinks" value="Mango Dragonfruit Refreshers"> Mango Dragonfruit Refreshers</label><br>
|
153 |
+
<label><input type="checkbox" name="selected_drinks" value="Paradise Drink"> Paradise Drink</label><br>
|
154 |
+
<label><input type="checkbox" name="selected_drinks" value="Pineapple Passionfruit"> Pineapple Passionfruit</label><br>
|
155 |
+
<label><input type="checkbox" name="selected_drinks" value="Pink Drink"> Pink Drink</label><br>
|
156 |
+
<label><input type="checkbox" name="selected_drinks" value="Strawberry Açaí Lemonade Refreshers"> Strawberry Açaí Lemonade Refreshers</label><br>
|
157 |
+
<label><input type="checkbox" name="selected_drinks" value="Strawberry Açaí Refreshers"> Strawberry Açaí Refreshers</label><br>
|
158 |
+
</div>
|
159 |
+
</div>
|
160 |
+
|
161 |
+
<h3>I am Craving </h3>
|
162 |
+
<div class="form-group">
|
163 |
+
<label><input type="checkbox" name="include_all"> Everything</label><br>
|
164 |
+
<label><input type="checkbox" name="include_coffee"> Only Coffee</label><br>
|
165 |
+
<label><input type="checkbox" name="include_tea"> Only Tea</label><br>
|
166 |
+
<label><input type="checkbox" name="include_neither"> Neither Coffee Nor Tea</label><br>
|
167 |
+
<label><input type="checkbox" name="include_hot"> Something Hot to sip</label><br>
|
168 |
+
<label><input type="checkbox" name="include_cold"> Some Cold Drink to chill</label><br>
|
169 |
+
<label><input type="checkbox" name="include_frozen"> Something Frozen</label><br>
|
170 |
+
</div>
|
171 |
+
<input type="submit" value="Get Recommendations">
|
172 |
+
</form>
|
173 |
+
<div class="recommendations" id="recommendations">
|
174 |
+
<!-- Recommendations will be displayed here -->
|
175 |
+
</div>
|
176 |
+
</div>
|
177 |
+
</body>
|
178 |
+
</html>
|
templates/index_cpy2.html
ADDED
@@ -0,0 +1,226 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Starbucks Drink Recommendation</title>
|
7 |
+
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
8 |
+
</head>
|
9 |
+
<body>
|
10 |
+
<header>
|
11 |
+
<h1>Starbucks Drink Recommendation System by Nihith</h1>
|
12 |
+
</header>
|
13 |
+
<div class="content">
|
14 |
+
<h3>Select Your Favorite Drinks:</h3>
|
15 |
+
<form action="/recommend" method="POST">
|
16 |
+
<div class="sections">
|
17 |
+
<div class="section">
|
18 |
+
<img src="{{ url_for('static', filename='images/hot_coffees.jpg') }}" alt="Hot Coffees"><br>
|
19 |
+
<h4>Hot Coffees</h4><br>
|
20 |
+
<label><input type="checkbox" name="selected_drinks" value="Americano"> Americano</label>
|
21 |
+
<label><input type="checkbox" name="selected_drinks" value="Blonde Vanilla Latte"> Blonde Vanilla Latte</label>
|
22 |
+
<label><input type="checkbox" name="selected_drinks" value="Caffe Latte"> Caffe Latte</label>
|
23 |
+
<label><input type="checkbox" name="selected_drinks" value="Caffe Mocha"> Caffe Mocha</label>
|
24 |
+
<label><input type="checkbox" name="selected_drinks" value="Cappuccino"> Cappuccino</label>
|
25 |
+
<label><input type="checkbox" name="selected_drinks" value="Caramel Macchiato"> Caramel Macchiato</label>
|
26 |
+
<label><input type="checkbox" name="selected_drinks" value="Cinnamon Dolce Latte"> Cinnamon Dolce Latte</label>
|
27 |
+
<label><input type="checkbox" name="selected_drinks" value="Dark Chocolate Mocha Reserve"> Dark Chocolate Mocha Reserve</label>
|
28 |
+
<label><input type="checkbox" name="selected_drinks" value="Drip Brew Coffee"> Drip Brew Coffee</label>
|
29 |
+
<label><input type="checkbox" name="selected_drinks" value="Espresso"> Espresso</label>
|
30 |
+
<label><input type="checkbox" name="selected_drinks" value="Espresso Con Panna"> Espresso Con Panna</label>
|
31 |
+
<label><input type="checkbox" name="selected_drinks" value="Espresso Macchiato"> Espresso Macchiato</label>
|
32 |
+
<label><input type="checkbox" name="selected_drinks" value="Flat White"> Flat White</label>
|
33 |
+
<label><input type="checkbox" name="selected_drinks" value="Hazelnut Bianco Latte Reserve"> Hazelnut Bianco Latte Reserve</label>
|
34 |
+
<label><input type="checkbox" name="selected_drinks" value="Honey Almondmilk Flat White"> Honey Almondmilk Flat White</label>
|
35 |
+
<label><input type="checkbox" name="selected_drinks" value="Latte Reserve"> Latte Reserve</label>
|
36 |
+
<label><input type="checkbox" name="selected_drinks" value="White Chocolate Mocha"> White Chocolate Mocha</label>
|
37 |
+
<br>
|
38 |
+
<img src="{{ url_for('static', filename='images/hot_drinks.jpg') }}" alt="Hot Drinks"><br>
|
39 |
+
<h4>Hot Drinks</h4><br>
|
40 |
+
<label><input type="checkbox" name="selected_drinks" value="Caramel Apple Spice"> Caramel Apple Spice</label>
|
41 |
+
<label><input type="checkbox" name="selected_drinks" value="Hot Chocolate"> Hot Chocolate</label>
|
42 |
+
<label><input type="checkbox" name="selected_drinks" value="Steamed Apple Juice"> Steamed Apple Juice</label>
|
43 |
+
<label><input type="checkbox" name="selected_drinks" value="Steamed Milk"> Steamed Milk</label>
|
44 |
+
<label><input type="checkbox" name="selected_drinks" value="Vanilla Creme"> Vanilla Creme</label>
|
45 |
+
<label><input type="checkbox" name="selected_drinks" value="White Hot Chocolate"> White Hot Chocolate</label>
|
46 |
+
</div>
|
47 |
+
|
48 |
+
<div class="section">
|
49 |
+
<img src="{{ url_for('static', filename='images/hot_teas.jpg') }}" alt="Hot Teas"><br>
|
50 |
+
<h4>Hot Teas</h4><br>
|
51 |
+
<label><input type="checkbox" name="selected_drinks" value="Chai Tea"> Chai Tea</label>
|
52 |
+
<label><input type="checkbox" name="selected_drinks" value="Chai Tea Latte"> Chai Tea Latte</label>
|
53 |
+
<label><input type="checkbox" name="selected_drinks" value="Earl Grey Tea"> Earl Grey Tea</label>
|
54 |
+
<label><input type="checkbox" name="selected_drinks" value="Emperors Cloud & Mist"> Emperors Cloud & Mist</label>
|
55 |
+
<label><input type="checkbox" name="selected_drinks" value="English Breakfast Tea"> English Breakfast Tea</label>
|
56 |
+
<label><input type="checkbox" name="selected_drinks" value="English Tea Latte"> English Tea Latte</label>
|
57 |
+
<label><input type="checkbox" name="selected_drinks" value="Honey Citrus Mint Tea"> Honey Citrus Mint Tea</label>
|
58 |
+
<label><input type="checkbox" name="selected_drinks" value="Jade Citrus Mint Tea"> Jade Citrus Mint Tea</label>
|
59 |
+
<label><input type="checkbox" name="selected_drinks" value="London Fog Tea Latte"> London Fog Tea Latte</label>
|
60 |
+
<label><input type="checkbox" name="selected_drinks" value="Mango Black Tea"> Mango Black Tea</label>
|
61 |
+
<label><input type="checkbox" name="selected_drinks" value="Matcha Tea Latte"> Matcha Tea Latte</label>
|
62 |
+
<label><input type="checkbox" name="selected_drinks" value="Mint Majesty Tea"> Mint Majesty Tea</label>
|
63 |
+
<label><input type="checkbox" name="selected_drinks" value="Peach Tranquility Tea"> Peach Tranquility Tea</label>
|
64 |
+
<br>
|
65 |
+
<br>
|
66 |
+
<img src="{{ url_for('static', filename='images/refreshers.jpg') }}" alt="Starbucks Refreshers® Beverages"><br>
|
67 |
+
<h4>Starbucks Refreshers® Beverages</h4><br>
|
68 |
+
<label><input type="checkbox" name="selected_drinks" value="Blended Strawberry Lemonade"> Blended Strawberry Lemonade</label>
|
69 |
+
<label><input type="checkbox" name="selected_drinks" value="Dragon Drink Refreshers"> Dragon Drink Refreshers</label>
|
70 |
+
<label><input type="checkbox" name="selected_drinks" value="Frozen Mango Dragonfruit Lemonade"> Frozen Mango Dragonfruit Lemonade</label>
|
71 |
+
<label><input type="checkbox" name="selected_drinks" value="Frozen Pineapple Passionfruit Lemonade"> Frozen Pineapple Passionfruit Lemonade</label>
|
72 |
+
<label><input type="checkbox" name="selected_drinks" value="Frozen Strawberry Açaí Lemonade"> Frozen Strawberry Açaí Lemonade</label>
|
73 |
+
<label><input type="checkbox" name="selected_drinks" value="Mango Dragonfruit Lemonade Refreshers"> Mango Dragonfruit Lemonade Refreshers</label>
|
74 |
+
<label><input type="checkbox" name="selected_drinks" value="Mango Dragonfruit Refreshers"> Mango Dragonfruit Refreshers</label>
|
75 |
+
<label><input type="checkbox" name="selected_drinks" value="Paradise Drink"> Paradise Drink</label>
|
76 |
+
<label><input type="checkbox" name="selected_drinks" value="Pineapple Passionfruit"> Pineapple Passionfruit</label>
|
77 |
+
<label><input type="checkbox" name="selected_drinks" value="Pink Drink"> Pink Drink</label>
|
78 |
+
<label><input type="checkbox" name="selected_drinks" value="Strawberry Açaí Lemonade Refreshers"> Strawberry Açaí Lemonade Refreshers</label>
|
79 |
+
<label><input type="checkbox" name="selected_drinks" value="Strawberry Açaí Refreshers"> Strawberry Açaí Refreshers</label>
|
80 |
+
</div>
|
81 |
+
|
82 |
+
|
83 |
+
|
84 |
+
<div class="section">
|
85 |
+
<img src="{{ url_for('static', filename='images/frappuccinos.jpg') }}" alt="Frappuccinos"><br>
|
86 |
+
<h4>Frappuccinos</h4><br>
|
87 |
+
<label><input type="checkbox" name="selected_drinks" value="Caffe Vanilla Frappuccino"> Caffe Vanilla Frappuccino</label>
|
88 |
+
<label><input type="checkbox" name="selected_drinks" value="Caramel Frappuccino"> Caramel Frappuccino</label>
|
89 |
+
<label><input type="checkbox" name="selected_drinks" value="Caramel Ribbon Crunch Creme Frappuccino"> Caramel Ribbon Crunch Creme Frappuccino</label>
|
90 |
+
<label><input type="checkbox" name="selected_drinks" value="Caramel Ribbon Crunch Frappuccino"> Caramel Ribbon Crunch Frappuccino</label>
|
91 |
+
<label><input type="checkbox" name="selected_drinks" value="Chai Creme Frappuccino"> Chai Creme Frappuccino</label>
|
92 |
+
<label><input type="checkbox" name="selected_drinks" value="Chocolate Cookie Crumble Creme Frappuccino"> Chocolate Cookie Crumble Creme Frappuccino</label>
|
93 |
+
<label><input type="checkbox" name="selected_drinks" value="Chocolate Java Mint Frappuccino"> Chocolate Java Mint Frappuccino</label>
|
94 |
+
<label><input type="checkbox" name="selected_drinks" value="Chocolate Mint Creme Frappuccino"> Chocolate Mint Creme Frappuccino</label>
|
95 |
+
<label><input type="checkbox" name="selected_drinks" value="Coffee Frappuccino"> Coffee Frappuccino</label>
|
96 |
+
<label><input type="checkbox" name="selected_drinks" value="Double Chocolaty Chip Creme Frappuccino"> Double Chocolaty Chip Creme Frappuccino</label>
|
97 |
+
<label><input type="checkbox" name="selected_drinks" value="Espresso Frappuccino"> Espresso Frappuccino</label>
|
98 |
+
<label><input type="checkbox" name="selected_drinks" value="Java Chip Frappuccino"> Java Chip Frappuccino</label>
|
99 |
+
<label><input type="checkbox" name="selected_drinks" value="Matcha Creme Frappuccino"> Matcha Creme Frappuccino</label>
|
100 |
+
<label><input type="checkbox" name="selected_drinks" value="Mocha Cookie Crumble Frappuccino"> Mocha Cookie Crumble Frappuccino</label>
|
101 |
+
<label><input type="checkbox" name="selected_drinks" value="Mocha Frappuccino"> Mocha Frappuccino</label>
|
102 |
+
<label><input type="checkbox" name="selected_drinks" value="Strawberry Creme Frappuccino"> Strawberry Creme Frappuccino</label>
|
103 |
+
<label><input type="checkbox" name="selected_drinks" value="Vanilla Bean Creme Frappuccino"> Vanilla Bean Creme Frappuccino</label>
|
104 |
+
<label><input type="checkbox" name="selected_drinks" value="White Chocolate Creme Frappuccino"> White Chocolate Creme Frappuccino</label>
|
105 |
+
<label><input type="checkbox" name="selected_drinks" value="White Chocolate Mocha Frappuccino"> White Chocolate Mocha Frappuccino</label>
|
106 |
+
|
107 |
+
</div>
|
108 |
+
|
109 |
+
<div class="section">
|
110 |
+
<img src="{{ url_for('static', filename='images/cold_coffees.jpg') }}" alt="Cold Coffees"><br>
|
111 |
+
<h4>Cold Coffees</h4><br>
|
112 |
+
<label><input type="checkbox" name="selected_drinks" value="Chocolate Cream Cold Brew"> Chocolate Cream Cold Brew</label>
|
113 |
+
<label><input type="checkbox" name="selected_drinks" value="Cinnamon Caramel Cream Cold Brew"> Cinnamon Caramel Cream Cold Brew</label>
|
114 |
+
<label><input type="checkbox" name="selected_drinks" value="Cinnamon Caramel Cream Nitro Cold Brew"> Cinnamon Caramel Cream Nitro Cold Brew</label>
|
115 |
+
<label><input type="checkbox" name="selected_drinks" value="Cold Brew"> Cold Brew</label>
|
116 |
+
<label><input type="checkbox" name="selected_drinks" value="Cold Brew Coffee with Milk"> Cold Brew Coffee with Milk</label>
|
117 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Americano"> Iced Americano</label>
|
118 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Blonde Vanilla Latte"> Iced Blonde Vanilla Latte</label>
|
119 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Brown Sugar Oatmilk Shaken Espresso"> Iced Brown Sugar Oatmilk Shaken Espresso</label>
|
120 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Caffe Latte"> Iced Caffe Latte</label>
|
121 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Chai Tea Latte"> Iced Chai Tea Latte</label>
|
122 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Chocolate Almondmilk Shaken Espresso"> Iced Chocolate Almondmilk Shaken Espresso</label>
|
123 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Cinnamon Dolce Latte"> Iced Cinnamon Dolce Latte</label>
|
124 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Coffee"> Iced Coffee</label>
|
125 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Coffee with Milk"> Iced Coffee with Milk</label>
|
126 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Espresso"> Iced Espresso</label>
|
127 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Flat White"> Iced Flat White</label>
|
128 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Hazelnut Bianco Latte Reserve"> Iced Hazelnut Bianco Latte Reserve</label>
|
129 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Honey Almondmilk Flat White"> Iced Honey Almondmilk Flat White</label>
|
130 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Latte Reserve"> Iced Latte Reserve</label>
|
131 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Shaken Espresso"> Iced Shaken Espresso</label>
|
132 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Toasted Vanilla Oatmilk Shaken Espresso"> Iced Toasted Vanilla Oatmilk Shaken Espresso</label>
|
133 |
+
<label><input type="checkbox" name="selected_drinks" value="Nitro Cold Brew"> Nitro Cold Brew</label>
|
134 |
+
<label><input type="checkbox" name="selected_drinks" value="Salted Caramel Cream Cold Brew"> Salted Caramel Cream Cold Brew</label>
|
135 |
+
<label><input type="checkbox" name="selected_drinks" value="Vanilla Sweet Cream Cold Brew"> Vanilla Sweet Cream Cold Brew</label>
|
136 |
+
<label><input type="checkbox" name="selected_drinks" value="Vanilla Sweet Cream Nitro Cold Brew"> Vanilla Sweet Cream Nitro Cold Brew</label>
|
137 |
+
<label><input type="checkbox" name="selected_drinks" value="White Chocolate Macadamia Cream Cold Brew"> White Chocolate Macadamia Cream Cold Brew</label>
|
138 |
+
</div>
|
139 |
+
|
140 |
+
<div class="section">
|
141 |
+
<img src="{{ url_for('static', filename='images/iced_teas.jpg') }}" alt="Iced Teas and Lemonade"><br>
|
142 |
+
<h4>Iced Teas and Lemonade</h4><br>
|
143 |
+
<label><input type="checkbox" name="selected_drinks" value="Lemonade"> Lemonade</label>
|
144 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Black Tea"> Iced Black Tea</label>
|
145 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Black Tea Lemonade"> Iced Black Tea Lemonade</label>
|
146 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Green Tea"> Iced Green Tea</label>
|
147 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Green Tea Lemonade"> Iced Green Tea Lemonade</label>
|
148 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced London Fog Tea Latte"> Iced London Fog Tea Latte</label>
|
149 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Matcha Lemonade"> Iced Matcha Lemonade</label>
|
150 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Matcha Tea Latte"> Iced Matcha Tea Latte</label>
|
151 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Passion Tango Tea"> Iced Passion Tango Tea</label>
|
152 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Passion Tango Tea Lemonade"> Iced Passion Tango Tea Lemonade</label>
|
153 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Peach Green Tea"> Iced Peach Green Tea</label>
|
154 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Peach Green Tea Lemonade"> Iced Peach Green Tea Lemonade</label>
|
155 |
+
<label><input type="checkbox" name="selected_drinks" value="Iced Royal English Breakfast Tea Latte"> Iced Royal English Breakfast Tea Latte</label>
|
156 |
+
<label><input type="checkbox" name="selected_drinks" value="Sparkling Unsweetened Peach Green Tea"> Sparkling Unsweetened Peach Green Tea</label>
|
157 |
+
</div>
|
158 |
+
|
159 |
+
</div>
|
160 |
+
</div>
|
161 |
+
<div id="filters">
|
162 |
+
<h3 id="craving_text">I am Craving</h3>
|
163 |
+
<div class="form-group">
|
164 |
+
<button type="button" class="btn btn-outline-primary mr-2 mb-2 toggle-button" name="include_all">Everything</button><br>
|
165 |
+
<button type="button" class="btn btn-outline-primary mr-2 mb-2 toggle-button" name="include_coffee"> Coffee</button><br>
|
166 |
+
<button type="button" class="btn btn-outline-primary mr-2 mb-2 toggle-button" name="include_tea"> Tea</button><br>
|
167 |
+
<button type="button" class="btn btn-outline-primary mr-2 mb-2 toggle-button" name="include_neither">Neither Coffee Nor Tea</button><br>
|
168 |
+
<button type="button" class="btn btn-outline-primary mr-2 mb-2 toggle-button" name="include_hot">Something Hot to Sip</button><br>
|
169 |
+
<button type="button" class="btn btn-outline-primary mr-2 mb-2 toggle-button" name="include_cold">Some Cold Drink to Chill</button><br>
|
170 |
+
<button type="button" class="btn btn-outline-primary mr-2 mb-2 toggle-button" name="include_frozen">Something Frozen</button><br>
|
171 |
+
</div>
|
172 |
+
<input type="hidden" name="n_recommendations" value="5">
|
173 |
+
</div>
|
174 |
+
|
175 |
+
<!-- Recommendations form -->
|
176 |
+
<form id="recommendationForm" action="/recommend" method="POST">
|
177 |
+
<!-- Add hidden input fields for filter values -->
|
178 |
+
<input type="hidden" name="include_all" value="">
|
179 |
+
<input type="hidden" name="include_coffee" value="">
|
180 |
+
<input type="hidden" name="include_tea" value="">
|
181 |
+
<input type="hidden" name="include_neither" value="">
|
182 |
+
<input type="hidden" name="include_hot" value="">
|
183 |
+
<input type="hidden" name="include_cold" value="">
|
184 |
+
<input type="hidden" name="include_frozen" value="">
|
185 |
+
<!-- Submit button -->
|
186 |
+
<input id="recommendations" type="submit" value="Brew My Recommendations" style="display: none;">
|
187 |
+
</form>
|
188 |
+
<div id="recommendations" class="recommendations"></div>
|
189 |
+
|
190 |
+
<!-- jQuery -->
|
191 |
+
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha384-ZvpUoO/+PpLXR1lu4jmpXWu80pZlYUAfxl5NsBMWOEPSjUn/6Z/hRTt8+pR6L4N2" crossorigin="anonymous"></script>
|
192 |
+
|
193 |
+
|
194 |
+
<script>
|
195 |
+
$(document).ready(function () {
|
196 |
+
console.log("Document ready!"); // Check if document is ready
|
197 |
+
|
198 |
+
$('.toggle-button').click(function () {
|
199 |
+
console.log("Button clicked:", this.name); // Check if button click is detected
|
200 |
+
$(this).toggleClass('active');
|
201 |
+
|
202 |
+
let hiddenInput = $('input[name="' + this.name + '"]');
|
203 |
+
if ($(this).hasClass('active')) {
|
204 |
+
hiddenInput.val('1');
|
205 |
+
} else {
|
206 |
+
hiddenInput.val('');
|
207 |
+
}
|
208 |
+
|
209 |
+
let anyActive = $('.toggle-button.active').length > 0;
|
210 |
+
if (anyActive) {
|
211 |
+
$('#recommendations').show();
|
212 |
+
} else {
|
213 |
+
$('#recommendations').hide();
|
214 |
+
}
|
215 |
+
});
|
216 |
+
});
|
217 |
+
</script>
|
218 |
+
|
219 |
+
|
220 |
+
<footer>
|
221 |
+
<p>© 2024 Starbucks Drink Recommendation App by Nihith. All rights reserved.</p>
|
222 |
+
</footer>
|
223 |
+
|
224 |
+
|
225 |
+
</body>
|
226 |
+
</html>
|
templates/recommendations.html
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
{% for recommendation in recommendations %}
|
2 |
+
<p>{{ recommendation }}</p>
|
3 |
+
{% endfor %}
|