|
@@ -800,8 +800,6 @@ function _mainscreen() {
|
|
|
|
|
|
|
|
function _reset() {
|
|
function _reset() {
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
_switch_ui('ui_login');
|
|
_switch_ui('ui_login');
|
|
|
g_ctx.driver_login_state = "driver";
|
|
g_ctx.driver_login_state = "driver";
|
|
|
_clear_ui_driver();
|
|
_clear_ui_driver();
|
|
@@ -818,6 +816,27 @@ function _reboot() {
|
|
|
_clear_ui_paddle();
|
|
_clear_ui_paddle();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+function _custom0() {
|
|
|
|
|
+ _switch_ui('ui_login');
|
|
|
|
|
+ g_ctx.driver_login_state = "driver";
|
|
|
|
|
+ _clear_ui_driver();
|
|
|
|
|
+ _clear_ui_paddle();
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+function _custom1() {
|
|
|
|
|
+ _switch_ui('ui_login');
|
|
|
|
|
+ g_ctx.driver_login_state = "driver";
|
|
|
|
|
+ _clear_ui_driver();
|
|
|
|
|
+ _clear_ui_paddle();
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+function _custom2() {
|
|
|
|
|
+ _switch_ui('ui_login');
|
|
|
|
|
+ g_ctx.driver_login_state = "driver";
|
|
|
|
|
+ _clear_ui_driver();
|
|
|
|
|
+ _clear_ui_paddle();
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
//------------
|
|
//------------
|
|
|
|
|
|
|
|
|
|
|
|
@@ -833,6 +852,10 @@ function init() {
|
|
|
document.getElementById('ui_diagnostic_reset').onclick = _reset;
|
|
document.getElementById('ui_diagnostic_reset').onclick = _reset;
|
|
|
document.getElementById('ui_diagnostic_reboot').onclick = _reboot;
|
|
document.getElementById('ui_diagnostic_reboot').onclick = _reboot;
|
|
|
|
|
|
|
|
|
|
+ document.getElementById('ui_diagnostic_custom0').onclick = _custom0;
|
|
|
|
|
+ document.getElementById('ui_diagnostic_custom1').onclick = _custom1;
|
|
|
|
|
+ document.getElementById('ui_diagnostic_custom2').onclick = _custom2;
|
|
|
|
|
+
|
|
|
// login
|
|
// login
|
|
|
//
|
|
//
|
|
|
document.getElementById('ui_login_login').onclick = _login;
|
|
document.getElementById('ui_login_login').onclick = _login;
|