Update index.html

This commit is contained in:
Mateo Körber Belmonte
2025-02-15 21:26:27 +01:00
parent 3224dccdba
commit 656fb17778
+35 -96
View File
@@ -80,10 +80,11 @@
background: transparent; background: transparent;
border: 1px solid rgba(0, 0, 0, 0.2); border: 1px solid rgba(0, 0, 0, 0.2);
padding: 2px 4px; padding: 2px 4px;
font-size: 20px; font-size: 24px;
color: rgb(159, 28, 12); color: rgb(159, 28, 12);
font-weight: bold; font-weight: bold;
width: 400px; width: 400px;
font-family: 'Fira Sans', sans-serif
} }
.input-field-13 { .input-field-13 {
@@ -92,6 +93,7 @@
border: 1px solid rgba(0, 0, 0, 0.2); border: 1px solid rgba(0, 0, 0, 0.2);
padding: 2px 4px; padding: 2px 4px;
font-size: 18px; font-size: 18px;
font-family: 'Fira Sans', sans-serif
} }
.input-field-12 { .input-field-12 {
@@ -99,7 +101,18 @@
background: transparent; background: transparent;
border: 1px solid rgba(0, 0, 0, 0.2); border: 1px solid rgba(0, 0, 0, 0.2);
padding: 2px 4px; padding: 2px 4px;
font-size: 14px; font-size: 20px;
font-family: 'Fira Sans', sans-serif
}
.input-field-12-b {
position: absolute;
background: transparent;
border: 1px solid rgba(0, 0, 0, 0.2);
padding: 2px 4px;
font-size: 20px;
font-weight: bold;
font-family: 'Fira Sans', sans-serif
} }
.input-field-10 { .input-field-10 {
@@ -107,7 +120,9 @@
background: transparent; background: transparent;
border: 1px solid rgba(0, 0, 0, 0.2); border: 1px solid rgba(0, 0, 0, 0.2);
padding: 2px 4px; padding: 2px 4px;
font-size: 14px; font-size: 16px;
font-style: italic;
font-family: 'Fira Sans', sans-serif
} }
.bottom-controls { .bottom-controls {
@@ -143,96 +158,22 @@
<div class="template-page"> <div class="template-page">
<div class="form-overlay"> <div class="form-overlay">
<form id="menuForm"> <form id="menuForm">
<div id="dayForm0" class="day-form active"> <script>
<input type="text" class="input-field-14" name="dateTitle0" style="bottom: 68%; left: 13.4%" for (let i = 0; i < 5; i++) {
placeholder="Datum"> document.write(`
<input type="checkbox" class="input-field-13" name="halal0" <div id="dayForm${i}" class="day-form ${i === 0 ? 'active' : ''}">
style="bottom: 62.2%; left: 22.1%"> <input type="text" class="input-field-14" name="dateTitle${i}" style="bottom: 67%; left: 13.4%" placeholder="Datum">
<input type="text" class="input-field-12" name="meatMain0" style="bottom: 55%; left: 14%" <input type="checkbox" class="input-field-13" name="halal${i}" style="bottom: 62.2%; left: 22.1%">
placeholder="Fleischgericht"> <input type="text" class="input-field-12-b" name="meatMain${i}" style="bottom: 55%; left: 13.4%" placeholder="Fleischgericht">
<input type="text" class="input-field-12" name="meatSide0" style="bottom: 50.2%; left: 14%" <input type="text" class="input-field-12" name="meatSide${i}" style="bottom: 50.2%; left: 13.4%" placeholder="Beilage">
placeholder="Beilage"> <input type="text" class="input-field-10" name="meatPrice${i}" style="bottom: 43.3%; left: 13.4%" placeholder="Preis">
<input type="text" class="input-field-10" name="meatPrice0" style="bottom: 40.4%; left: 14%" <input type="text" class="input-field-12-b" name="veggiMain${i}" style="bottom: 29.1%; left: 13.4%" placeholder="Veggie">
placeholder="Preis"> <input type="text" class="input-field-12" name="veggiSide${i}" style="bottom: 24.3%; left: 13.4%" placeholder="Beilage">
<input type="text" class="input-field-12" name="veggiMain0" style="bottom: 25.6%; left: 14%" <input type="text" class="input-field-10" name="veggiPrice${i}" style="bottom: 17.6%; left: 13.4%" placeholder="Preis">
placeholder="Veggie">
<input type="text" class="input-field-12" name="veggiSide0" style="bottom: 20.8%; left: 14%"
placeholder="Beilage">
<input type="text" class="input-field-10" name="veggiPrice0"
style="bottom: 15.5%; left: 14%" placeholder="Preis">
</div>
<div id="dayForm1" class="day-form">
<input type="text" class="input-field-14" name="dateTitle1" style="bottom: 68%; left: 13.4%"
placeholder="Datum">
<input type="checkbox" class="input-field-13" name="halal1"
style="bottom: 62.2%; left: 22.1%">
<input type="text" class="input-field-12" name="meatMain1" style="bottom: 55%; left: 14%"
placeholder="Fleischgericht">
<input type="text" class="input-field-12" name="meatSide1" style="bottom: 50.2%; left: 14%"
placeholder="Beilage">
<input type="text" class="input-field-10" name="meatPrice1" style="bottom: 40.4%; left: 14%"
placeholder="Preis">
<input type="text" class="input-field-12" name="veggiMain1" style="bottom: 25.6%; left: 14%"
placeholder="Veggie">
<input type="text" class="input-field-12" name="veggiSide1" style="bottom: 20.8%; left: 14%"
placeholder="Beilage">
<input type="text" class="input-field-10" name="veggiPrice1"
style="bottom: 15.5%; left: 14%" placeholder="Preis">
</div>
<div id="dayForm2" class="day-form">
<input type="text" class="input-field-14" name="dateTitle2" style="bottom: 68%; left: 13.4%"
placeholder="Datum">
<input type="checkbox" class="input-field-13" name="halal2"
style="bottom: 62.2%; left: 22.1%">
<input type="text" class="input-field-12" name="meatMain2" style="bottom: 55%; left: 14%"
placeholder="Fleischgericht">
<input type="text" class="input-field-12" name="meatSide2" style="bottom: 50.2%; left: 14%"
placeholder="Beilage">
<input type="text" class="input-field-10" name="meatPrice2" style="bottom: 40.4%; left: 14%"
placeholder="Preis">
<input type="text" class="input-field-12" name="veggiMain2" style="bottom: 25.6%; left: 14%"
placeholder="Veggie">
<input type="text" class="input-field-12" name="veggiSide2" style="bottom: 20.8%; left: 14%"
placeholder="Beilage">
<input type="text" class="input-field-10" name="veggiPrice2"
style="bottom: 15.5%; left: 14%" placeholder="Preis">
</div>
<div id="dayForm3" class="day-form">
<input type="text" class="input-field-14" name="dateTitle3" style="bottom: 68%; left: 13.4%"
placeholder="Datum">
<input type="checkbox" class="input-field-13" name="halal3"
style="bottom: 62.2%; left: 22.1%">
<input type="text" class="input-field-12" name="meatMain3" style="bottom: 55%; left: 14%"
placeholder="Fleischgericht">
<input type="text" class="input-field-12" name="meatSide3" style="bottom: 50.2%; left: 14%"
placeholder="Beilage">
<input type="text" class="input-field-10" name="meatPrice3" style="bottom: 40.4%; left: 14%"
placeholder="Preis">
<input type="text" class="input-field-12" name="veggiMain3" style="bottom: 25.6%; left: 14%"
placeholder="Veggie">
<input type="text" class="input-field-12" name="veggiSide3" style="bottom: 20.8%; left: 14%"
placeholder="Beilage">
<input type="text" class="input-field-10" name="veggiPrice3"
style="bottom: 15.5%; left: 14%" placeholder="Preis">
</div>
<div id="dayForm4" class="day-form">
<input type="text" class="input-field-14" name="dateTitle4" style="bottom: 68%; left: 13.4%"
placeholder="Datum">
<input type="checkbox" class="input-field-13" name="halal4"
style="bottom: 62.2%; left: 22.1%">
<input type="text" class="input-field-12" name="meatMain4" style="bottom: 55%; left: 14%"
placeholder="Fleischgericht">
<input type="text" class="input-field-12" name="meatSide4" style="bottom: 50.2%; left: 14%"
placeholder="Beilage">
<input type="text" class="input-field-10" name="meatPrice4" style="bottom: 40.4%; left: 14%"
placeholder="Preis">
<input type="text" class="input-field-12" name="veggiMain4" style="bottom: 25.6%; left: 14%"
placeholder="Veggie">
<input type="text" class="input-field-12" name="veggiSide4" style="bottom: 20.8%; left: 14%"
placeholder="Beilage">
<input type="text" class="input-field-10" name="veggiPrice4"
style="bottom: 15.5%; left: 14%" placeholder="Preis">
</div> </div>
`);
}
</script>
</form> </form>
</div> </div>
</div> </div>
@@ -419,8 +360,7 @@
const dayName = currentDate.toLocaleDateString('de-DE', { weekday: 'long' }).toUpperCase(); const dayName = currentDate.toLocaleDateString('de-DE', { weekday: 'long' }).toUpperCase();
const dateStr = currentDate.toLocaleDateString('de-DE', { const dateStr = currentDate.toLocaleDateString('de-DE', {
day: '2-digit', day: '2-digit',
month: 'long', month: 'long'
year: 'numeric'
}).toUpperCase(); }).toUpperCase();
dateTitleInput.value = `${dayName}, ${dateStr}`; dateTitleInput.value = `${dayName}, ${dateStr}`;
} }
@@ -449,8 +389,7 @@
const dayName = currentDate.toLocaleDateString('de-DE', { weekday: 'long' }).toUpperCase(); const dayName = currentDate.toLocaleDateString('de-DE', { weekday: 'long' }).toUpperCase();
const dateStr = currentDate.toLocaleDateString('de-DE', { const dateStr = currentDate.toLocaleDateString('de-DE', {
day: '2-digit', day: '2-digit',
month: 'long', month: 'long'
year: 'numeric'
}).toUpperCase(); }).toUpperCase();
dateTitleInput.value = `${dayName}, ${dateStr}`; dateTitleInput.value = `${dayName}, ${dateStr}`;
} }