f
This commit is contained in:
parent
1fc9dd70df
commit
5f63092a67
@ -154,12 +154,12 @@ function updateTotalNutrition() {
|
||||
|
||||
// Durchlaufen aller Zeilen in der Haupttabelle und Addition der Werte
|
||||
Array.from(document.getElementById('nutrition-table').rows).slice(1).forEach(row => {
|
||||
totalKcal += parseFloat(row.cells[2].innerText);
|
||||
totalEw += parseFloat(row.cells[3].innerText);
|
||||
totalFett += parseFloat(row.cells[4].innerText);
|
||||
totalKh += parseFloat(row.cells[5].innerText);
|
||||
totalBst += parseFloat(row.cells[6].innerText);
|
||||
totalCa += parseFloat(row.cells[7].innerText);
|
||||
totalKcal += parseFloat(row.cells[4].innerText);
|
||||
totalEw += parseFloat(row.cells[4].innerText);
|
||||
totalFett += parseFloat(row.cells[5].innerText);
|
||||
totalKh += parseFloat(row.cells[6].innerText);
|
||||
totalBst += parseFloat(row.cells[7].innerText);
|
||||
totalCa += parseFloat(row.cells[8].innerText);
|
||||
});
|
||||
|
||||
// Rundung und Aktualisierung der Gesamtwerte
|
||||
|
Loading…
x
Reference in New Issue
Block a user