diff --git a/css/bible.css b/css/bible.css index b6393e24..c0f67703 100644 --- a/css/bible.css +++ b/css/bible.css @@ -136,9 +136,6 @@ h3 { font-weight: bold; padding: 0 10px; } -#result li { - background-color: #fff; - } #result { margin: 0 0 12px 12px; diff --git a/index.html b/index.html index e56ce90c..73255ff2 100644 --- a/index.html +++ b/index.html @@ -41,7 +41,7 @@ }); $("#showhelp").click(function() { - $("#help").dialog({draggable:true, width: 700, height: 500, resizable: false}); + $("#help").dialog({draggable:true, width: 700, height: 650, resizable: true}); }); $("#showhidesearch").click(function() { @@ -85,6 +85,7 @@ + Display Strongs in Dialog | Help | Hide Search | Switch Panes | Select Font: @@ -112,10 +113,12 @@ G1234 (displays the strongs 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).

- Notes: multiple lookups can be made useing a semicolon as a seperator, i.e. "Ruth 1; g1234; jesus").
+

Notes:

+
multiple lookups can be made useing a semicolon as a seperator, i.e. "Ruth 1; g1234; jesus").
+
The list of results in the main window are sortable, just click and drag to reorder them.


All greek/hebrew cross references translations are taken from the 1933 Websters version and often are not the same as the KJV translation.
-
All source materials was taken from the Zefania XML Bible Project on SourceForge.
-
Any Errors and Omission you find would be appreciated. Please contact me via www.jasonwall.org.

+
All source materials were taken from the Zefania XML Bible Project on SourceForge.
+
Any Errors and Omission you find would be appreciated. Please contact me via www.jasonwall.org.
Reference Parsing Tests diff --git a/js/common.js b/js/common.js index 9bb2feb3..ef43dbcd 100644 --- a/js/common.js +++ b/js/common.js @@ -100,7 +100,15 @@ function Search(sv) var results = Strongs.GetStrongs(q, dict); // display results. - Strongs.DisplayStrongs(results); + if ($("#display-strongs-as-dialog")[0].checked) + { + Strongs.DisplayStrongsDialog(results); + } + else + { + Strongs.DisplayStrongs(results); + + } } @@ -291,7 +299,7 @@ var Bible = { r += "
"; } } - var t = $("
  • " + "

    " + bookName(b) + " " + sch + ":" + sv + "-" + ech + ":" + ev + "

    " + r + "

  • "); + var t = $("
    " + "

    " + bookName(b) + " " + sch + ":" + sv + "-" + ech + ":" + ev + "

    " + r + "

    "); t.find(".hiddenlink").click(function(e) { @@ -482,8 +490,7 @@ var Strongs = { Util.HandleError(err); } }, - - DisplayStrongs: function(r) + BuildStrongs: function(r) { try { @@ -548,6 +555,19 @@ var Strongs = { Strongs.ShowHide(e); }); + return t; + } + catch (err) + { + Util.HandleError(err); + } + }, + DisplayStrongs: function(r) + { + try + { + var t = Strongs.BuildStrongs(r); + $("#result").prepend(t); return false; } @@ -556,6 +576,21 @@ var Strongs = { Util.HandleError(err); } }, + DisplayStrongsDialog: function(r) + { + try + { + var t = Strongs.BuildStrongs(r); + var d = $("
    ").append(t); + + d.dialog({draggable:true, width: 700, height: 500, resizable: true}); + return false; + } + catch (err) + { + Util.HandleError(err); + } + }, ShowHide: function(e) { var o = $(e.target);