Gets the surah & ayah number from a given page number
Quran.ayah.fromPage( page )
Page number need to be added here
Returns: object - example: {surah: 1, ayah: 2}
Example: Surah & Ayah number 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 $('#demo').append('Page 604 starts with surah & ayah number '+Quran.ayah.fromPage(604).surah+':'+Quran.ayah.fromPage(604).ayah); </script> </body> </html>
Demo:
.