aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components/ScheduleInteractive.astro
diff options
context:
space:
mode:
authorYasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com>2026-10-29 08:14:03 +0900
committerYasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com>2026-10-29 08:14:03 +0900
commited970d8dd6dbbaded7f1f45963ef54049f3571b9 (patch)
treea73a3a3211e79004434c3f239653196b3af8cc41 /src/components/ScheduleInteractive.astro
parent73cc566ecf25455a291d3020e26a628fdeee6aaa (diff)
hp-archive: 表のスクロール表示と市Xの新着を反映
- 審議会等・イベントの表を枠内スクロールにし、終了分を下にまとめてグレー表示 - 情報源にこだいら観光まちづくり協会のホームページを追加 - 市公式Xの10月28日の新着3件を追加 - 鈴木遺跡のテレビ放映を10月28日と11月2日の再放送に分割
Diffstat (limited to 'src/components/ScheduleInteractive.astro')
-rw-r--r--src/components/ScheduleInteractive.astro10
1 files changed, 10 insertions, 0 deletions
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';