Giter Site home page Giter Site logo

kjellouli / ayat.js Goto Github PK

View Code? Open in Web Editor NEW
17.0 4.0 8.0 947 KB

Ayat.js - Generate Quranic Verses by Topics, Languages, Reciters and other Options

License: MIT License

CSS 17.58% HTML 3.35% JavaScript 79.07%
quran verses islam reciter allah

ayat.js's People

Contributors

ammarbinfaisal avatar kjellouli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ayat.js's Issues

Add the ability to return ayat in JSON

It would be to also serve as a sort of topic-driven wrapper to api.globalquran, by providing the ability to return ayat in plain JSON as well as the current HTML output.

Allow the user to request a particular translation (if > 1 available)

At least for English, perhaps for more languages, it would be cool if this supported all the translations available from api.globalquran. Or, for a small first pass, a few of the more well-known English tranlations in addition to currently-used yusufAli, such as sahih, arberry, pickthall, asad and maududi.

sample call in readme has a wrong JSON attribute

The sample call reads :

$("#container").Ayat({
topic: 'women'...

This attribute should be "theme", not "topic." Passing topic causes the code to consider the theme unset and return random verses, which could be confusing if you haven't looked through the code.

Add the ability to return a simple link to quranindex.info ayat in rendered form.

E.G. return "http://quranindex.info/search/abraham" for input topic "Abraham." Or perhaps a shortened version of such a link.

This would be a nice option for outputting links to post in social media etc, since quranindex already provides a hosted space for reaching the ayah by topic. Not sure how passing along language/translation params would work though.

I guess for this use case maybe you would not even need to call the globalquran api directly (instead letting quranindex do it when the returned link is visted)?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.