Fixed "open" hint for Bible Gateway.

This commit is contained in:
Benjamin A. Shelton 2026-08-09 14:20:40 -06:00
commit 17af56303f
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01
2 changed files with 4 additions and 4 deletions

View file

@ -82,7 +82,7 @@ const meta = `{
<path d="M4.715 6.542 3.343 7.914a3 3 0 1 0 4.243 4.243l1.828-1.829A3 3 0 0 0 8.586 5.5L8 6.086a1 1 0 0 0-.154.199 2 2 0 0 1 .861 3.337L6.88 11.45a2 2 0 1 1-2.83-2.83l.793-.792a4 4 0 0 1-.128-1.287z"/>
<path d="M6.586 4.672A3 3 0 0 0 7.414 9.5l.775-.776a2 2 0 0 1-.896-3.346L9.12 3.55a2 2 0 1 1 2.83 2.83l-.793.792c.112.42.155.855.128 1.287l1.372-1.372a3 3 0 1 0-4.243-4.243z"/>
</svg>
<span class="align-middle">Open <span class="underline"></span> on Bible Gateway</span>
<span class="align-middle">Open <span class="scripture underline"></span> on Bible Gateway</span>
</a>
</nav>
</div>

View file

@ -93,7 +93,7 @@ function render(dialog, response, refs) {
let para = document.createElement('p');
dialog.querySelector('a.bg').href = `https://www.biblegateway.com/passage/?search=${refs.ref}&version=ESV`
dialog.querySelector('a.bg span').insertAdjacentText('beforeend', refs.fullTitle());
dialog.querySelector('a.bg span.scripture').insertAdjacentText('beforeend', refs.fullTitle());
const heading = document.createElement('h1');
heading.insertAdjacentText('beforeend',
@ -198,7 +198,7 @@ export const bindModals = () => {
dialog[0]?.close();
dialog[0]?.classList.add('hidden');
dialog[0]?.querySelector('article')?.replaceChildren();
dialog[0]?.querySelector('a.bg span').replaceChildren();
dialog[0]?.querySelector('a.bg span.scripture').replaceChildren();
}
});
dialog[0]?.querySelector('button[data-close]')?.addEventListener('click', (evt) => {
@ -206,7 +206,7 @@ export const bindModals = () => {
dialog[0]?.close();
dialog[0]?.classList.add('hidden');
dialog[0]?.querySelector('article')?.replaceChildren();
dialog[0]?.querySelector('a.bg span').replaceChildren();
dialog[0]?.querySelector('a.bg span.scripture').replaceChildren();
});
};