Feature: Welten-Labels klickbar (JETZT|HUND|WELT), aktives Label hervorgehoben, Desktop-Tab-Optik, SW by-v651

This commit is contained in:
rene 2026-05-03 11:09:14 +02:00
parent a84df71383
commit f4052fbb7d
5 changed files with 25 additions and 7 deletions

View file

@ -145,6 +145,7 @@ window.Worlds = (() => {
function _updateDots() {
document.querySelectorAll('.wdot').forEach((d, i) => d.classList.toggle('active', i === _cur));
document.querySelectorAll('.wlabel').forEach((l, i) => l.classList.toggle('active', i === _cur));
}
function _updateFab() {
@ -167,6 +168,14 @@ window.Worlds = (() => {
if (i === 2 && !_weltInited) { _weltInited = true; _renderWelt(); }
});
});
document.querySelectorAll('.wlabel').forEach((lbl, i) => {
lbl.style.pointerEvents = 'auto';
lbl.style.cursor = 'pointer';
lbl.addEventListener('click', () => {
_goTo(i, true);
if (i === 2 && !_weltInited) { _weltInited = true; _renderWelt(); }
});
});
}
function _openFab() {