File tree 2 files changed +6
-6
lines changed
supervisor/shared/web_workflow/static
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html>
2
2
< html style ="height: 100%; ">
3
- < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
4
3
< head >
5
4
< title > Simple client</ title >
6
-
5
+ < meta charset ="UTF-8 ">
6
+ < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
7
7
< script src ="/serial.js " defer =true > </ script >
8
8
</ head >
9
9
< body style ="flex-direction: column; display: flex; height: 100%; width: 100%; margin: 0; font-size: 1rem; ">
10
- < div style ="flex: auto; display: flex; overflow: scroll ; flex-direction: column; ">
10
+ < div style ="flex: auto; display: flex; overflow: auto ; flex-direction: column; ">
11
11
< pre id ="log " style ="margin:0; margin-top: auto; "> </ pre >
12
- < span style ="height: 1px; ">   </ span >
12
+ < span style ="height: 1px; "> </ span >
13
13
</ div >
14
14
< div id ="controls " style ="flex: none; display: flex; ">
15
15
< fieldset style ="display: inline-block; padding: 0; ">
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ ws.onerror = function(e) {
57
57
set_enabled ( false ) ;
58
58
} ;
59
59
60
- input . onbeforeinput = function ( e ) {
60
+ input . addEventListener ( "beforeinput" , function ( e ) {
61
61
if ( e . inputType == "insertLineBreak" ) {
62
62
ws . send ( "\r" ) ;
63
63
input . value = "" ;
@@ -68,7 +68,7 @@ input.onbeforeinput = function(e) {
68
68
} else if ( e . inputType == "deleteContentBackward" ) {
69
69
ws . send ( "\b" ) ;
70
70
}
71
- }
71
+ } ) ;
72
72
73
73
let ctrl_c = document . querySelector ( "#c" ) ;
74
74
ctrl_c . onclick = function ( ) {
You can’t perform that action at this time.
0 commit comments