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;
|
||||
padding-left: 55px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#main .block {
|
||||
|
@ -69,6 +69,7 @@
|
||||
<h3>Settings</h3>
|
||||
<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="break-on-verses" id="break-on-verses" />Break on Verses</label></li>
|
||||
<li><label>Select Font:
|
||||
<select id="changefont">
|
||||
<option value="georgia" selected="selected">Georgia</option>
|
||||
|
14
js/common.js
14
js/common.js
@ -173,6 +173,12 @@ var Settings = {
|
||||
// $("#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) {
|
||||
$.each(
|
||||
localStorage.Results.replace(/;$/, '').split(';'),
|
||||
@ -198,7 +204,8 @@ var Settings = {
|
||||
localStorage.Search = $("#searchresultswrap").css("display");
|
||||
localStorage.FontSize = $("#result").css("font-size");
|
||||
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 += "<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>");
|
||||
|
@ -37,6 +37,11 @@ $(document).ready(function()
|
||||
Settings.DecreaseResultFontSize();
|
||||
return false;
|
||||
});
|
||||
$("#break-on-verses").click(function()
|
||||
{
|
||||
Settings.Save();
|
||||
return false;
|
||||
});
|
||||
$("#showhelp").click(function()
|
||||
{
|
||||
$("#help").dialog({
|
||||
|
Loading…
x
Reference in New Issue
Block a user