mirror of
https://gitlab.com/walljm/dynamicbible.git
synced 2025-07-25 16:29:49 -04:00
- fixed localStorage errors.
- new android build
This commit is contained in:
parent
be32335b40
commit
60e315f6b8
@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="walljm.dynamicbible"
|
||||
android:versionCode="7"
|
||||
android:versionName="1.3.4" >
|
||||
android:versionCode="8"
|
||||
android:versionName="1.3.5" >
|
||||
<supports-screens
|
||||
android:smallScreens="false"
|
||||
android:normalScreens="true"
|
||||
|
@ -24,6 +24,7 @@ em {font-style: normal;}
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
border: 2px solid #999;
|
||||
min-width: 300px;
|
||||
}
|
||||
|
||||
#searchvalue
|
||||
|
@ -121,10 +121,12 @@ var Settings = {
|
||||
Load: function() {
|
||||
if(typeof(Storage)!=="undefined")
|
||||
{
|
||||
$("#resultwrap").css("float", localStorage.Panes);
|
||||
$("#searchresultswrap").css("float", localStorage.Panes);
|
||||
|
||||
if (localStorage.Search == "none") {
|
||||
if (localStorage.Panes !== "undefined") {
|
||||
$("#resultwrap").css("float", localStorage.Panes);
|
||||
$("#searchresultswrap").css("float", localStorage.Panes);
|
||||
}
|
||||
|
||||
if (localStorage.Search !== "undefined" && localStorage.Search == "none") {
|
||||
$("#searchresultswrap").css("display", "none");
|
||||
$("#showhidesearch").html("Show Search");
|
||||
$("#resultwrap").css("width", "100%");
|
||||
@ -134,28 +136,33 @@ var Settings = {
|
||||
$("#showhidesearch").html("Hide Search");
|
||||
$("#resultwrap").css("width", "70%");
|
||||
}
|
||||
|
||||
$("#result").css("font-size", localStorage.FontSize);
|
||||
$("#result").css("font-family", localStorage.Font);
|
||||
$("#changefont").val(localStorage.Font);
|
||||
|
||||
if (localStorage.StrongsAsDialog == "false") {
|
||||
if (localStorage.FontSize !== "undefined") {
|
||||
$("#result").css("font-size", localStorage.FontSize);
|
||||
}
|
||||
if (localStorage.Font !== "undefined") {
|
||||
$("#result").css("font-family", localStorage.Font);
|
||||
$("#changefont").val(localStorage.Font);
|
||||
}
|
||||
if (localStorage.StrongsAsDialog !== "undefined" && localStorage.StrongsAsDialog == "false") {
|
||||
$("#display-strongs-as-dialog")[0].checked = false;
|
||||
} else {
|
||||
$("#display-strongs-as-dialog")[0].checked = true;
|
||||
}
|
||||
|
||||
$("#resultwrap").html(localStorage.Results);
|
||||
$("#searchresultswrap").html(localStorage.SearchResults);
|
||||
$("#resultwrap").find(".hiddenlink").click(function(e) {
|
||||
Util.HandleHiddenLink(e);
|
||||
});
|
||||
$("#resultwrap").find(".removeresult").click(function(e) {
|
||||
Util.RemoveResult(e);
|
||||
});
|
||||
$("#searchresultswrap").find(".link").click(function(e) {
|
||||
Util.HandleLink(e);
|
||||
});
|
||||
if (localStorage.Results !== "undefined" && localStorage.SearchResults !== "undefined") {
|
||||
$("#resultwrap").html(localStorage.Results);
|
||||
$("#searchresultswrap").html(localStorage.SearchResults);
|
||||
$("#resultwrap").find(".hiddenlink").click(function(e) {
|
||||
Util.HandleHiddenLink(e);
|
||||
});
|
||||
$("#resultwrap").find(".removeresult").click(function(e) {
|
||||
Util.RemoveResult(e);
|
||||
});
|
||||
$("#searchresultswrap").find(".link").click(function(e) {
|
||||
Util.HandleLink(e);
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
Save: function() {
|
||||
@ -166,7 +173,6 @@ var Settings = {
|
||||
localStorage.FontSize = $("#result").css("font-size");
|
||||
localStorage.Font = $("#result").css("font-family");
|
||||
localStorage.StrongsAsDialog = $("#display-strongs-as-dialog")[0].checked;
|
||||
localStorage.Results = $("#result").html();
|
||||
}
|
||||
},
|
||||
ShowHideSearch: function() {
|
||||
|
@ -24,6 +24,7 @@ em {font-style: normal;}
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
border: 2px solid #999;
|
||||
min-width: 300px;
|
||||
}
|
||||
|
||||
#searchvalue
|
||||
|
48
js/common.js
48
js/common.js
@ -121,10 +121,12 @@ var Settings = {
|
||||
Load: function() {
|
||||
if(typeof(Storage)!=="undefined")
|
||||
{
|
||||
$("#resultwrap").css("float", localStorage.Panes);
|
||||
$("#searchresultswrap").css("float", localStorage.Panes);
|
||||
|
||||
if (localStorage.Search == "none") {
|
||||
if (localStorage.Panes !== "undefined") {
|
||||
$("#resultwrap").css("float", localStorage.Panes);
|
||||
$("#searchresultswrap").css("float", localStorage.Panes);
|
||||
}
|
||||
|
||||
if (localStorage.Search !== "undefined" && localStorage.Search == "none") {
|
||||
$("#searchresultswrap").css("display", "none");
|
||||
$("#showhidesearch").html("Show Search");
|
||||
$("#resultwrap").css("width", "100%");
|
||||
@ -134,28 +136,33 @@ var Settings = {
|
||||
$("#showhidesearch").html("Hide Search");
|
||||
$("#resultwrap").css("width", "70%");
|
||||
}
|
||||
|
||||
$("#result").css("font-size", localStorage.FontSize);
|
||||
$("#result").css("font-family", localStorage.Font);
|
||||
$("#changefont").val(localStorage.Font);
|
||||
|
||||
if (localStorage.StrongsAsDialog == "false") {
|
||||
if (localStorage.FontSize !== "undefined") {
|
||||
$("#result").css("font-size", localStorage.FontSize);
|
||||
}
|
||||
if (localStorage.Font !== "undefined") {
|
||||
$("#result").css("font-family", localStorage.Font);
|
||||
$("#changefont").val(localStorage.Font);
|
||||
}
|
||||
if (localStorage.StrongsAsDialog !== "undefined" && localStorage.StrongsAsDialog == "false") {
|
||||
$("#display-strongs-as-dialog")[0].checked = false;
|
||||
} else {
|
||||
$("#display-strongs-as-dialog")[0].checked = true;
|
||||
}
|
||||
|
||||
$("#resultwrap").html(localStorage.Results);
|
||||
$("#searchresultswrap").html(localStorage.SearchResults);
|
||||
$("#resultwrap").find(".hiddenlink").click(function(e) {
|
||||
Util.HandleHiddenLink(e);
|
||||
});
|
||||
$("#resultwrap").find(".removeresult").click(function(e) {
|
||||
Util.RemoveResult(e);
|
||||
});
|
||||
$("#searchresultswrap").find(".link").click(function(e) {
|
||||
Util.HandleLink(e);
|
||||
});
|
||||
if (localStorage.Results !== "undefined" && localStorage.SearchResults !== "undefined") {
|
||||
$("#resultwrap").html(localStorage.Results);
|
||||
$("#searchresultswrap").html(localStorage.SearchResults);
|
||||
$("#resultwrap").find(".hiddenlink").click(function(e) {
|
||||
Util.HandleHiddenLink(e);
|
||||
});
|
||||
$("#resultwrap").find(".removeresult").click(function(e) {
|
||||
Util.RemoveResult(e);
|
||||
});
|
||||
$("#searchresultswrap").find(".link").click(function(e) {
|
||||
Util.HandleLink(e);
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
Save: function() {
|
||||
@ -166,7 +173,6 @@ var Settings = {
|
||||
localStorage.FontSize = $("#result").css("font-size");
|
||||
localStorage.Font = $("#result").css("font-family");
|
||||
localStorage.StrongsAsDialog = $("#display-strongs-as-dialog")[0].checked;
|
||||
localStorage.Results = $("#result").html();
|
||||
}
|
||||
},
|
||||
ShowHideSearch: function() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user