Mel and Marjolein's Recipes
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 matchTag = recipe.tags.find(tag => tag.toLowerCase().includes(searchInput.toLowerCase()));
if (!matchTitle && !matchIngredient && !matchTag) { return };
const match = {...recipe};
if (matchTitle) { match.matchTitle = matchTitle };
if (matchIngredient) { match.matchIngredient = matchIngredient };
if (matchTag) { match.matchTag = matchTag };
matches.push(match)
});
">
   
Beef
Burgers 60° / 140°Rare 50° / 120°
Medium rare 55° / 130°
Medium 60° / 140°
Medium well 65° / 150°
Well done 70° / 160°
Pork
Cooked 60° / 140°Chops 65° / 150°
Poultry
Legs 75° / 165°Breast 65° / 150°






