Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
f0fcbc3c56
|
|||
1e8ae0105a |
@ -141,7 +141,6 @@ def get_token():
|
||||
|
||||
|
||||
|
||||
|
||||
app = ProxyFix(app, x_for=1, x_host=1)
|
||||
|
||||
|
||||
|
@ -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[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);
|
||||
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);
|
||||
});
|
||||
|
||||
// Rundung und Aktualisierung der Gesamtwerte
|
||||
|
Reference in New Issue
Block a user