mirror of
https://github.com/kennethreitz/kjvstudy.org.git
synced 2026-06-05 23:00:16 +00:00
Expand resource reader to description divs
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
@@ -188,7 +188,7 @@
|
||||
{% endblock %}
|
||||
|
||||
<script>
|
||||
document.body.dataset.resourceReader = 'true';
|
||||
document.body.dataset.resourceReader = 'true';
|
||||
</script>
|
||||
|
||||
{% block content %}
|
||||
|
||||
Reference in New Issue
Block a user