aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components/ScheduleInteractive.astro
diff options
context:
space:
mode:
authorYasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com>2026-11-01 18:57:48 +0900
committerYasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com>2026-11-01 18:57:48 +0900
commitbae1df8dd99c26d5a74dd6dbc63d24aa0ab8f441 (patch)
tree0f0ac074a02b172909ab3aad8d65b58e70f10da9 /src/components/ScheduleInteractive.astro
parent7cfcaf0de8017f89033c786bffbbfd00f207ac11 (diff)
hp-archive: 会場の地図を追加し、公園マップを非公開に
- カレンダーで選んだ日の会場を地図に表示(市境・現在地ボタン付き) - 会場の座標データを追加し、1つの予定を複数会場に表示できるようにした - マナーアップキャンペーンと筋力アップ講座を日付・曜日ごとの行に分割 - こだいら公園さんぽマップを draft にして非公開にした
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;