feat: Unify format for IDs

This commit is contained in:
sthag 2026-02-14 12:18:07 +01:00
parent 759283fd9f
commit b1c7f4100e
4 changed files with 13 additions and 13 deletions

View file

@ -11,7 +11,7 @@ tags:
<main>
<canvas id="clock" width="512" height="512"></canvas>
<p>
<button id="toggleFormat">12-Stunden-Format</button>
<button id="tglFormat">12-Stunden-Format</button>
</p>
</main>
{% endblock %}
@ -27,9 +27,9 @@ tags:
const colorDayOfMonth = getComputedStyle(document.documentElement).getPropertyValue('--clock-color-orange').trim();
const colorMonth = getComputedStyle(document.documentElement).getPropertyValue('--clock-color-pink').trim();
document.getElementById('toggleFormat').addEventListener('click', () => {
document.getElementById('tglFormat').addEventListener('click', () => {
is24HourFormat = !is24HourFormat;
document.getElementById('toggleFormat').textContent = is24HourFormat ? '12-Stunden-Format' : '24-Stunden-Format';
document.getElementById('tglFormat').textContent = is24HourFormat ? '12-Stunden-Format' : '24-Stunden-Format';
});
function drawRings(seconds, minutes, hours, dayOfWeek, dayOfMonth, month, daysInCurrentMonth) {