Home
All recipes
About
document.querySelector('#search').focus( )); ">
Search
Find recipes by name, category or ingredients :
res.json()).then(res => { sessionStorage.setItem('searchResults', JSON.stringify(res)); searchResults = res; }); } " @input=" matches = []; if (searchInput.length < 3) { return }; searchResults.forEach(recipe => { const matchTitle = recipe.title.toLowerCase().includes(searchInput.toLowerCase()); const matchIngredient = recipe.ingredients.find(ingredient => ingredient.toLowerCase().includes(searchInput.toLowerCase())); const matchCategory = recipe.categories.find(category => category.toLowerCase().includes(searchInput.toLowerCase())); if (!matchTitle && !matchIngredient && !matchCategory) { return }; const match = {...recipe}; if (matchTitle) { match.matchTitle = matchTitle }; if (matchIngredient) { match.matchIngredient = matchIngredient }; if (matchCategory) { match.matchCategory = matchCategory }; matches.push(match) }); ">
Close
Contains:
Course › Dessert
Course › Dessert
Treat › Sweet
Mood › Favourite
Diet › Vegetarian
45 min
Simple brownies
All recipes
Course › Dessert
Course › Main
Course › Soup
Cuisine › Italian
Diet › Vegetarian
Mood › Favourite
Treat › Sweet