mirror of
https://gitlab.com/walljm/dynamicbible.git
synced 2025-07-27 01:19:52 -04:00
55 lines
1.7 KiB
JavaScript
55 lines
1.7 KiB
JavaScript
require(["jquery", "db", "common", "reference", "jquery.cookie", "jquery.ui"],
|
|
function($, db, common, ref) {
|
|
$(document).ready(function()
|
|
{
|
|
$("#searchform").submit(function()
|
|
{
|
|
common.Search($("#searchvalue").val());
|
|
return false;
|
|
});
|
|
$("#growfont").click(function()
|
|
{
|
|
common.Settings.IncreaseResultFontSize();
|
|
return false;
|
|
});
|
|
$("#shrinkfont").click(function()
|
|
{
|
|
common.Settings.DecreaseResultFontSize();
|
|
return false;
|
|
});
|
|
$("#switch-panes").click(function()
|
|
{
|
|
common.Settings.SwitchPanes();
|
|
return false;
|
|
});
|
|
$("#showhelp").click(function()
|
|
{
|
|
$("#help").dialog({draggable:true, width: 700, height: 650, resizable: true});
|
|
});
|
|
$("#showhidesearch").click(function()
|
|
{
|
|
common.Settings.ShowHideSearch();
|
|
return false;
|
|
});
|
|
$("#changefont").change(function()
|
|
{
|
|
common.Settings.ChangeResultFont($("#changefont").val());
|
|
return false;
|
|
});
|
|
$(window).bind("resize", function()
|
|
{
|
|
$("#searchresults").css("height", window.innerHeight - 200);
|
|
return false;
|
|
});
|
|
|
|
$("#searchresults").css("height", window.innerHeight - 200);
|
|
|
|
$("#result").sortable({
|
|
handle: ".p-handle"
|
|
});
|
|
|
|
// remember the settings...
|
|
common.Settings.Load();
|
|
});
|
|
});
|