feat: Unify format for IDs
This commit is contained in:
parent
759283fd9f
commit
b1c7f4100e
4 changed files with 13 additions and 13 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue