summaryrefslogtreecommitdiffstatshomepage
path: root/web/index.html
diff options
context:
space:
mode:
author R. Belmont <rb6502@users.noreply.github.com>2013-09-24 14:02:47 +0000
committer R. Belmont <rb6502@users.noreply.github.com>2013-09-24 14:02:47 +0000
commit6e06426096420f20abb4e7f173b65c2d352f70a2 (patch)
treed4c905970e0f67f60bca2e64a80233f945ee5fd1 /web/index.html
parent9197a7adafe105279c98b465bee1ef1e1c4d7c45 (diff)
web: Fix web options reading from ini, improved load/save state UI [Firehawke]
Diffstat (limited to 'web/index.html')
-rw-r--r--web/index.html21
1 files changed, 20 insertions, 1 deletions
diff --git a/web/index.html b/web/index.html
index 554f13c2ecb..4591f77e16d 100644
--- a/web/index.html
+++ b/web/index.html
@@ -25,13 +25,14 @@
{
document.getElementById('main').innerHTML = '<center><img src="/screenshot.png"/></center>';
}
-
+
function loadContent(htmlName)
{
$("#main").load(htmlName+'.html', function () {
$(this).trigger('create');
});
}
+
function executeCommands(command)
{
$.ajax({
@@ -44,6 +45,24 @@
});
}
+ function executeHardReset()
+ {
+ executeCommands("hardreset");
+ $('.ui-dialog').dialog('close');
+ }
+
+ function executeSoftReset()
+ {
+ executeCommands("softreset");
+ $('.ui-dialog').dialog('close');
+ }
+
+ function executeExit()
+ {
+ executeCommands("exit");
+ $('.ui-dialog').dialog('close');
+ }
+
function executeSlider()
{
$.ajax({