removed logs

This commit is contained in:
Timon Ringwald 2022-09-09 17:22:52 +02:00
parent ec8c086c14
commit 1d0ad7f222
2 changed files with 3 additions and 8 deletions

View File

@ -30,7 +30,7 @@ function initFoodList() {
function onFoodSearched() { function onFoodSearched() {
const food = foodSearch.value; const food = foodSearch.value;
const foodLC = food.toLowerCase(); const foodLC = food.toLowerCase();
if (food == "") { if (food == "") {
createSearchEntries([]); createSearchEntries([]);
return; return;
@ -169,7 +169,6 @@ function updateFoodAmount(food, amount, kcalAmount, fatAmount, carbsAmount, suga
sugarAmount.textContent = `${parseInt(sugar)}g`; sugarAmount.textContent = `${parseInt(sugar)}g`;
proteinsAmount.textContent = `${parseInt(proteins)}g`; proteinsAmount.textContent = `${parseInt(proteins)}g`;
alcAmount.textContent = `${parseInt(alc)}g`; alcAmount.textContent = `${parseInt(alc)}g`;
console.log(`${food.name} has ${food.kcal}kcal/100${food.unit}`)
updateSummary(); updateSummary();
} }
@ -223,7 +222,7 @@ function getScoreColor(density, unit) {
return "green"; return "green";
} }
} }
case "ml": { case "ml": {
if (density >= 0.1) { if (density >= 0.1) {
return "red" return "red"
@ -232,4 +231,4 @@ function getScoreColor(density, unit) {
} }
} }
} }
} }

View File

@ -136,10 +136,6 @@ tfoot tr td {
margin: 0 auto; margin: 0 auto;
} }
/* .menu-item:not(:last-child) {
border-bottom: 1px solid lightgray;
} */
.delete-menu-item, .delete-menu-item,
.summary-delete-icon { .summary-delete-icon {
color: #cc3d3d; color: #cc3d3d;