Skip to content

kurancilar/json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kur'an-ı Kerîm JSON

Sure, ayet ve sesleri JSON dosyası olarak barındırın.

.
├── LICENSE
├── README.md
├── audio
|   └── <SURE_NUMARASI:001-114>
|       ├── <AYET NUMARASI:001-n>.mp3
|       └── index.json
└── sure
    └── <SURE_NUMARASI>.json

Adresler

https://kurancilar.github.io/json/sure/<SURE_NUMARASI>.json

https://kurancilar.github.io/json/audio/<SURE_NUMARASI:001-114>.json

Örnek Kullanım

Vanilla JavaScript:

    <center>
        <div style="text-align: right; width: 50%; font-size: 3rem" id="ayetler"></div>
    </center>
    <script>
        fetch("https://kurancilar.github.io/json/sure/1.json")
            .then(dat => dat.json())
            .then(json => {
                json.verses.forEach(ayet => {
                    document.getElementById("ayetler").innerHTML +=
                        "<span>" + ayet.arabic + "</span><br>";
                })
            })
    </script>

Lisans

MIT Lisansı