Quran.surah.detail( surah )

Gets the surah detail array


Quran.surah.detail( surah )

Surah number need to be added here

Returns: array [start, ayahs, order, rukus, arabic_name, english_name, english_meaning, type]


Examples:

Example: Detail of the surah

<!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 detail = Quran.surah.detail(2);
$('#demo').append(detail.arabic_name);
$('#demo').append(detail.english_name+' - '+detail.english_meaning);
$('#demo').append('starts after verse number '+detail.start);
$('#demo').append('ayahs has '+detail.ayahs);
$('#demo').append('order '+detail.order);
$('#demo').append('rukus '+detail.rukus);
$('#demo').append('type '+detail.type);
</script>
</body>
</html>

Demo:

Comments


blog comments powered by Disqus

.