Actually use the modularized js in the index.html file.

This commit is contained in:
Jeremy Wall (zaphar) 2013-04-18 19:02:50 -05:00
parent acefd7d3cd
commit fb3a4af964

View File

@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Access-Control-Allow-Origin" content="*"> <meta http-equiv="Access-Control-Allow-Origin" content="*">
<meta name="author" content="Jason Wall" /> <meta name="author" content="Jason Wall" />
<meta name="PBO.auth" content="8bff0c5d7a8f61d1e5dfa6c58da67c2b" /> <meta name="PBO.auth" content="8bff0c5d7a8f61d1e5dfa6c58da67c2b" />
<meta name="geo.country" content="US" /> <meta name="geo.country" content="US" />
@ -11,70 +11,8 @@
<meta name="keywords" content="AJAX, KJV, King James Version, Strong's Dictionary, Strongs" /> <meta name="keywords" content="AJAX, KJV, King James Version, Strong's Dictionary, Strongs" />
<meta name="copyright" content="All content copyrighted to Jason Wall, and available by permission of the owner." /> <meta name="copyright" content="All content copyrighted to Jason Wall, and available by permission of the owner." />
<title>The Bible with Strong's Numbers and Cross References</title> <title>The Bible with Strong's Numbers and Cross References</title>
<script type="text/javascript" src="js/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="js/jquery.cookie.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.9.1.custom.min.js"></script>
<script type="text/javascript" src="js/bible_ref_parsing.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
$("#searchform").submit(function()
{
Search($("#searchvalue").val());
return false;
});
$("#growfont").click(function()
{
Settings.IncreaseResultFontSize();
return false;
});
$("#shrinkfont").click(function()
{
Settings.DecreaseResultFontSize();
return false;
});
$("#switch-panes").click(function()
{
Settings.SwitchPanes();
return false;
});
$("#showhelp").click(function()
{
$("#help").dialog({draggable:true, width: 700, height: 650, resizable: true});
});
$("#showhidesearch").click(function()
{
Settings.ShowHideSearch();
return false;
});
$("#changefont").change(function()
{
Settings.ChangeResultFont($("#changefont").val());
return false;
});
$("#display-strongs-as-dialog").change(function()
{
Settings.ChangeDisplayStrongsInDialog($("#display-strongs-as-dialog")[0].checked);
return false;
});
$(window).bind("resize", function()
{
$("#searchresults").css("height", window.innerHeight - 200);
return false;
});
$("#searchresults").css("height", window.innerHeight - 200);
// remember the settings...
Settings.Load();
});
</script>
<style>@import "css/bible.css";@import "css/jquery-ui.css";</style> <style>@import "css/bible.css";@import "css/jquery-ui.css";</style>
<style> <script data-main="js/main" type="text/javascript" src="js/require-jquery.js"></script>
</style>
</head> </head>
<body> <body>
<table style="width: 100%; padding: 12px;"> <table style="width: 100%; padding: 12px;">
@ -90,11 +28,11 @@
</td> </td>
</tr> </tr>
<tr><td colspan="3" id="settings" style="padding-top: 6px; text-align:right;"> <tr><td colspan="3" id="settings" style="padding-top: 6px; text-align:right;">
Display Strongs in Dialog <input type="checkbox" id="display-strongs-as-dialog" /> | Display Strongs in Dialog <input type="checkbox" id="display-strongs-as-dialog" /> |
<a href="javascript:void();" id="showhelp">Help</a> | <a href="javascript:void();" id="showhelp">Help</a> |
<a href="javascript:void();" id="showhidesearch">Hide Search</a> | <a href="javascript:void();" id="showhidesearch">Hide Search</a> |
<a href="javascript:void();" id="switch-panes">Switch Panes</a> | Select Font: <a href="javascript:void();" id="switch-panes">Switch Panes</a> | 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> | <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> |
<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></td></tr> <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></td></tr>
</table> </table>
<div id="resultwrap"> <div id="resultwrap">
@ -118,15 +56,15 @@
<b>G1234</b> (displays the strongs definition for the Greek # 1234)<br /> <b>G1234</b> (displays the strongs 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 /> <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 />
<br /> <br />
<h3>Notes:</h3> <h3>Notes:</h3>
<br />multiple lookups can be made useing a semicolon as a seperator, i.e. "Ruth 1; g1234; jesus"). <br /> <br />multiple lookups can be made useing a semicolon as a seperator, 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 />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 Websters version and often are not the same as the KJV translation. <br /> <br />All greek/hebrew cross references translations are taken from the 1933 Websters 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 />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 /> <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 />
<a href='biblerefparsingtests.html'>Reference Parsing Tests</a> <a href='biblerefparsingtests.html'>Reference Parsing Tests</a>
</div> </div>
</body> </body>
</html> </html>