mirror of
https://github.com/kennethreitz/kjvstudy.org.git
synced 2026-06-05 23:00:16 +00:00
Simplify chapter nav tip and change 'p' shortcut to PDF
- Shortened nav help to "Tip: ↑/↓ to select verses • ? for more shortcuts" - Changed 'p' keyboard shortcut from Reading Plans to PDF download 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -708,7 +708,8 @@ document.addEventListener('keydown', function(e) {
|
||||
break;
|
||||
case 'p':
|
||||
e.preventDefault();
|
||||
window.location.href = '/reading-plans';
|
||||
var pdfBtn = document.querySelector('.pdf-btn, a[href$="/pdf"]');
|
||||
if (pdfBtn) window.location.href = pdfBtn.href;
|
||||
break;
|
||||
case 'f':
|
||||
e.preventDefault();
|
||||
@@ -895,7 +896,7 @@ function showKeyboardHelp() {
|
||||
'<div class="shortcut"><kbd>s</kbd><span>Stories</span></div>' +
|
||||
'<div class="shortcut"><kbd>r</kbd><span>Resources</span></div>' +
|
||||
'<div class="shortcut"><kbd>t</kbd><span>Topics</span></div>' +
|
||||
'<div class="shortcut"><kbd>p</kbd><span>Reading Plans</span></div>' +
|
||||
'<div class="shortcut"><kbd>p</kbd><span>PDF (when available)</span></div>' +
|
||||
'<div class="shortcut"><kbd>f</kbd><span>Family Tree</span></div>' +
|
||||
'<div class="shortcut"><kbd>c</kbd><span>Strong\'s Concordance</span></div>' +
|
||||
'<div class="shortcut"><kbd>v</kbd><span>Verse of the Day</span></div>' +
|
||||
|
||||
@@ -343,7 +343,7 @@ document.body.dataset.resourceReader = 'false';
|
||||
</a>
|
||||
</div>
|
||||
<div class="nav-help">
|
||||
Tip: ↑/↓ to select verses • Enter to view • ←/→ chapters • Space reads verse (if selected) or chapter • i=interlinear • p=PDF • = listen to chapter
|
||||
Tip: ↑/↓ to select verses • ? for more shortcuts
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user