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