This commit is contained in:
@ -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)
|
||||
|
||||
|
||||
|
@ -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 */
|
||||
}
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Reference in New Issue
Block a user