From bae1df8dd99c26d5a74dd6dbc63d24aa0ab8f441 Mon Sep 17 00:00:00 2001 From: Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> Date: Sun, 1 Nov 2026 18:57:48 +0900 Subject: hp-archive: 会場の地図を追加し、公園マップを非公開に MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - カレンダーで選んだ日の会場を地図に表示(市境・現在地ボタン付き) - 会場の座標データを追加し、1つの予定を複数会場に表示できるようにした - マナーアップキャンペーンと筋力アップ講座を日付・曜日ごとの行に分割 - こだいら公園さんぽマップを draft にして非公開にした --- src/components/ScheduleInteractive.astro | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/components/ScheduleInteractive.astro') 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 = `

${title}

この日の予定はありません。

`; return; -- cgit v1.3.1