bett
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2024-04-16 19:07:08 +02:00
parent fe5ad6ba8d
commit c8648788d0
4 changed files with 9 additions and 3 deletions

View File

@ -219,6 +219,12 @@ def delete_nutrition():
conn.close()
@app.route('/random')
def random_page():
# Diese Route gibt die HTML-Seite 'random.html' zurück
return render_template('random.html')
exposed_app = ProxyFix(app, x_for=1, x_host=1)

View File

@ -260,7 +260,7 @@ button#remove-button {
background-repeat: no-repeat; /* Verhindert das Wiederholen des Bildes */
background-position: center; /* Zentriert das Bild im Button */
color: transparent; /* Macht den Text unsichtbar, damit nur das Bild sichtbar ist */
width: 62px; /* Setzt die Breite automatisch entsprechend des Inhalts */
width: 70px; /* Setzt die Breite automatisch entsprechend des Inhalts */
height: 85px; /* Passt die Höhe an, um das Bild vollständig anzuzeigen */
padding: 10px 20px; /* Hinzufügen von etwas Platz um das Bild */
}

View File

@ -301,7 +301,7 @@ function updateTotalNutrition() {
</tr>
<!-- Zeilen werden hier dynamisch hinzugefügt -->
</table>
<button id="remove-button" onclick="removeSelectedRow()" disabled>Entfernen</button>
<button id="remove-button" onclick="removeSelectedRow()" disabled></button>
<table id="total-nutrition-table">
<tr>
<th>Lebensmittel</th>

View File

@ -173,7 +173,7 @@
}
function openImagePage() {
window.open('random.html', '_blank'); // Öffnet die neue Seite in einem neuen Tab
window.open('random', '_blank'); // Öffnet die neue Seite in einem neuen Tab
}
</script>
</head>