47 lines
1.4 KiB
HTML
47 lines
1.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Scripture Viewer</title>
|
|
<link rel="stylesheet" href="./bulma.min.css">
|
|
</head>
|
|
<body>
|
|
<section class="hero is-primary">
|
|
<div class="hero-body">
|
|
<p class="title">
|
|
Scripture Viewer
|
|
</p>
|
|
<p class="subtitle">
|
|
Read The Bible in browser
|
|
<br>
|
|
<a class="button" href="./printable">Printable</a>
|
|
</p>
|
|
</div>
|
|
</section>
|
|
|
|
<article class="tile is-child notification is-primary">
|
|
<p class="title">Scriptures</p>
|
|
<p class="subtitle">List Of Scriptures</p>
|
|
<div class="content" id="scriptures">
|
|
|
|
</div>
|
|
</article>
|
|
|
|
<script defer>
|
|
const scriptures=document.getElementById('scriptures');
|
|
fetch('./api/v1/GetBibles').then(e=>e.json()).then(e=>{
|
|
e.forEach(element => {
|
|
var b = document.createElement('a');
|
|
b.href = `./bible?bible=${encodeURIComponent(element)}`;
|
|
b.innerText = element;
|
|
|
|
|
|
scriptures.appendChild(b);
|
|
scriptures.appendChild(document.createElement('br'))
|
|
});
|
|
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |