mirror of
https://gitlab.com/walljm/dynamicbible.git
synced 2025-07-26 17:10:11 -04:00
FEATURE: Added option to display verses by verse or inline.
This commit is contained in:
parent
1f1479ceea
commit
4413330af1
@ -122,7 +122,6 @@ a:hover {
|
|||||||
{
|
{
|
||||||
display: block;
|
display: block;
|
||||||
padding-left: 55px;
|
padding-left: 55px;
|
||||||
width: 100%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#main .block {
|
#main .block {
|
||||||
|
@ -69,6 +69,7 @@
|
|||||||
<h3>Settings</h3>
|
<h3>Settings</h3>
|
||||||
<ul data-role="listview">
|
<ul data-role="listview">
|
||||||
<!--<li><label><input type="checkbox" name="display-strongs-as-dialog" id="display-strongs-as-dialog" />Display Strong's in Dialog</label></li>-->
|
<!--<li><label><input type="checkbox" name="display-strongs-as-dialog" id="display-strongs-as-dialog" />Display Strong's in Dialog</label></li>-->
|
||||||
|
<li><label><input type="checkbox" name="break-on-verses" id="break-on-verses" />Break on Verses</label></li>
|
||||||
<li><label>Select Font:
|
<li><label>Select Font:
|
||||||
<select id="changefont">
|
<select id="changefont">
|
||||||
<option value="georgia" selected="selected">Georgia</option>
|
<option value="georgia" selected="selected">Georgia</option>
|
||||||
|
16
js/common.js
16
js/common.js
@ -172,7 +172,13 @@ var Settings = {
|
|||||||
//} else {
|
//} else {
|
||||||
// $("#display-strongs-as-dialog")[0].checked = true;
|
// $("#display-strongs-as-dialog")[0].checked = true;
|
||||||
//}
|
//}
|
||||||
|
|
||||||
|
if (localStorage.BreakOnVerses !== undefined && localStorage.BreakOnVerses == "false") {
|
||||||
|
$("#break-on-verses").val(false);//[0].checked = false;
|
||||||
|
} else {
|
||||||
|
$("#break-on-verses").val(true);//[0].checked = true;
|
||||||
|
}
|
||||||
|
|
||||||
if (localStorage.Results !== undefined) {
|
if (localStorage.Results !== undefined) {
|
||||||
$.each(
|
$.each(
|
||||||
localStorage.Results.replace(/;$/, '').split(';'),
|
localStorage.Results.replace(/;$/, '').split(';'),
|
||||||
@ -198,7 +204,8 @@ var Settings = {
|
|||||||
localStorage.Search = $("#searchresultswrap").css("display");
|
localStorage.Search = $("#searchresultswrap").css("display");
|
||||||
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.BreakOnVerses = $("#break-on-verses")[0].checked;
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
@ -263,7 +270,10 @@ var Bible = {
|
|||||||
r += v.w[w].t;
|
r += v.w[w].t;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
r += "<br />";
|
if ($("#break-on-verses").is(":checked"))
|
||||||
|
{
|
||||||
|
r += "<br />";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var t = $("<div class='passage result'><a href='javascript:void(0)' class='removeresult' style='border: 0;'><img style='border: 0px;' src='images/delete.png' width='48' height='48' /></a><a href='#' class='trigger left'> </a><div class='tags panel left'></div><span class='resultbody'>" + "<h2><a class ='result-heading' href='http://www.dynamicbible.com/?r=" + ref.toString() + "'>" + ref.toString() + "</a></h2>" + r + "</span><br clear='all' /></div>");
|
var t = $("<div class='passage result'><a href='javascript:void(0)' class='removeresult' style='border: 0;'><img style='border: 0px;' src='images/delete.png' width='48' height='48' /></a><a href='#' class='trigger left'> </a><div class='tags panel left'></div><span class='resultbody'>" + "<h2><a class ='result-heading' href='http://www.dynamicbible.com/?r=" + ref.toString() + "'>" + ref.toString() + "</a></h2>" + r + "</span><br clear='all' /></div>");
|
||||||
|
@ -37,6 +37,11 @@ $(document).ready(function()
|
|||||||
Settings.DecreaseResultFontSize();
|
Settings.DecreaseResultFontSize();
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
$("#break-on-verses").click(function()
|
||||||
|
{
|
||||||
|
Settings.Save();
|
||||||
|
return false;
|
||||||
|
});
|
||||||
$("#showhelp").click(function()
|
$("#showhelp").click(function()
|
||||||
{
|
{
|
||||||
$("#help").dialog({
|
$("#help").dialog({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user