parent
425ad27e18
commit
2feb961000
@ -0,0 +1,19 @@
|
||||
let {course, category, cuisine, ingredient, dateadded, theme, isfavourite, rating, cookingtime} = input;
|
||||
const iArray = [course, category, cuisine, ingredient, dateadded, theme, isfavourite, rating, cookingtime];
|
||||
const dArray = ["course", "category", "cuisine", "ingredient", "dateadded", "theme", "is favourite", "rating", "cooking time"];
|
||||
let TempS = ""
|
||||
|
||||
for (let i = 0; i < iArray.length; i++) {
|
||||
if (Boolean(iArray[i])) {
|
||||
if (TempS == "") {
|
||||
TempS = dArray[i] + ": " + "<b>" + iArray[i] + "</b>"
|
||||
} else {
|
||||
TempS = TempS + "\n• " + dArray[i] + ": " + "<b>" + iArray[i] + "</b>"
|
||||
}
|
||||
if (dArray[i].search(new RegExp("time", "i")) > -1) {
|
||||
TempS = TempS + " <b>min</b>"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dv.el('t', "<b>🔎 search terms:</b> \n• " + TempS);
|
Loading…
Reference in new issue