From ed970d8dd6dbbaded7f1f45963ef54049f3571b9 Mon Sep 17 00:00:00 2001 From: Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> Date: Thu, 29 Oct 2026 08:14:03 +0900 Subject: hp-archive: 表のスクロール表示と市Xの新着を反映 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 審議会等・イベントの表を枠内スクロールにし、終了分を下にまとめてグレー表示 - 情報源にこだいら観光まちづくり協会のホームページを追加 - 市公式Xの10月28日の新着3件を追加 - 鈴木遺跡のテレビ放映を10月28日と11月2日の再放送に分割 --- src/components/ScheduleInteractive.astro | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/components/ScheduleInteractive.astro') diff --git a/src/components/ScheduleInteractive.astro b/src/components/ScheduleInteractive.astro index fdc0767..955977d 100644 --- a/src/components/ScheduleInteractive.astro +++ b/src/components/ScheduleInteractive.astro @@ -226,6 +226,16 @@ } } + // 終了した予定は表の下にまとめ、開催中の予定から表示する。 + for (const table of [meetingsTable, eventsTable]) { + const tbody = table.tBodies[0]; + if (!tbody) continue; + const rows = [...tbody.rows]; + for (const row of rows) { + if (row.classList.contains('is-ended')) tbody.appendChild(row); + } + } + let selectedDate = todayKey; let currentMonth = todayMonth; let activeCategory = 'all'; -- cgit v1.3.1