Quran.ayah.listFromPage( page )

Gets the list of surah & ayah numbers from a page number for a given page


Quran.ayah.listFromPage( page )

Page number need to be added here

Returns: object


Examples:

Example: List of Surah & Ayah numbers on a page from a page number

<!DOCTYPE html>
<html>
<head>
  <style>#demo{ color:lightBlue; }</style>
  <script src="http://code.jquery.com/jquery-latest.js"></script>
  <script src="http://globalquran.com/javascript/Quran.js"></script>
</head>
<body>
  <div id="demo">

</div>
<script>
Quran.init(); // initial setup run - required
var ayahs = Quran.ayah.listFromPage(604);
$.each(ayahs, function (i, line) {
   $('#demo').append(line.surah+':'+line.ayah+'<br />'); 
});
</script>
</body>
</html>

Demo:

Comments


blog comments powered by Disqus

.