mirror of
https://github.com/Matewoo/pdf-writer.git
synced 2026-11-18 18:32:44 +01:00
Update index.html
This commit is contained in:
+36
-97
@@ -80,10 +80,11 @@
|
||||
background: transparent;
|
||||
border: 1px solid rgba(0, 0, 0, 0.2);
|
||||
padding: 2px 4px;
|
||||
font-size: 20px;
|
||||
font-size: 24px;
|
||||
color: rgb(159, 28, 12);
|
||||
font-weight: bold;
|
||||
width: 400px;
|
||||
font-family: 'Fira Sans', sans-serif
|
||||
}
|
||||
|
||||
.input-field-13 {
|
||||
@@ -92,6 +93,7 @@
|
||||
border: 1px solid rgba(0, 0, 0, 0.2);
|
||||
padding: 2px 4px;
|
||||
font-size: 18px;
|
||||
font-family: 'Fira Sans', sans-serif
|
||||
}
|
||||
|
||||
.input-field-12 {
|
||||
@@ -99,7 +101,18 @@
|
||||
background: transparent;
|
||||
border: 1px solid rgba(0, 0, 0, 0.2);
|
||||
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 {
|
||||
@@ -107,7 +120,9 @@
|
||||
background: transparent;
|
||||
border: 1px solid rgba(0, 0, 0, 0.2);
|
||||
padding: 2px 4px;
|
||||
font-size: 14px;
|
||||
font-size: 16px;
|
||||
font-style: italic;
|
||||
font-family: 'Fira Sans', sans-serif
|
||||
}
|
||||
|
||||
.bottom-controls {
|
||||
@@ -143,96 +158,22 @@
|
||||
<div class="template-page">
|
||||
<div class="form-overlay">
|
||||
<form id="menuForm">
|
||||
<div id="dayForm0" class="day-form active">
|
||||
<input type="text" class="input-field-14" name="dateTitle0" style="bottom: 68%; left: 13.4%"
|
||||
placeholder="Datum">
|
||||
<input type="checkbox" class="input-field-13" name="halal0"
|
||||
style="bottom: 62.2%; left: 22.1%">
|
||||
<input type="text" class="input-field-12" name="meatMain0" style="bottom: 55%; left: 14%"
|
||||
placeholder="Fleischgericht">
|
||||
<input type="text" class="input-field-12" name="meatSide0" style="bottom: 50.2%; left: 14%"
|
||||
placeholder="Beilage">
|
||||
<input type="text" class="input-field-10" name="meatPrice0" style="bottom: 40.4%; left: 14%"
|
||||
placeholder="Preis">
|
||||
<input type="text" class="input-field-12" name="veggiMain0" style="bottom: 25.6%; left: 14%"
|
||||
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>
|
||||
<script>
|
||||
for (let i = 0; i < 5; i++) {
|
||||
document.write(`
|
||||
<div id="dayForm${i}" class="day-form ${i === 0 ? 'active' : ''}">
|
||||
<input type="text" class="input-field-14" name="dateTitle${i}" style="bottom: 67%; left: 13.4%" placeholder="Datum">
|
||||
<input type="checkbox" class="input-field-13" name="halal${i}" style="bottom: 62.2%; left: 22.1%">
|
||||
<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="meatSide${i}" style="bottom: 50.2%; left: 13.4%" 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-12-b" name="veggiMain${i}" style="bottom: 29.1%; left: 13.4%" placeholder="Veggie">
|
||||
<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-10" name="veggiPrice${i}" style="bottom: 17.6%; left: 13.4%" placeholder="Preis">
|
||||
</div>
|
||||
`);
|
||||
}
|
||||
</script>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@@ -419,8 +360,7 @@
|
||||
const dayName = currentDate.toLocaleDateString('de-DE', { weekday: 'long' }).toUpperCase();
|
||||
const dateStr = currentDate.toLocaleDateString('de-DE', {
|
||||
day: '2-digit',
|
||||
month: 'long',
|
||||
year: 'numeric'
|
||||
month: 'long'
|
||||
}).toUpperCase();
|
||||
dateTitleInput.value = `${dayName}, ${dateStr}`;
|
||||
}
|
||||
@@ -449,8 +389,7 @@
|
||||
const dayName = currentDate.toLocaleDateString('de-DE', { weekday: 'long' }).toUpperCase();
|
||||
const dateStr = currentDate.toLocaleDateString('de-DE', {
|
||||
day: '2-digit',
|
||||
month: 'long',
|
||||
year: 'numeric'
|
||||
month: 'long'
|
||||
}).toUpperCase();
|
||||
dateTitleInput.value = `${dayName}, ${dateStr}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user