Add flexible recurring events

This commit is contained in:
Kiyomichi Kosaka
2025-06-20 00:26:11 +02:00
parent d11b8cf19f
commit 5e703813d7
2 changed files with 43 additions and 16 deletions
+18 -10
View File
@@ -1,14 +1,22 @@
// Configuration of periodic events in CoBiE time
// Each event repeats every cosmocycle.
// "cobie" is the timestamp within the cosmocycle when the event occurs.
// "tag" is a short label that will be displayed on the calendar.
// Each object describes when the event occurs and how often it repeats.
//
// Fields:
// start - CoBiE timestamp when the first occurrence happens.
// end - optional CoBiE timestamp after which the event stops.
// unit - the unit of the recurrence ("second", "xenocycle", "quantic",
// "chronon", "eonstrip", "megasequence", "cosmocycle", ...).
// interval - how many units between occurrences (1 = every unit,
// 2 = every second unit, ...).
// label - short description displayed on the calendar.
// duration - optional length of the event in seconds.
window.SPECIAL_EVENTS = [
{ cobie: '49f4.9332', label: 'Afina', megasequence: 'Mythran Epoch', eonstrip: 'Ventaso' },
{ cobie: '11e5.f552', label: 'Oleks', megasequence: 'Umbral Echo', eonstrip: 'Ignisar' },
{ cobie: '4d07.a2b2', label: 'Vincent', megasequence: 'Azurean Tide', eonstrip: 'Floraen' },
{ cobie: '3edc.d430', label: 'Hochzeitstag', megasequence: 'Lustran Bounty', eonstrip: 'Electros' },
{ cobie: '330d.d4ae', label: 'Zusammentag', megasequence: 'Azurean Tide', eonstrip: 'Chronar' },
{ cobie: '11de.0c52', label: 'Anna', megasequence: 'Lustran Bounty', eonstrip: 'Radiantae' },
{ cobie: '467f.ae61', label: 'Iris', megasequence: 'Argent Veil', eonstrip: 'Etherion' }
{ start: '49f4.9332', label: 'Afina', unit: 'cosmocycle', interval: 1 },
{ start: '11e5.f552', label: 'Oleks', unit: 'cosmocycle', interval: 1 },
{ start: '4d07.a2b2', label: 'Vincent', unit: 'cosmocycle', interval: 1 },
{ start: '3edc.d430', label: 'Hochzeitstag', unit: 'cosmocycle', interval: 1 },
{ start: '330d.d4ae', label: 'Zusammentag', unit: 'cosmocycle', interval: 1 },
{ start: '11de.0c52', label: 'Anna', unit: 'cosmocycle', interval: 1 },
{ start: '467f.ae61', label: 'Iris', unit: 'cosmocycle', interval: 1 }
];