Browse Source

diagnostic pane additions

clementinecomputing 6 năm trước cách đây
mục cha
commit
4702d091c7
2 tập tin đã thay đổi với 34 bổ sung3 xóa
  1. 9 1
      busunit/DIUv2/html/index-ORG.html
  2. 25 2
      busunit/DIUv2/html/js/diu_ui-ORG.js

+ 9 - 1
busunit/DIUv2/html/index-ORG.html

@@ -68,6 +68,14 @@ Package    Version        Installed
 
       </div>
 
+      <div class='pure-g row'>
+
+        <div class='pure-u-1-3 col'> <button class='bdropinp bkeyw' id='ui_diagnostic_custom0'>Custom 0</button> </div>
+        <div class='pure-u-1-3 col'> <button class='bdropinp bkeyw' id='ui_diagnostic_custom1'>Custom 1</button> </div>
+        <div class='pure-u-1-3 col'> <button class='bdropinp bkeyw' id='ui_diagnostic_custom2'>Custom 2</button> </div>
+
+      </div>
+
       <br>
       <br>
       <br>
@@ -76,7 +84,7 @@ Package    Version        Installed
 
         <button class='invisiblock' id='ui_diagnostic_window'> </button>
 
-<textarea class='statuslogin' type='textarea' id='ui_diagnostic_view' rows='12' cols='80' disabled readonly>
+<textarea class='statuslogin' type='textarea' id='ui_diagnostic_view' rows='10' cols='80' disabled readonly>
 Diagnostic window...
 </textarea>
 

+ 25 - 2
busunit/DIUv2/html/js/diu_ui-ORG.js

@@ -800,8 +800,6 @@ function _mainscreen() {
 
 function _reset() {
 
-
-
   _switch_ui('ui_login');
   g_ctx.driver_login_state = "driver";
   _clear_ui_driver();
@@ -818,6 +816,27 @@ function _reboot() {
   _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_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
   //
   document.getElementById('ui_login_login').onclick = _login;