From 12cbc15b2d0bae80e3cb60a38c04f4dee2ce6b19 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sat, 6 Dec 2025 14:50:16 -0500 Subject: [PATCH] Add Listen button across site for text-to-speech MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Chapter pages: Listen to full chapter text - Bible stories (adult & kids): Listen button at bottom with PDF - Resource index pages (Ten Commandments, Beatitudes, etc.) - Resource detail pages (individual commandments, etc.) - Twelve Apostles, Biblical Prophets, Names of God - Parables, Women of the Bible, Fruits of the Spirit All pages use consistent .action-btn styling and KJVSpeech integration. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- kjvstudy_org/templates/biblical_prophets.html | 46 +++++-- kjvstudy_org/templates/chapter.html | 33 +++++ kjvstudy_org/templates/fruits_of_spirit.html | 40 ++++-- kjvstudy_org/templates/names_of_god.html | 46 +++++-- kjvstudy_org/templates/parables.html | 46 +++++-- kjvstudy_org/templates/resource_detail.html | 42 +++++-- kjvstudy_org/templates/resource_index.html | 59 ++++++++- kjvstudy_org/templates/story_detail.html | 116 ++++++++++++------ kjvstudy_org/templates/story_kids.html | 99 +++++++++------ kjvstudy_org/templates/twelve_apostles.html | 46 +++++-- .../templates/women_of_the_bible.html | 40 ++++-- 11 files changed, 470 insertions(+), 143 deletions(-) diff --git a/kjvstudy_org/templates/biblical_prophets.html b/kjvstudy_org/templates/biblical_prophets.html index c98f65f..2fab080 100644 --- a/kjvstudy_org/templates/biblical_prophets.html +++ b/kjvstudy_org/templates/biblical_prophets.html @@ -42,10 +42,12 @@ } .prophets-actions { + display: flex; + gap: 0.75rem; margin: 1rem 0 1.5rem; } -.prophet-download-btn { +.action-btn { display: inline-flex; align-items: center; gap: 0.35rem; @@ -56,20 +58,27 @@ border: 1px solid var(--border-color, #ddd); border-radius: 4px; text-decoration: none; + cursor: pointer; transition: all 0.2s; } -.prophet-download-btn:hover { +.action-btn:hover { background: var(--bg-color, #fff); border-color: var(--link-color); color: var(--link-color); } -.prophet-download-btn svg { +.action-btn svg { width: 14px; height: 14px; } +.action-btn.playing { + background: var(--link-color); + color: white; + border-color: var(--link-color); +} + .prophet-description { max-width: 60%; font-size: 1.2rem; @@ -159,7 +168,6 @@ @media print { .prophets-actions, - .prophet-download-btn, .toc { display: none !important; } @@ -195,16 +203,22 @@ document.body.dataset.resourceReader = 'true';

Biblical Prophets

Messengers of the Most High

-{% if resource_pdf_available %} -{% endif %}