Нашел Библию в формате JSON.
Написал такой код:
let wrapper = document.querySelector('.wrapper')
let request = new XMLHttpRequest();
request.open('GET', 'http://127.0.0.1:5500/rst.json');
request.responseType = 'text';
request.send();
function random(min, max) {
return Math.floor(Math.random() * (max - min) + min)
}
request.onload = function () {
var superHeroesText = request.response;
var superHeroes = JSON.parse(superHeroesText)
for (let key in superHeroes) {
let getAllBooks = superHeroes[key]
let getBook = getAllBooks[random(0, 66)]
let getAllChapters = getBook['Chapters']
let getChapterLength = getAllChapters.length
let getChapter = getAllChapters[random(0, getChapterLength)]
let getAllVerses = getChapter['Verses']
let getVersesLength = getAllVerses.length
let getVers = getAllVerses[random(0, getVersesLength)]
let point = getVers['Text']
console.log(getBook);
wrapper.innerHTML = `<div class="bible-text">${point}</div>`
wrapper.innerHTML += `<div class="bible-scr">(${getBook['BookName']} ${getChapter['ChapterId']}:${getVers['VerseId']})</div>`
}
}
Все прекрасно работает, всем спасибо!