Promise Verse v1.0 Documentation


Promise Verses encourages and provides hope to the People each year. But since most of us are stuck at Home, it has been difficult task for Churches and Individuals to print and give Promise Verses. So, to help you with that, we have developed a small Program which can be easily added to your website with a few lines of code and your done and share it with your Church Members, families, friends and others. So, Why wait? lets get started.


# Installation

You can install Promise Verses by downloading the minified version of Javascript file (from Here) which can be hosted on your own server or you can load it from a third-party CDN providers.

After downloading the pverse.js file. Add the following script in your body tag.


            <body>
            ...
            ...
            <script src="pverse.js">
            </body>
        

Or if you are using third-party CDN providers. Add the following script in your body tag.


            <body>
            ...
            ...
            <script src="https://cdn.jsdelivr.net/gh/kevinissac/promiseverse/index.js">
            </body>
        

# Setup

To set up the Promise Verse add the following javascript script tag below.


            var proverse = new PromiseVerse("./bible.xml")
            proverse.useCustom(array)
         
            document.getElementById("verse1").innerText = proverse.getVerse()
            document.getElementById("reference").innerHTML = proverse.getReference()