Add chapter headers
This commit is contained in:
1 parent
48daaf7ce3
commit
e087ba9933
3 files changed
+31
-11
No files matched your search
@@ -46,15 +46,14 @@
|
||||
|
||||
<main class="container-xl my-4">
|
||||
<div class="row justify-content-center">
|
||||
{# A verse number is a link to itself, so the browser handles the jump and
|
||||
the address bar; this only adds the dialog on top. Enter comes free
|
||||
with the link, which is why there is no key handler here. #}
|
||||
<div id="content" class="col-12 col-xl-8" hx-history-elt
|
||||
hx-on:click="var verse = event.target.closest('.v[id]');
|
||||
if (verse) htmx.ajax('GET', 'api/verse?at=' + verse.id,
|
||||
{ target: '#verse-dialog .modal-content',
|
||||
swap: 'innerHTML' });"
|
||||
hx-on:keydown="if (event.key !== 'Enter' && event.key !== ' ') return;
|
||||
if (!event.target.matches('.v[id]')) return;
|
||||
event.preventDefault();
|
||||
event.target.click();">
|
||||
swap: 'innerHTML' });">
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user