This commit is contained in:
walljm 2013-04-15 14:31:44 -04:00
commit 0ad2f1bf41
4 changed files with 924 additions and 1248 deletions

View File

@ -1,7 +1,7 @@
//
// This code was written by Jason Wall. Feel free to use, and if you can, include a link back to www.walljm.com
// This code was written by Jeremy and Jason Wall.
// Feel free to use, and if you can, include a link back to www.walljm.com
// Jason@walljm.com // www.walljm.com
//
// Jeremy@marzhillstudios.com // jeremy.marzhillstudios.com
String.prototype.trim = function() {
return this.replace(/^\s+|\s+$/g, "");
@ -645,3 +645,14 @@ function bookName(booknum) {
return book[booknum];
}
Reference.prototype.toString = function() {
var ref = this.bookname.concat(" ").
concat(this.startchapter).concat(":").
concat(this.startverse);
if (this.startchapter == this.endchapter) {
return ref.concat("-").concat(this.endverse);
}
return ref.concat("-").concat(this.endchapter)
.concat(":").concat(this.endverse);
};

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
//
// This code was written by Jason Wall. Feel free to use, and if you can, include a link back to www.walljm.com
// This code was written by Jeremy and Jason Wall.
// Feel free to use, and if you can, include a link back to www.walljm.com
// Jason@walljm.com // www.walljm.com
//
// Jeremy@marzhillstudios.com // jeremy.marzhillstudios.com
String.prototype.trim = function() {
return this.replace(/^\s+|\s+$/g, "");
@ -645,3 +645,14 @@ function bookName(booknum) {
return book[booknum];
}
Reference.prototype.toString = function() {
var ref = this.bookname.concat(" ").
concat(this.startchapter).concat(":").
concat(this.startverse);
if (this.startchapter == this.endchapter) {
return ref.concat("-").concat(this.endverse);
}
return ref.concat("-").concat(this.endchapter)
.concat(":").concat(this.endverse);
};

File diff suppressed because it is too large Load Diff