update ui webp export
This commit is contained in:
@@ -244,6 +244,8 @@
|
||||
|
||||
function getElements() {
|
||||
return {
|
||||
tarotSectionEl: document.getElementById("tarot-section"),
|
||||
tarotHouseSectionEl: document.getElementById("tarot-house-section"),
|
||||
tarotCardListEl: document.getElementById("tarot-card-list"),
|
||||
tarotSearchInputEl: document.getElementById("tarot-search-input"),
|
||||
tarotSearchClearEl: document.getElementById("tarot-search-clear"),
|
||||
@@ -278,6 +280,7 @@
|
||||
tarotKabPathEl: document.getElementById("tarot-kab-path"),
|
||||
tarotHouseOfCardsEl: document.getElementById("tarot-house-of-cards"),
|
||||
tarotBrowseViewEl: document.getElementById("tarot-browse-view"),
|
||||
tarotHouseViewEl: document.getElementById("tarot-house-view"),
|
||||
tarotHouseTopCardsVisibleEl: document.getElementById("tarot-house-top-cards-visible"),
|
||||
tarotHouseTopInfoHebrewEl: document.getElementById("tarot-house-top-info-hebrew"),
|
||||
tarotHouseTopInfoPlanetEl: document.getElementById("tarot-house-top-info-planet"),
|
||||
@@ -539,8 +542,8 @@
|
||||
}
|
||||
|
||||
function syncHouseControls(elements) {
|
||||
if (elements?.tarotBrowseViewEl) {
|
||||
elements.tarotBrowseViewEl.classList.toggle("is-house-focus", Boolean(state.houseFocusMode));
|
||||
if (elements?.tarotHouseViewEl) {
|
||||
elements.tarotHouseViewEl.classList.toggle("is-house-focus", Boolean(state.houseFocusMode));
|
||||
}
|
||||
|
||||
if (elements?.tarotHouseTopCardsVisibleEl) {
|
||||
@@ -838,6 +841,10 @@
|
||||
}
|
||||
});
|
||||
},
|
||||
shouldOpenCardLightboxOnSelect: (latestElements) => Boolean(
|
||||
latestElements?.tarotHouseSectionEl instanceof HTMLElement
|
||||
&& latestElements.tarotHouseSectionEl.hidden === false
|
||||
),
|
||||
isHouseFocusMode: () => state.houseFocusMode,
|
||||
getCards: () => state.cards,
|
||||
getSelectedCardId: () => state.selectedCardId,
|
||||
|
||||
Reference in New Issue
Block a user