Make home aside webrings list collapsable.

This commit is contained in:
天クマ 2026-07-10 13:35:10 -03:00
commit c6ef4ff68c
5 changed files with 64 additions and 26 deletions

View file

@ -48,4 +48,12 @@ function updateSquare() {
div = getSquareDivByID(square.id);
selectedSquareDiv = div.id;
div.classList.toggle("selected");
}
}
const homeWebrings = document.getElementById("homeWebrings");
const homeWebringsShowMore = document.getElementById("homeWebringsShowMore");
homeWebringsShowMore.addEventListener("click", () => {
homeWebrings.classList.toggle("less");
homeWebringsShowMore.textContent = homeWebrings.classList.contains("less") ? headeri18n.showMore : headeri18n.showLess;
});