Include resource cards in selection/reading

This commit is contained in:
2025-11-30 12:20:14 -05:00
parent d4e7fd1a1d
commit 62fe33ce6b
+1 -1
View File
@@ -305,7 +305,7 @@ document.addEventListener('DOMContentLoaded', function() {
// Two-section navigation: pre-TOC content -> TOC block -> post-TOC content
// Or when inside TOC: individual TOC entries
// Content elements include PDF button, intro text (before TOC), then section titles, description paragraphs, and verse items (after TOC)
const contentElements = Array.from(document.querySelectorAll('.resource-download-btn, .intro-text, .resource-name, .resource-item-description > p, .resource-item-description > ul, .resource-item-description > ol, .resource-item-description > blockquote, .verse-item'));
const contentElements = Array.from(document.querySelectorAll('.resource-download-btn, .intro-text, .resource-name, .resource-item-description > p, .resource-item-description > ul, .resource-item-description > ol, .resource-item-description > blockquote, .verse-item, .resource-card'));
const tocItems = Array.from(tocList.querySelectorAll('li a'));
// Find where post-TOC content starts (first .resource-name or content after TOC)