Quran.ayah.page( surah [, ayah] )

Gets the page number from given surah & ayah number


Quran.ayah.page( surah [, ayah] )

Surah number need to be added here

Ayah number need to be added here, default value 1

Returns: integer


Examples:

Example: page number from surah & ayah 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
$('#demo').append('Surah & Ayah 114:1 belongs to page number '+Quran.ayah.page(114, 1));
</script>
</body>
</html>

Demo:

Comments


blog comments powered by Disqus

.