Fix Chapter UI
This commit is contained in:
parent
a246003a51
commit
3f753541a3
|
@ -42,6 +42,7 @@
|
||||||
const subtitle = document.getElementById('subtitle');
|
const subtitle = document.getElementById('subtitle');
|
||||||
const bible_link = document.getElementById('bible_link');
|
const bible_link = document.getElementById('bible_link');
|
||||||
const book_link = document.getElementById('book_link');
|
const book_link = document.getElementById('book_link');
|
||||||
|
const chapter_link = document.getElementById('chapter_link');
|
||||||
//List Of Books in the
|
//List Of Books in the
|
||||||
function init()
|
function init()
|
||||||
{
|
{
|
||||||
|
@ -57,7 +58,7 @@
|
||||||
bible_link.innerText=bible;
|
bible_link.innerText=bible;
|
||||||
book_link.innerText=book;
|
book_link.innerText=book;
|
||||||
book_link.href = `./book?bible=${encodeURIComponent(bible)}&book=${encodeURIComponent(book)}`;
|
book_link.href = `./book?bible=${encodeURIComponent(bible)}&book=${encodeURIComponent(book)}`;
|
||||||
|
chapter_link.innerText=`Chapter ${chapter}`;
|
||||||
fetch(`./api/v1/GetChapterCount${window.location.search}`).then(e=>e.json()).then(e=>{
|
fetch(`./api/v1/GetChapterCount${window.location.search}`).then(e=>e.json()).then(e=>{
|
||||||
var firstLink = document.createElement('a');
|
var firstLink = document.createElement('a');
|
||||||
firstLink.innerText = "First";
|
firstLink.innerText = "First";
|
||||||
|
|
Loading…
Reference in New Issue