From 6e06426096420f20abb4e7f173b65c2d352f70a2 Mon Sep 17 00:00:00 2001 From: "R. Belmont" Date: Tue, 24 Sep 2013 14:02:47 +0000 Subject: web: Fix web options reading from ini, improved load/save state UI [Firehawke] --- web/commands.html | 142 ++++++++++++++++++++++++++++++++++++++++++++++++++++-- web/index.html | 21 +++++++- 2 files changed, 157 insertions(+), 6 deletions(-) (limited to 'web') diff --git a/web/commands.html b/web/commands.html index 3fc3fb7822a..1923d80bd1c 100644 --- a/web/commands.html +++ b/web/commands.html @@ -1,6 +1,138 @@ Toggle Pause -Soft reset -Hard reset -Save State -Load State -Exit +Soft reset +Hard reset +Save State +Load State +Exit + +
+

Select position to save to

+ + +
+ Cancel + Autosave Slot +
+
+ 0 + 1 + 2 + 3 +
+
+ 4 + 5 + 6 + 7 +
+
+ 8 + 9 + A + B +
+
+ C + D + E + F +
+
+ G + H + I + J +
+
+ K + L + M + N +
+
+ O + P + Q + R +
+
+ S + T + U + V +
+
+ W + X + Y + Z +
+ +




+
+ +
+

Select position to load from

+ + +
+ Cancel + Autoload Slot +
+
+ 0 + 1 + 2 + 3 +
+
+ 4 + 5 + 6 + 7 +
+
+ 8 + 9 + A + B +
+
+ C + D + E + F +
+
+ G + H + I + J +
+
+ K + L + M + N +
+
+ O + P + Q + R +
+
+ S + T + U + V +
+
+ W + X + Y + Z +
+ +




+
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 = '
'; } - + 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({ -- cgit v1.2.3