Expand resource reader to description divs

This commit is contained in:
2025-11-30 11:48:12 -05:00
parent e88ef39a82
commit a7cb9aee9f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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 = [];
+1 -1
View File
@@ -188,7 +188,7 @@
{% endblock %}
<script>
document.body.dataset.resourceReader = 'true';
document.body.dataset.resourceReader = 'true';
</script>
{% block content %}