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


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

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

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



blog comments powered by Disqus