Feature: Welten-Labels klickbar (JETZT|HUND|WELT), aktives Label hervorgehoben, Desktop-Tab-Optik, SW by-v651
This commit is contained in:
parent
a84df71383
commit
f4052fbb7d
5 changed files with 25 additions and 7 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue