3 Commits
0.1.7 ... 0.2.0

Author SHA1 Message Date
f39c902ace fail
All checks were successful
ci/woodpecker/tag/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
2024-01-30 19:15:48 +01:00
ff26644f06 fail
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
2024-01-30 18:51:52 +01:00
5f63092a67 f
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
2024-01-30 18:51:02 +01:00
2 changed files with 33 additions and 32 deletions

View File

@ -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
@ -220,8 +220,8 @@ function updateTotalNutrition() {
<th>CA</th>
</tr>
<tr>
<t>Gesamtwerte</td>
<td></td>-</td>
<td>Gesamtwerte</td>
<td>-</td>
<td id="total-kcal">0</td>
<td id="total-ew">0</td>
<td id="total-fett">0</td>

View File

@ -25,7 +25,7 @@
}
function addNutritionEntry() {
getBearerToken(token => {
const form = document.getElementById('nutrition-form');
const formData = new FormData(form);
@ -52,6 +52,7 @@
// Deaktiviere den "Hinzufügen"-Button wieder
document.getElementById('submit-button').disabled = true;
});
}
</script>