15 lines
No EOL
542 B
HTML
15 lines
No EOL
542 B
HTML
<div class="custom-footer">
|
|
<span >{doctitle} |</span>
|
|
<span id="date"></span>
|
|
<span >| {author}</span>
|
|
</div>
|
|
|
|
<script>
|
|
// JavaScript für das aktuelle Datum im Format TT.MM.YYYY
|
|
const today = new Date();
|
|
const day = String(today.getDate()).padStart(2, '0');
|
|
const month = String(today.getMonth() + 1).padStart(2, '0'); // Monate sind nullbasiert
|
|
const year = today.getFullYear();
|
|
const formattedDate = `${day}.${month}.${year}`;
|
|
document.getElementById('date').textContent = formattedDate;
|
|
</script> |