diff --git a/index2.html b/index2.html index 2319c913..8eda2261 100644 --- a/index2.html +++ b/index2.html @@ -94,6 +94,8 @@ G1234 (displays the Strong's definition for the Greek # 1234)
Jesus (searches for "Jesus". all search terms assume boolean AND, i.e. "Jesus Christ" assumes "Jesus AND Christ". an word without a number is interpreted as search).

+

Terms Excluded from Search Index

+

"us", "these", "her", "saith", "shalt", "let", "do", "your", "we", "no", "go", "if", "at", "an", "so", "before", "also", "on", "had", "you", "there", "then", "up", "by", "upon", "were", "are", "this", "when", "thee", "their", "ye", "will", "as", "thy", "my", "me", "have", "from", "was", "but", "which", "thou", "all", "it", "with", "them", "him", "they", "is", "be", "not", "his", "i", "shall", "a", "for", "unto", "he", "in", "to", "that", "of", "and", "the"

Notes:

multiple lookups can be made using a semicolon as a separator, i.e. "Ruth 1; g1234; Jesus").
diff --git a/js/common.js b/js/common.js index a36103e4..94a3eae1 100644 --- a/js/common.js +++ b/js/common.js @@ -95,7 +95,7 @@ var Search = function(sv) { var original_q = q; // its a strongs lookup var dict = q.substring(0, 1); - + if (dict.search(/h/i) != -1) { dict = "heb"; } else { @@ -176,10 +176,6 @@ var Settings = { if (ref != undefined && ref.trim() != "") { Search(ref); - //var myref = new Reference(ref); - //var r = Bible.GetPassage(myref.book, myref.startchapter, myref.endchapter, myref.startverse, myref.endverse); - - //Bible.DisplayPassage(r.cs, myref, r.testament); } }); } @@ -492,7 +488,7 @@ var Strongs = { // put together the display. // ok. we have to do this because click events seem to be cumulative with jquery. - var t = $("

" + trans + " (" + r.sn + ") - " + pron + " - " + title + " - " + desc + "
" + rtxt + crtxt + "

"); + var t = $("

" + r.prefix + r.sn + "

" + trans + " (" + r.sn + ") - " + pron + " - " + title + " - " + desc + "
" + rtxt + crtxt + "

"); t.find(".link").click(function(e) { Util.HandleLink(e); @@ -514,7 +510,7 @@ var Strongs = { DisplayStrongs: function(r) { try { var t = Strongs.BuildStrongs(r); - + $("#result").prepend(t); return false; } catch (err) { @@ -664,12 +660,12 @@ var Words = { if (refs.length > 0) { return refs[0].refs; } else { - return null; + return []; } } catch (err) { Util.HandleError(err); } - return null; + return []; }, BuildIndexArray: function() { var words = new Array(); diff --git a/js/main.js b/js/main.js index 2ce7c704..14713b8e 100644 --- a/js/main.js +++ b/js/main.js @@ -38,7 +38,7 @@ $(document).ready(function() // load querystring var ref = decodeURIComponent(Util.GetUrlVars().r); if (ref !== "undefined") { -// remember the settings, first, because if you have results, the load process would wipe out the passage you want to load. + // remember the settings, first, because if you have results, the load process would wipe out the passage you want to load. Settings.Load(); // now load the passage from the querystring. Search(ref); @@ -47,7 +47,7 @@ $(document).ready(function() Settings.Load(); } -// you need to do this last, otherwise the settings load resets the window height. + // you need to do this last, otherwise the settings load resets the window height. $(window).bind("resize", function() { $(".my-breakpoint.ui-grid-c .ui-block-a").css("width", 55);