mirror of
https://gitlab.com/walljm/dynamicbible.git
synced 2025-07-25 00:09:54 -04:00
FEATURE: last of the typescript refactor. Everything works now it seems
This commit is contained in:
parent
32baa98391
commit
589f10db8b
File diff suppressed because it is too large
Load Diff
@ -1,118 +1,155 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta name="author" content="Jason Wall" />
|
||||
<meta name="geo.country" content="US" />
|
||||
<meta name="dc.language" content="en" />
|
||||
<meta name="description" content="An AJAX implimentation of The King James Version Bible with Strong's Dictionary integrated." />
|
||||
<meta name="keywords" content="AJAX, KJV, King James Version, Strong's Dictionary, Strongs" />
|
||||
<head>
|
||||
<meta name="author" content="Jason Wall" />
|
||||
<meta name="geo.country" content="US" />
|
||||
<meta name="dc.language" content="en" />
|
||||
<meta name="description" content="An AJAX implimentation of The King James Version Bible with Strong's Dictionary integrated." />
|
||||
<meta name="keywords" content="AJAX, KJV, King James Version, Strong's Dictionary, Strongs" />
|
||||
|
||||
<title>The Bible with Strong's Numbers and Cross References</title>
|
||||
<title>The Bible with Strong's Numbers and Cross References</title>
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<link rel="stylesheet" href="css/jquery.mobile-1.4.5.min.css" />
|
||||
<link rel="stylesheet" href="css/themes/db.css" />
|
||||
<link rel="stylesheet" href="css/bible.css" />
|
||||
<link rel="stylesheet" href="css/jquery.mobile-1.4.5.min.css" />
|
||||
<link rel="stylesheet" href="css/themes/db.css" />
|
||||
<link rel="stylesheet" href="css/bible.css" />
|
||||
|
||||
<script src="js/jquery.min.js"></script>
|
||||
<script src="js/jquery.ui.js"></script>
|
||||
<script src="js/jquery.slidePanel.js"></script>
|
||||
<script src="js/jquery.mobile-1.4.5.js"></script>
|
||||
<script src="js/jquery.min.js"></script>
|
||||
<script src="js/jquery.ui.js"></script>
|
||||
<script src="js/jquery.slidePanel.js"></script>
|
||||
<script src="js/jquery.mobile-1.4.5.js"></script>
|
||||
|
||||
<script src="js/Reference.js"></script>
|
||||
<script src="js/Bible.js"></script>
|
||||
<script src="js/Globals.js"></script>
|
||||
<script src="js/Settings.js"></script>
|
||||
<script src="js/Strongs.js"></script>
|
||||
<script src="js/Words.js"></script>
|
||||
<script src="js/Util.js"></script>
|
||||
<script src="js/main.js"></script>
|
||||
<script src="js/Reference.js"></script>
|
||||
<script src="js/Bible.js"></script>
|
||||
<script src="js/Globals.js"></script>
|
||||
<script src="js/Settings.js"></script>
|
||||
<script src="js/Strongs.js"></script>
|
||||
<script src="js/Words.js"></script>
|
||||
<script src="js/Util.js"></script>
|
||||
<script src="js/main.js"></script>
|
||||
|
||||
<style>
|
||||
.panel-content { padding:3px; }
|
||||
<style>
|
||||
.panel-content {
|
||||
padding: 3px;
|
||||
}
|
||||
|
||||
.ui-btn-text { font-size: .75em;}
|
||||
h3 { font-size: 1em;}
|
||||
p {font-size: .8em;}
|
||||
.ui-btn-text {
|
||||
font-size: .75em;
|
||||
}
|
||||
|
||||
.ui-submit .ui-btn-inner .ui-btn-text { font-size: 1.2em;}
|
||||
.ui-submit {height:35px;}
|
||||
.ui-block-c div {
|
||||
margin-top: 9px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div data-role="page" id="mainpage">
|
||||
h3 {
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
<div data-role="header" data-theme="a">
|
||||
<div class="ui-grid-c my-breakpoint">
|
||||
<div class="ui-block-a"><a id="menuicon" href="#defaultpanel"></a></div>
|
||||
<div class="ui-block-b"><input id="searchvalue" type="search" /></div>
|
||||
<div class="ui-block-c"><input value="Search" type="submit" id="searchbtn" /></div>
|
||||
<div class="ui-block-d"><a id="searchicon" href="#searchpanel"></a></div>
|
||||
p {
|
||||
font-size: .8em;
|
||||
}
|
||||
|
||||
.ui-submit .ui-btn-inner .ui-btn-text {
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
.ui-submit {
|
||||
height: 35px;
|
||||
}
|
||||
|
||||
.ui-block-c div {
|
||||
margin-top: 9px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div data-role="page" id="mainpage">
|
||||
|
||||
<div data-role="header" data-theme="a">
|
||||
<div class="ui-grid-c my-breakpoint">
|
||||
<div class="ui-block-a"><a id="menuicon" href="#defaultpanel"></a></div>
|
||||
<div class="ui-block-b"><input id="searchvalue" type="search" /></div>
|
||||
<div class="ui-block-c"><input value="Search" type="submit" id="searchbtn" /></div>
|
||||
<div class="ui-block-d"><a id="searchicon" href="#searchpanel"></a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div data-role="content">
|
||||
<div id="resultwrap">
|
||||
<ul id="result"></ul>
|
||||
</div>
|
||||
</div>
|
||||
<!--
|
||||
<div data-role="content">
|
||||
<div data-role="tabs">
|
||||
<div data-role="navbar">
|
||||
<ul>
|
||||
<li><a href="#fragment-1" class="ui-btn-active">Display #1</a></li>
|
||||
<li><a href="#fragment-2">Display #2</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="fragment-1">
|
||||
<div id="resultwrap">
|
||||
<ul id="result"></ul>
|
||||
</div>
|
||||
</div>
|
||||
<div id="fragment-2">
|
||||
<div id="resultwrap">
|
||||
<ul id="result"></ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
-->
|
||||
<div data-role="panel" id="searchpanel" data-theme="a" data-position="right" data-display="overlay">
|
||||
<div class="panel-content">
|
||||
<h3>Search Results: <span id="searchTotal"></span></h3>
|
||||
<div id="searchresults"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div data-role="panel" id="defaultpanel" data-theme="a">
|
||||
<div class="panel-content">
|
||||
<h3>Settings</h3>
|
||||
<ul data-role="listview">
|
||||
<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>
|
||||
<option value="verdana">Verdana</option>
|
||||
<option value="courier">Courier</option>
|
||||
<option value="serif">Serif</option>
|
||||
<option value="sans-serif">Sans Serif</option>
|
||||
</select>
|
||||
</label>
|
||||
</li>
|
||||
<li><span style="letter-spacing:2px;"><a href="javascript:void();" id="shrinkfont">A<span style="font-size:12px;">A</span></a> | <a href="javascript:void();" id="growfont"><span style="font-size:12px;">A</span>A</a></span></li>
|
||||
</ul>
|
||||
<h3>Acceptable Search Items:</h3>
|
||||
<p>
|
||||
<b>John 1</b> (displays whole chapter)<br />
|
||||
<b>John 1-2</b> (displays both chapters<br />
|
||||
<b>John 1 - John 2</b> (same as above)<br />
|
||||
<b>John 1:3 - 2:4</b> (displays verses starting with chapter 1 verse 3 and ending with chapter 2 verse 4)<br />
|
||||
<b>John 1:3 - John 2:4</b> (same as above)<br />
|
||||
<b>John 1:3-5</b> (displays verses starting with chapter 1 verse 3 through chapter 1 vs 5)<br />
|
||||
<b>H1234</b> (displays the Strong's definition for the Hebrew # 1234)<br />
|
||||
<b>G1234</b> (displays the Strong's definition for the Greek # 1234)<br />
|
||||
<b>Jesus</b> (searches for "Jesus". all search terms assume boolean AND, i.e. "Jesus Christ" assumes "Jesus AND Christ". an word without a number is interpreted as search).<br />
|
||||
</p>
|
||||
<h3>Terms Excluded from Search Index</h3>
|
||||
<p> "us", "these", "her", "saith", "shalt", "let", "do", "your", "we", "no", "go", "if", "at", "an", "so", "before", "also", "on", "had", "you", "there", "then", "up", "by", "upon", "were", "are", "this", "when", "thee", "their", "ye", "will", "as", "thy", "my", "me", "have", "from", "was", "but", "which", "thou", "all", "it", "with", "them", "him", "they", "is", "be", "not", "his", "i", "shall", "a", "for", "unto", "he", "in", "to", "that", "of", "and", "the"</p>
|
||||
<h3>Notes:</h3>
|
||||
<p>
|
||||
multiple lookups can be made using a semicolon as a separator, i.e. "Ruth 1; g1234; Jesus"). <br />
|
||||
<br />The list of results in the main window are sortable, just click and drag to reorder them.<br /><br />
|
||||
<br />All Greek/Hebrew cross references translations are taken from the 1933 Webster's version and often are not the same as the KJV translation. <br />
|
||||
<br />All source materials were taken from the <a href="http://sourceforge.net/projects/zefania-sharp/">Zefania XML Bible Project</a> on SourceForge. <br />
|
||||
<br />Any Errors and Omission you find would be appreciated. Please contact me via <a href='http://www.jasonwall.org/'>www.jasonwall.org</a>.<br />
|
||||
</p>
|
||||
|
||||
|
||||
<div data-role="content">
|
||||
<div id="resultwrap">
|
||||
<ul id="result"></ul>
|
||||
</div><!-- /content -->
|
||||
</div>
|
||||
|
||||
<div data-role="panel" id="searchpanel" data-theme="a" data-position="right" data-display="overlay">
|
||||
<div class="panel-content">
|
||||
<h3>Search Results: <span id="searchTotal"></span></h3>
|
||||
<div id="searchresults"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div data-role="panel" id="defaultpanel" data-theme="a">
|
||||
<div class="panel-content">
|
||||
<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>
|
||||
<option value="verdana">Verdana</option>
|
||||
<option value="courier">Courier</option>
|
||||
<option value="serif">Serif</option>
|
||||
<option value="sans-serif">Sans Serif</option>
|
||||
</select>
|
||||
</label>
|
||||
</li>
|
||||
<li><span style="letter-spacing:2px;"><a href="javascript:void();" id="shrinkfont">A<span style="font-size:12px;">A</span></a> | <a href="javascript:void();" id="growfont"><span style="font-size:12px;">A</span>A</a></span></li>
|
||||
</ul>
|
||||
<h3>Acceptable Search Items:</h3>
|
||||
<p>
|
||||
<b>John 1</b> (displays whole chapter)<br />
|
||||
<b>John 1-2</b> (displays both chapters<br />
|
||||
<b>John 1 - John 2</b> (same as above)<br />
|
||||
<b>John 1:3 - 2:4</b> (displays verses starting with chapter 1 verse 3 and ending with chapter 2 verse 4)<br />
|
||||
<b>John 1:3 - John 2:4</b> (same as above)<br />
|
||||
<b>John 1:3-5</b> (displays verses starting with chapter 1 verse 3 through chapter 1 vs 5)<br />
|
||||
<b>H1234</b> (displays the Strong's definition for the Hebrew # 1234)<br />
|
||||
<b>G1234</b> (displays the Strong's definition for the Greek # 1234)<br />
|
||||
<b>Jesus</b> (searches for "Jesus". all search terms assume boolean AND, i.e. "Jesus Christ" assumes "Jesus AND Christ". an word without a number is interpreted as search).<br />
|
||||
</p>
|
||||
<h3>Terms Excluded from Search Index</h3>
|
||||
<p> "us", "these", "her", "saith", "shalt", "let", "do", "your", "we", "no", "go", "if", "at", "an", "so", "before", "also", "on", "had", "you", "there", "then", "up", "by", "upon", "were", "are", "this", "when", "thee", "their", "ye", "will", "as", "thy", "my", "me", "have", "from", "was", "but", "which", "thou", "all", "it", "with", "them", "him", "they", "is", "be", "not", "his", "i", "shall", "a", "for", "unto", "he", "in", "to", "that", "of", "and", "the"</p>
|
||||
<h3>Notes:</h3>
|
||||
<p>
|
||||
multiple lookups can be made using a semicolon as a separator, i.e. "Ruth 1; g1234; Jesus"). <br />
|
||||
<br />The list of results in the main window are sortable, just click and drag to reorder them.<br /><br />
|
||||
<br />All Greek/Hebrew cross references translations are taken from the 1933 Webster's version and often are not the same as the KJV translation. <br />
|
||||
<br />All source materials were taken from the <a href="http://sourceforge.net/projects/zefania-sharp/">Zefania XML Bible Project</a> on SourceForge. <br />
|
||||
<br />Any Errors and Omission you find would be appreciated. Please contact me via <a href='http://www.jasonwall.org/'>www.jasonwall.org</a>.<br />
|
||||
</p>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /page -->
|
||||
</body>
|
||||
</div>
|
||||
</div><!-- /page -->
|
||||
</body>
|
||||
</html>
|
||||
|
@ -52,7 +52,7 @@ var Bible = (function () {
|
||||
testament: ""
|
||||
};
|
||||
for (var i = sch; i <= ech; i++) {
|
||||
var url = "bibles/kjv_strongs/" + b + "-" + i + ".json";
|
||||
var url = "data/bibles/kjv_strongs/" + b + "-" + i + ".json";
|
||||
$.ajax({
|
||||
async: false,
|
||||
type: "GET",
|
||||
|
@ -1 +1 @@
|
||||
{"version":3,"file":"Bible.js","sourceRoot":"","sources":["../ts/Bible.ts"],"names":[],"mappings":"AAAA;IAAA;IA0IA,CAAC;IAxIiB,oBAAc,GAA5B,UAA6B,EAAE,EAAE,GAAG,EAAE,SAAS;QAC3C,IAAI,CAAC;YACD,IAAI,CAAC,GAAG,EAAE,CAAC;YACX,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBACjC,EAAE,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;oBACpD,CAAC,IAAI,cAAc,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,YAAY,CAAC;gBAClD,CAAC;gBACD,IAAI,GAAG,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;gBAEpB,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;oBAClC,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;oBAEf,CAAC,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC;oBAE5B,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;wBAClC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,SAAS,CAAC,C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AAU,CAAC;YACnC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC;QAC7B,CAAC,CAAC,CAAC;QACH,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC;YACrC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;QACzB,CAAC,CAAC,CAAC;QACH,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,OAAO,CAAC;YAC7B,KAAK,EAAE,gBAAgB;YACvB,OAAO,EAAE,UAAU,EAAE;YACrB,CAAC;SACJ,CAAC,CAAC;QACH,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,UAAU,CAAC;YAC1B,UAAU,EAAE,8DAA8D;YAC1E,QAAQ,EAAE,2CAA2C;SACxD,CAAC,CAAC;IACP,CAAC;IACL,YAAC;AAAD,CAAC,AAzID,IAyIC;AAAA,CAAC"}
|
@ -27,9 +27,9 @@ var Words = (function () {
|
||||
txt += "<li /><a href='javascript:void(0)' class='link' alt='" + Reference.bookName(r[0]) + " " + r[1] + ":" + r[2] + "'>" + Reference.bookName(r[0]) + " " + r[1] + ":" + r[2] + "</a>";
|
||||
}
|
||||
txt += "</ul>";
|
||||
var t = $(txt);
|
||||
var t = $("#searchresults");
|
||||
t.html(txt);
|
||||
Words.AttachEvents(t);
|
||||
$("#searchresults").html(t.html());
|
||||
$("#searchTotal").html(results.length);
|
||||
return false;
|
||||
}
|
||||
@ -53,13 +53,13 @@ var Words = (function () {
|
||||
// If we are at the end of the array, we want to use a different test.
|
||||
if (w == 0) {
|
||||
if (q <= words[w]) {
|
||||
results.unshift(this.GetSearchReferences("index/" + words[w] + "idx.json", q));
|
||||
results.unshift(this.GetSearchReferences("data/index/" + words[w] + "idx.json", q));
|
||||
break;
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (q <= words[w] && q > words[w - 1]) {
|
||||
results.unshift(this.GetSearchReferences("index/" + words[w] + "idx.json", q));
|
||||
results.unshift(this.GetSearchReferences("data/index/" + words[w] + "idx.json", q));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,60 +1,53 @@
|
||||
|
||||
$( document ).on( "pageinit", "#mainpage", function() {
|
||||
$( document ).on( "swipeleft swiperight", "#mainpage", function( e ) {
|
||||
$(document).on("pageinit", "#mainpage", function () {
|
||||
$(document).on("swipeleft swiperight", "#mainpage", function (e) {
|
||||
// We check if there is no open panel on the page because otherwise
|
||||
// a swipe to close the left panel would also open the right panel (and v.v.).
|
||||
// We do this by checking the data that the framework stores on the page element (panel: open).
|
||||
if ( $.mobile.activePage.jqmData( "panel" ) !== "open" ) {
|
||||
if ( e.type === "swipeleft" ) {
|
||||
$( "#searchpanel" ).panel( "open" );
|
||||
} else if ( e.type === "swiperight" ) {
|
||||
$( "#defaultpanel" ).panel( "open" );
|
||||
}
|
||||
}
|
||||
});
|
||||
if ($.mobile.activePage.jqmData("panel") !== "open") {
|
||||
if (e.type === "swipeleft") {
|
||||
$("#searchpanel").panel("open");
|
||||
} else if (e.type === "swiperight") {
|
||||
$("#defaultpanel").panel("open");
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("#searchvalue").keypress(function(event) {
|
||||
if (event.which === 13) {
|
||||
$(document).ready(function () {
|
||||
$("#searchvalue").keypress(function (event) {
|
||||
if (event.which === 13) {
|
||||
Search($("#searchvalue").val());
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
});
|
||||
$("#searchbtn").click(function()
|
||||
{
|
||||
$("#searchbtn").click(function () {
|
||||
Search($("#searchvalue").val());
|
||||
return false;
|
||||
return false;
|
||||
});
|
||||
$("#growfont").click(function()
|
||||
{
|
||||
$("#growfont").click(function () {
|
||||
Settings.IncreaseResultFontSize();
|
||||
return false;
|
||||
return false;
|
||||
});
|
||||
$("#shrinkfont").click(function()
|
||||
{
|
||||
$("#shrinkfont").click(function () {
|
||||
Settings.DecreaseResultFontSize();
|
||||
return false;
|
||||
return false;
|
||||
});
|
||||
$("#break-on-verses").click(function()
|
||||
{
|
||||
$("#break-on-verses").click(function () {
|
||||
Settings.Save();
|
||||
return false;
|
||||
return false;
|
||||
});
|
||||
$("#showhelp").click(function()
|
||||
{
|
||||
$("#help").dialog({
|
||||
$("#showhelp").click(function () {
|
||||
$("#help").dialog({
|
||||
draggable: true,
|
||||
width: 700,
|
||||
height: 650,
|
||||
resizable: true
|
||||
});
|
||||
resizable: true
|
||||
});
|
||||
});
|
||||
$("#changefont").change(function()
|
||||
{
|
||||
$("#changefont").change(function () {
|
||||
Settings.ChangeResultFont($("#changefont").val());
|
||||
return false;
|
||||
return false;
|
||||
});
|
||||
// load querystring
|
||||
var ref = decodeURIComponent(Util.GetUrlVars().r);
|
||||
@ -63,25 +56,24 @@ $(document).ready(function()
|
||||
Settings.Load();
|
||||
// now load the passage from the querystring.
|
||||
Search(ref);
|
||||
$("#searchvalue").val(ref);
|
||||
} else {
|
||||
Settings.Load();
|
||||
$("#searchvalue").val(ref);
|
||||
} else {
|
||||
Settings.Load();
|
||||
}
|
||||
|
||||
// you need to do this last, otherwise the settings load resets the window height.
|
||||
$(window).bind("resize", function()
|
||||
{
|
||||
$(window).bind("resize", function () {
|
||||
$(".my-breakpoint.ui-grid-c .ui-block-a").css("width", 50);
|
||||
$(".my-breakpoint.ui-grid-c .ui-block-b").css("width", window.innerWidth - 190);
|
||||
$(".my-breakpoint.ui-grid-c .ui-block-c").css("width", 65);
|
||||
$(".my-breakpoint.ui-grid-c .ui-block-d").css("width", 55);
|
||||
$("#searchresults").css("height", window.innerHeight - 100);
|
||||
return false;
|
||||
return false;
|
||||
});
|
||||
$(".my-breakpoint.ui-grid-c .ui-block-a").css("width", 50);
|
||||
$(".my-breakpoint.ui-grid-c .ui-block-b").css("width", window.innerWidth - 190);
|
||||
$(".my-breakpoint.ui-grid-c .ui-block-c").css("width", 65);
|
||||
$(".my-breakpoint.ui-grid-c .ui-block-d").css("width", 55);
|
||||
$("#searchresults").css("height", window.innerHeight - 100);
|
||||
$("#searchresults").css("height", window.innerHeight - 100);
|
||||
|
||||
});
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,5 +1,4 @@
|
||||
class Bible
|
||||
{
|
||||
class Bible {
|
||||
public static DisplayPassage(cs, ref, testament) {
|
||||
try {
|
||||
var r = "";
|
||||
@ -47,7 +46,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
public static GetPassage (b, sch, ech, sv, ev) {
|
||||
public static GetPassage(b, sch, ech, sv, ev) {
|
||||
try {
|
||||
var chapters = []; // the verses from the chapter.
|
||||
var r = {
|
||||
@ -56,7 +55,7 @@
|
||||
};
|
||||
|
||||
for (var i = sch; i <= ech; i++) {
|
||||
var url = "bibles/kjv_strongs/" + b + "-" + i + ".json";
|
||||
var url = "data/bibles/kjv_strongs/" + b + "-" + i + ".json";
|
||||
$.ajax({
|
||||
async: false,
|
||||
type: "GET",
|
||||
@ -119,7 +118,7 @@
|
||||
return null;
|
||||
}
|
||||
|
||||
public static AttachEvents (t, ref) {
|
||||
public static AttachEvents(t, ref) {
|
||||
t.find(".hiddenlink").click(function (e) {
|
||||
Util.HandleHiddenLink(e);
|
||||
});
|
||||
|
@ -3,8 +3,7 @@
|
||||
word: string;
|
||||
}
|
||||
|
||||
class Words
|
||||
{
|
||||
class Words {
|
||||
public static ConvertResultsToArray(r) {
|
||||
try {
|
||||
var results = new Array();
|
||||
@ -26,11 +25,10 @@ class Words
|
||||
}
|
||||
txt += "</ul>";
|
||||
|
||||
var t = $(txt);
|
||||
|
||||
let t = $("#searchresults");
|
||||
t.html(txt);
|
||||
Words.AttachEvents(t);
|
||||
|
||||
$("#searchresults").html(t.html());
|
||||
$("#searchTotal").html(results.length);
|
||||
return false;
|
||||
} catch (err) {
|
||||
@ -55,12 +53,12 @@ class Words
|
||||
// If we are at the end of the array, we want to use a different test.
|
||||
if (w == 0) {
|
||||
if (q <= words[w]) {
|
||||
results.unshift(this.GetSearchReferences("index/" + words[w] + "idx.json", q));
|
||||
results.unshift(this.GetSearchReferences("data/index/" + words[w] + "idx.json", q));
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
if (q <= words[w] && q > words[w - 1]) {
|
||||
results.unshift(this.GetSearchReferences("index/" + words[w] + "idx.json", q));
|
||||
results.unshift(this.GetSearchReferences("data/index/" + words[w] + "idx.json", q));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user