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