File tree Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 12
12
13
13
< div id ="gutter1 " class ="gutter "> </ div >
14
14
15
- < div id ="container2 " class ="container ">
16
- < iframe src ="https://view.officeapps.live.com/op/view.aspx?src=https://abap2xlsx.github.io/abap2xlsx-web/demo1.xlsx " title ="Excel " width ="800 " height ="600 "> </ iframe >
17
- </ div >
15
+ < div id ="container2 " class ="container "> </ div >
18
16
</ div >
19
17
</ body >
20
18
</ html >
Original file line number Diff line number Diff line change @@ -95,7 +95,25 @@ async function abapChanged() {
95
95
reg . parse ( ) ;
96
96
abapMonaco . updateMarkers ( reg , model1 ) ;
97
97
98
- // const res = await new Transpiler().runRaw([{filename, contents}]);
98
+ if ( contents === abapfiles [ top ] ) {
99
+ document . getElementById ( "container2" ) . innerHTML = `<iframe src="https://view.officeapps.live.com/op/view.aspx?src=https://abap2xlsx.github.io/abap2xlsx-web/demo1.xlsx" title="Excel"></iframe>` ;
100
+
101
+ setTimeout ( ( ) => monaco . editor . getEditors ( ) [ 0 ] . focus ( ) , 1000 ) ;
102
+ } else {
103
+ const markers = monaco . editor . getModelMarkers ( { } ) ;
104
+ if ( markers . length > 0 ) {
105
+ let text = "<u><b>Code Issues</b></u><br>" ;
106
+ for ( const marker of markers ) {
107
+ text += marker . message + "<br>" ;
108
+ }
109
+ document . getElementById ( "container2" ) . innerHTML = text ;
110
+ return ;
111
+ }
112
+
113
+ document . getElementById ( "container2" ) . innerHTML = `todo, compiling` ;
114
+
115
+ // const res = await new Transpiler().runRaw([{filename, contents}]);
116
+ }
99
117
} catch ( error ) {
100
118
console . dir ( error ) ;
101
119
}
You can’t perform that action at this time.
0 commit comments