From 1d0ad7f222e9e0317de65245c907d817c0d1fe80 Mon Sep 17 00:00:00 2001 From: Timon Ringwald Date: Fri, 9 Sep 2022 17:22:52 +0200 Subject: [PATCH] removed logs --- main.js | 7 +++---- style.css | 4 ---- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/main.js b/main.js index 37d62fc..a71e591 100644 --- a/main.js +++ b/main.js @@ -30,7 +30,7 @@ function initFoodList() { function onFoodSearched() { const food = foodSearch.value; const foodLC = food.toLowerCase(); - + if (food == "") { createSearchEntries([]); return; @@ -169,7 +169,6 @@ function updateFoodAmount(food, amount, kcalAmount, fatAmount, carbsAmount, suga sugarAmount.textContent = `${parseInt(sugar)}g`; proteinsAmount.textContent = `${parseInt(proteins)}g`; alcAmount.textContent = `${parseInt(alc)}g`; - console.log(`${food.name} has ${food.kcal}kcal/100${food.unit}`) updateSummary(); } @@ -223,7 +222,7 @@ function getScoreColor(density, unit) { return "green"; } } - + case "ml": { if (density >= 0.1) { return "red" @@ -232,4 +231,4 @@ function getScoreColor(density, unit) { } } } -} \ No newline at end of file +} diff --git a/style.css b/style.css index ffe6e7d..5439bc9 100644 --- a/style.css +++ b/style.css @@ -136,10 +136,6 @@ tfoot tr td { margin: 0 auto; } -/* .menu-item:not(:last-child) { - border-bottom: 1px solid lightgray; -} */ - .delete-menu-item, .summary-delete-icon { color: #cc3d3d;