1.5.7
Profile memory Comment cleanup
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
// ════════════════════════════════════════════════════════════════════════
|
||||
// dynamic-message.js — Rewrites a cosmic event's message based on where
|
||||
// ------------------------------------------------------------------------
|
||||
// dynamic-message.js - Rewrites a cosmic event's message based on where
|
||||
// today sits vs. the peak.
|
||||
//
|
||||
// Before peak : "is active and building — peak on <date>. <detail>"
|
||||
// On peak ±1d : "peaks tonight — <detail>"
|
||||
// After peak : "is past its peak (<date>) but still possibly visible — <detail>"
|
||||
// Before peak : "is active and building - peak on <date>. <detail>"
|
||||
// On peak -1d : "peaks tonight - <detail>"
|
||||
// After peak : "is past its peak (<date>) but still possibly visible - <detail>"
|
||||
//
|
||||
// Single-day events (start === end) keep their static message unchanged.
|
||||
// ════════════════════════════════════════════════════════════════════════
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
export function dynamicCosmicMessage(ev, dateStr) {
|
||||
if (!ev.peak || ev.start === ev.end) return ev.message;
|
||||
|
||||
Reference in New Issue
Block a user