Rezeptsammlung
Familie Stumpp
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);
const matchIngredient = recipe.ingredients.find(ingredient => ingredient.toLowerCase().includes(searchInput));
const matchTag = recipe.tags.find(tag => tag.toLowerCase().includes(searchInput));
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)
});
">
Einige Lieblingsrezepte
⭐
🌿
🌱
55 min.
Brokkoliauflauf mit Süßkartoffeln
🇮🇹
🌿
⭐
🌊
50 min
Zucchini-Zitronen-Risotto
⭐
👩🍳
🥗
🌱
🌿
25 min.
Karottensalat
🍰
🍬
⭐
👨🍳
95 min
Marmorkuchen
⭐
✨
👩🍳
🇩🇪
40 min.
Ostberliner Schmorgurken
🍰
🍬
⭐
45 min.