diff --git a/src/templates/index.html b/src/templates/index.html index 0361612..437edad 100644 --- a/src/templates/index.html +++ b/src/templates/index.html @@ -115,6 +115,7 @@ function addProduct() { const foodInput = document.getElementById('my_combobox'); const weightInput = document.getElementById('weight'); + const portionsInput = document.getElementById('portions'); const food = foodInput.value; let weight = parseFloat(weightInput.value); const portions = Math.max(parseInt(portionsInput.value, 10), 1); // Stellt sicher, dass mindestens 1 Portion angegeben wird @@ -201,7 +202,7 @@ function updateTotalNutrition() { - +