45 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			HTML
		
	
	
	
			
		
		
	
	
			45 lines
		
	
	
		
			1.3 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
 | 
						|
          </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> |