AJAX Bible App Update

I updated the Bible App. It now shows verse numbers. The Bible Parsing Javascript Object has also been updated. It will now accept references that are fully spelled out or abbreviated. You can enter just the verse, or just the chapter. And it is case insensitive. So the following types of refs will work:

  • Matthew 3:9
  • Mat 3
  • 1jn 2:11-12
  • 1 john 3:1
  • genesis 4
  • john 3:16

and so on. You can find the entry to the bible app on the Projects page. I will soon zip everything up for download, though you could get all the files you needed now. 

Update:
There seems to be a bug in the reference parsing object. For some reason 1jn or 1john brings up references from revelation. The issue lies in my regex expressions. I’d be grateful if someone were to point out where the problem is. ;)

Update 2:
I found the error in the parsing object. It now works just fine.

Link

iBelieve shuffle lanyard replacement caps. "But now bring me a man who plays music. And when the man played music, the groove came upon him. 2 Jobs 3:15" 

What I Want for Christmas

I know a lot of you are worried about what you should get me for Christmas, and as the season is fast approaching, I though it would be best to alleviate your discomfort. Here are some items I would like for Christmas:

Well, worry no more and don’t let what you should get me bother you. ;) 

The Greatest Story Ever Told, in Verse

Once was a world that was void
And dark were the waters therein
Then Majesty moved on the deep
And life in existence was spoken

With care and for glory He fashioned
Out of spirit, and body and soul
Like Him a creature of sentience
In fellowship with Him made whole

But pride broke the bond He created
And torn was the fellowship sweet
Cursed was the life He intended
For the man whose heart He made beat

The creature no longer immortal
For death by the curse on him fell
Judgement for man’s pride had ruined
Man’s Life and his children as well

Yet Love would not be defeated
So precious to God were all men
The son volunteered to pay penance
And restore to good standing again

A plan was put into production
Great love through the ages made known
By death the Son purchased redemption
Greater love had never been shown

For love such sinless perfection
Made sin and was laid in the grave
But glory could not be denied Him
By His Father from death He was raised

Now we preach a glorious message
How man can be saved from his sin
Salvation to those who will ask it
Confessing and recieving Him in
 

Javascript Bible Reference Parsing Object

In an effort to encourage the coding of a bible reference object (see previous post on my bible app), I though I would post some specifications in a clearer format than I had previously, along with some example inputs and outputs. Feel free to comment in the comments section, and if you build one, let me know, I would be more than happy to host it here with proper attribution of course. If we used a GPL type system, the library could become very robust. Thanks!

Bible Parsing Object Definition:

Input: String
Output: Object with attributes (book, bookname, chapter, startverse, endverse, [error])

Notes:

Reference: "Matthew"
Returns: error="Invalid Reference. Please include a chapter and/or verse range"

Reference: "Matthew 1"
Returns: book=’matthew’, bookname=’40′, chapter=’1′, startverse=’1′, endverse=’25′

Reference: "Matthew 1:1"
Returns: book=’matthew’, bookname=’40′, chapter=’1′, startverse=’1′, endverse=’1′

Reference: "Matthew 1:1-5"
Returns: book=’matthew’, bookname=’40′, chapter=’1′, startverse=’1′, endverse=’5′

Common Abbreviations should work, but the book should always return the full name.

Example Object:


function Reference(bibleRef) {

var book;
var bookname;
var chapter;
var startverse;
var endverse;

// A lot of parsing and stuff happend here. ;)

this.book=book;
this.bookname=bookname;
this.chapter=chapter;
this.startverse=startverse;
this.endverse=endverse;

}