updated relationship display in cycle details to use inline links instead of alpha nav buttons, and added related cycle links to planet details; added element display to astrology alphabet details; updated decan range display in calendar detail panels; updated tarot card detail script to latest version; added element script to index.html
This commit is contained in:
+11
-1
@@ -1,6 +1,15 @@
|
||||
(function () {
|
||||
"use strict";
|
||||
|
||||
function formatDegreeLabel(value) {
|
||||
const numeric = Number(value);
|
||||
if (!Number.isFinite(numeric)) {
|
||||
return "--";
|
||||
}
|
||||
|
||||
return String(Math.trunc(numeric)).padStart(2, "0");
|
||||
}
|
||||
|
||||
function buildDecanWindow(context, sign, decanIndex) {
|
||||
const { buildSignDateBounds, addDays, formatDateLabel } = context;
|
||||
const bounds = buildSignDateBounds(sign);
|
||||
@@ -78,7 +87,7 @@
|
||||
seen.add(key);
|
||||
|
||||
const startDegree = (Number(decan.index) - 1) * 10;
|
||||
const endDegree = startDegree + 10;
|
||||
const endDegree = startDegree + 9;
|
||||
const signName = sign?.name?.en || sign?.name || signId;
|
||||
|
||||
rows.push({
|
||||
@@ -89,6 +98,7 @@
|
||||
decanIndex: Number(decan.index),
|
||||
startDegree,
|
||||
endDegree,
|
||||
degreeRangeLabel: `${formatDegreeLabel(startDegree)}°–${formatDegreeLabel(endDegree)}°`,
|
||||
startTime: window.start.getTime(),
|
||||
endTime: window.end.getTime(),
|
||||
startMonth: window.start.getMonth() + 1,
|
||||
|
||||
Reference in New Issue
Block a user