An open API service indexing awesome lists of open source software.

https://github.com/naemazam/random-quran-ayat

This Website will Generate Random Quran Ayat With Arabic and English Meaning. You can also share it on twitter or Facebook.
https://github.com/naemazam/random-quran-ayat

api html-css-javascript javascript

Last synced: 5 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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

![](./Capture.PNG)

## API Reference

#### Get ayah

```js
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](https://choosealicense.com/licenses/mit/)