aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components/ScheduleInteractive.astro
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/ScheduleInteractive.astro')
-rw-r--r--src/components/ScheduleInteractive.astro13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/components/ScheduleInteractive.astro b/src/components/ScheduleInteractive.astro
index 955977d..3295125 100644
--- a/src/components/ScheduleInteractive.astro
+++ b/src/components/ScheduleInteractive.astro
@@ -354,6 +354,19 @@
});
const title = `${date.getMonth() + 1}月${date.getDate()}日(${weekday})の予定`;
+ // 会場の地図(ScheduleMap)に、その日の予定を知らせる。
+ const detail = {
+ date: key,
+ entries: list.map((e) => ({
+ name: e.name,
+ time: e.time,
+ category: e.category,
+ rowId: e.rowId,
+ })),
+ };
+ (window as any).__scheduleDay = detail;
+ document.dispatchEvent(new CustomEvent('schedule:day', { detail }));
+
if (list.length === 0) {
detailsEl.innerHTML = `<h3>${title}</h3><p>この日の予定はありません。</p>`;
return;