Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 1011 Bytes

README.md

File metadata and controls

43 lines (27 loc) · 1011 Bytes

Random Quran Ayat

The Quran, also romanized Qur'an or Koran, is the central religious text of Islam, believed by Muslims to be a revelation from Allah. It is widely regarded as the finest work in classical Arabic literature. It is organized in 114 chapters, which consist of verses

This Website will Generate Random Quran Ayat With Arabic and English Meaning. You can also share it on twitter or Facebook.

Demo

API Reference

Get ayah

  function getQuote() {
  var ayah = Math.floor(Math.random() * 6236) + 1 
  var url = "https://api.alquran.cloud/ayah/"+ayah+"/en.asad";
  var urlArabic = "https://api.alquran.cloud/ayah/"+ayah;
  arText;
  enText;
  surah;
  ayahNumber;
  surahAndAyah;
  
  $.getJSON( urlArabic, function(data) {
    arText = data.data.text;
    document.getElementById("arabicVerseText").innerHTML = arText;
    console.log(arText);
  });

🚀 Special Thank You

SAS

License

MIT