diff --git a/views/routes/ausgabe/components/_fullwidth_layout.gohtml b/views/routes/ausgabe/components/_fullwidth_layout.gohtml index 9c57a41..c293da3 100644 --- a/views/routes/ausgabe/components/_fullwidth_layout.gohtml +++ b/views/routes/ausgabe/components/_fullwidth_layout.gohtml @@ -143,6 +143,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('bg-red-500', 'text-white'); @@ -216,6 +221,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 diff --git a/views/routes/ausgabe/components/_inhaltsverzeichnis.gohtml b/views/routes/ausgabe/components/_inhaltsverzeichnis.gohtml index 46c07f1..0670610 100644 --- a/views/routes/ausgabe/components/_inhaltsverzeichnis.gohtml +++ b/views/routes/ausgabe/components/_inhaltsverzeichnis.gohtml @@ -27,7 +27,7 @@
{{ range $groupedPiece := (index $model.Pieces.Items $page) }} -
+
{{ template "_inhaltsverzeichnis_eintrag" $groupedPiece.PieceByIssue }} @@ -90,7 +90,7 @@
{{ range $groupedPiece := (index $model.AdditionalPieces.Items $page) }} -
+
{{ template "_inhaltsverzeichnis_eintrag" $groupedPiece.PieceByIssue }} diff --git a/views/routes/ausgabe/components/_newspaper_layout.gohtml b/views/routes/ausgabe/components/_newspaper_layout.gohtml index 59e77b0..b609ecc 100644 --- a/views/routes/ausgabe/components/_newspaper_layout.gohtml +++ b/views/routes/ausgabe/components/_newspaper_layout.gohtml @@ -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