update commit message
This commit is contained in:
@@ -29,6 +29,10 @@
|
||||
return `${String(normalized).split("").join(" + ")} = ${digitalRoot}`;
|
||||
}
|
||||
|
||||
function hasTarotAccess() {
|
||||
return window.TarotAppConfig?.hasTarotAccess?.() === true;
|
||||
}
|
||||
|
||||
function renderPositionDigitalRootCard(letter, alphabet, context, orderLabel) {
|
||||
const index = Number(letter?.index);
|
||||
if (!Number.isFinite(index)) {
|
||||
@@ -145,6 +149,10 @@
|
||||
}
|
||||
|
||||
function renderTarotValue(value, context) {
|
||||
if (!hasTarotAccess()) {
|
||||
return "";
|
||||
}
|
||||
|
||||
const label = String(value || "").trim();
|
||||
if (!label) {
|
||||
return "—";
|
||||
@@ -408,11 +416,9 @@
|
||||
}
|
||||
|
||||
if (letter.kabbalahPathNumber) {
|
||||
const tarotPart = letter.tarot
|
||||
? `<dt>Tarot Card</dt><dd>${letter.tarot.card} (Trump ${letter.tarot.trumpNumber})</dd>`
|
||||
: "";
|
||||
const tarotAccessEnabled = hasTarotAccess();
|
||||
const kabBtn = context.inlineNavBtn(`Path ${letter.kabbalahPathNumber}`, "tarot:view-kab-path", { "path-number": letter.kabbalahPathNumber });
|
||||
const tarotBtn = letter.tarot
|
||||
const tarotBtn = tarotAccessEnabled && letter.tarot
|
||||
? context.inlineNavBtn(letter.tarot.card, "kab:view-trump", { "trump-number": letter.tarot.trumpNumber })
|
||||
: "";
|
||||
const cubePlacement = context.getCubePlacementForHebrewLetter(letter.hebrewLetterId, letter.kabbalahPathNumber);
|
||||
@@ -420,10 +426,10 @@
|
||||
"hebrew-letter-id": letter.hebrewLetterId,
|
||||
"path-no": letter.kabbalahPathNumber
|
||||
});
|
||||
sections.push(context.card("Kabbalah & Tarot", `
|
||||
sections.push(context.card(tarotAccessEnabled ? "Kabbalah & Tarot" : "Kabbalah", `
|
||||
<dl class="alpha-dl">
|
||||
<dt>Path Number</dt><dd>${kabBtn}</dd>
|
||||
${letter.tarot ? `<dt>Tarot Card</dt><dd>${tarotBtn} (Trump ${letter.tarot.trumpNumber})</dd>` : ""}
|
||||
${tarotAccessEnabled && letter.tarot ? `<dt>Tarot Card</dt><dd>${tarotBtn} (Trump ${letter.tarot.trumpNumber})</dd>` : ""}
|
||||
</dl>
|
||||
${cubeBtn ? `<div class="planet-text">Cube placement ${cubeBtn}</div>` : ""}
|
||||
`));
|
||||
@@ -580,7 +586,7 @@
|
||||
<dt>English Letters</dt><dd>${englishRefs.join(" / ") || "—"}</dd>
|
||||
<dt>Transliteration</dt><dd>${letter.transliteration || "—"}</dd>
|
||||
<dt>Element / Planet</dt><dd>${renderElementOrPlanetValue(letter.elementOrPlanet, context)}</dd>
|
||||
<dt>Tarot</dt><dd>${renderTarotValue(letter.tarot, context)}</dd>
|
||||
${hasTarotAccess() ? `<dt>Tarot</dt><dd>${renderTarotValue(letter.tarot, context)}</dd>` : ""}
|
||||
<dt>Numerology</dt><dd>${letter.numerology || "—"}</dd>
|
||||
<dt>Glyph Source</dt><dd>API asset: img/enochian (sourced from dCode set)</dd>
|
||||
<dt>Position</dt><dd>#${letter.index} of 21</dd>
|
||||
|
||||
Reference in New Issue
Block a user