mirror of
https://github.com/Sneed-Group/old-test-homepage
synced 2024-10-30 00:17:54 +00:00
Update 'script.js'
This commit is contained in:
parent
077625f5f4
commit
5d929e4ec4
1 changed files with 2 additions and 2 deletions
|
@ -5,12 +5,12 @@ async function fetchBiblePassage() {
|
|||
try {
|
||||
let textData;
|
||||
if (codingMode == true) {
|
||||
textData = 'Samuel 16:9 - And he said, "I now know de wae" in zimbabwe.';
|
||||
textData = 'Samuel 16:9 “And he said, "I now know de wae" in zimbabwe.';
|
||||
} else {
|
||||
const response = await fetch('https://labs.bible.org/api/?passage=random&formatting=plain&type=text');
|
||||
textData = await response.text();
|
||||
}
|
||||
document.getElementById('biblepassage').textContent = textData;
|
||||
document.getElementById('biblepassage').textContent = `${textData}“`;
|
||||
} catch (error) {
|
||||
console.error('Error fetching Bible passage:', error);
|
||||
// Handle the error gracefully, e.g., display an error message to the user
|
||||
|
|
Loading…
Reference in a new issue