This commit is contained in:
epoberezkin
2025-09-30 19:19:57 +00:00
parent 1047e93f1c
commit 3a46ff0952
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -406,6 +406,7 @@ window.addEventListener('scroll',changeHeaderBg);
align-items: flex-start;
margin-bottom: 20px;
padding: 16px;
word-break: break-word;
}
#directory .entry a {
+1 -1
View File
@@ -343,7 +343,7 @@ function addPagination(entries) {
pageBtn.textContent = p.toString();
if (p === currentPage) {
pageBtn.classList.add('active');
} else if (p === currentPage - 1 || p === currentPage + 1) {
} else if (p === currentPage - 1 || p === currentPage + 1 || (currentPage === 1 && p === 3) || (currentPage === totalPages && p === totalPages - 2)) {
pageBtn.classList.add('neighbor');
}
pageBtn.addEventListener('click', () => goToPage(p));