better page styling

This commit is contained in:
Simon Martens
2025-09-15 12:57:42 +02:00
parent 7b63b8e6fd
commit fd819ccceb
3 changed files with 24 additions and 2 deletions

View File

@@ -392,6 +392,11 @@ function markCurrentPagesInInhaltsverzeichnis(pageNumbers) {
}
});
// Hide all continuation entries by default
document.querySelectorAll('.continuation-entry').forEach(entry => {
entry.classList.add('hidden');
});
// Reset all page numbers in Inhaltsverzeichnis
document.querySelectorAll('.page-number-inhalts').forEach(pageNum => {
pageNum.classList.remove('text-red-600', 'font-bold');
@@ -462,6 +467,12 @@ function markCurrentPagesInInhaltsverzeichnis(pageNumbers) {
if (pageContainer) {
pageContainer.classList.remove('border-slate-300', 'border-amber-400');
pageContainer.classList.add('border-red-500');
// Show continuation entries for this visible page
const continuationEntries = pageContainer.querySelectorAll('.continuation-entry[data-page="' + startPage + '"]');
continuationEntries.forEach(entry => {
entry.classList.remove('hidden');
});
}
// Also make links in the current article non-clickable and remove hover effects