diff options
Diffstat (limited to 'web/index.html')
-rw-r--r-- | web/index.html | 21 |
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({ |