From a7cb9aee9fbecb61877b2d39e508c2ec2863af82 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 30 Nov 2025 11:48:12 -0500 Subject: [PATCH] Expand resource reader to description divs --- kjvstudy_org/templates/base.html | 2 +- kjvstudy_org/templates/twelve_apostles.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kjvstudy_org/templates/base.html b/kjvstudy_org/templates/base.html index 4c07620..34e0d0c 100644 --- a/kjvstudy_org/templates/base.html +++ b/kjvstudy_org/templates/base.html @@ -1849,7 +1849,7 @@ if (document.body && document.body.dataset && document.body.dataset.resourceReader === 'true') { e.preventDefault(); var highlighted = document.querySelector('[style*="outline: 2px solid"]') || document.querySelector('[style*="outline:2px solid"]'); - var candidates = Array.from(document.querySelectorAll('article p, section p, li, blockquote')).filter(function(el) { + var candidates = Array.from(document.querySelectorAll('article p, section p, li, blockquote, .intro-text, .apostle-description, .name-description, .prophet-description, .festival-description, .resource-description')).filter(function(el) { return (el.textContent || '').trim().length > 10; }); var textBlocks = []; diff --git a/kjvstudy_org/templates/twelve_apostles.html b/kjvstudy_org/templates/twelve_apostles.html index 119ffe5..0d40432 100644 --- a/kjvstudy_org/templates/twelve_apostles.html +++ b/kjvstudy_org/templates/twelve_apostles.html @@ -188,7 +188,7 @@ {% endblock %} {% block content %}