diff --git a/index.html b/index.html
index c885cf9f..f2252d97 100644
--- a/index.html
+++ b/index.html
@@ -12,10 +12,11 @@
The Bible with Strong's Numbers and Cross References
+
-
-
+
+
diff --git a/js/common.js b/js/common.js
index 87271b38..50fa2385 100644
--- a/js/common.js
+++ b/js/common.js
@@ -127,6 +127,46 @@ function Search(sv)
var Settings = {
+ Load: function()
+ {
+ var str = $.cookie('settings');
+ if (str != null)
+ {
+ var s = str.split(",");
+
+ $("#resultwrap").css("float", s[0]);
+ $("#searchresultswrap").css("float", s[0]);
+
+ if (s[1] == "none")
+ {
+ $("#searchresultswrap").css("display", "none");
+ $("#showhidesearch").html("Show Search");
+ $("#resultwrap").css("width", "100%");
+
+ }
+ else
+ {
+ $("#searchresultswrap").css("display", "block");
+ $("#showhidesearch").html("Hide Search");
+ $("#resultwrap").css("width", "70%");
+ }
+
+ $("#result").css("font-size", s[2]);
+ $("#result").css("font-family", s[3]);
+ }
+ },
+ Save: function()
+ {
+ var s = {};
+ s.Panes = $("#resultwrap").css("float");
+ s.Search = $("#searchresultswrap").css("display");
+ s.FontSize = $("#result").css("font-size");
+ s.Font = $("#result").css("font-family");
+
+ var str = s.Panes + "," + s.Search + "," + s.FontSize + "," + s.Font;
+
+ $.cookie('settings', str, { expires: 365 });
+ },
ShowHideSearch: function()
{
var o = $("#showhidesearch");
@@ -146,6 +186,7 @@ var Settings = {
o.html("Hide Search");
r.css("width", "70%");
}
+ this.Save();
},
SwitchPanes: function()
{
@@ -162,20 +203,24 @@ var Settings = {
s.css("float", "right");
r.css("float", "right");
}
+ this.Save();
},
IncreaseResultFontSize: function()
{
var s = $("#result").css("font-size");
$("#result").css("font-size", parseInt(s) + 1);
+ this.Save();
},
DecreaseResultFontSize: function()
{
var s = $("#result").css("font-size");
$("#result").css("font-size", parseInt(s) - 1);
+ this.Save();
},
ChangeResultFont: function(fontfamily)
{
$("#result").css("font-family", fontfamily);
+ this.Save();
}
}