no message
This commit is contained in:
@@ -2,12 +2,13 @@
|
|||||||
|
|
||||||
<!-- HEADER + BUTTONS -->
|
<!-- HEADER + BUTTONS -->
|
||||||
<div class="popup-header">
|
<div class="popup-header">
|
||||||
<h2><🎁 1. Dezember – Der Anfang vom Zauber</h2>
|
<h2>🎁 1. Dezember – Der Anfang vom Zauber</h2>
|
||||||
|
|
||||||
<div class="popup-tools">
|
<div class="popup-tools">
|
||||||
<button id="btn-font-toggle">Aa ↔ 𝒜</button>
|
<button id="btn-font-toggle">Aa ↔ 𝒜</button>
|
||||||
<button id="btn-font-up">A+</button>
|
<button id="btn-font-up">A+</button>
|
||||||
<button id="btn-font-down">A−</button>
|
<button id="btn-font-down">A−</button>
|
||||||
|
<button id="btn-audio-toggle" aria-label="Musik an/aus">🔊</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -208,4 +208,21 @@ function initPopupTools() {
|
|||||||
applyScale();
|
applyScale();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
// --- Musik an/aus ---
|
||||||
|
if (btnAudio && bgmusic) {
|
||||||
|
const updateIcon = () => {
|
||||||
|
btnAudio.textContent = bgmusic.paused ? "🔈" : "🔊";
|
||||||
|
};
|
||||||
|
|
||||||
|
updateIcon();
|
||||||
|
|
||||||
|
btnAudio.onclick = () => {
|
||||||
|
if (bgmusic.paused) {
|
||||||
|
bgmusic.play().catch(() => {});
|
||||||
|
} else {
|
||||||
|
bgmusic.pause();
|
||||||
|
}
|
||||||
|
updateIcon();
|
||||||
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user