File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
html-components/list/web-console Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -231,13 +231,6 @@ <h3>
231231 } //show
232232
233233
234- show . display = function ( txt ) {
235-
236- if ( ! txt ) return ;
237- editor . setvalue ( txt ) ;
238-
239- } //display
240-
241234 show . source = async function ( file ) {
242235
243236 $ ( '#view-hdr' ) . textContent = 'source : ' + file ;
@@ -252,16 +245,22 @@ <h3>
252245 }
253246
254247 var { txt} = await get ( url ) ;
255- show . display ( txt ) ;
248+ if ( ! txt ) return ;
249+ editor . setvalue ( txt ) ;
256250
257251 } //source
258252
259253
260254 show . example = async function ( file ) {
261255
256+ $ ( '#view-hdr' ) . textContent = 'example : ' + file ;
257+ $ ( 'web-editor' ) . style . display = 'none' ;
258+ $ ( 'snippet-html-console' ) . style . display = '' ;
259+
262260 var url = 'https://libs.ext-code.com/html/web-console/test/' + file ;
263261 var { txt} = await get ( url ) ;
264- show . display ( txt ) ;
262+ if ( ! txt ) return ;
263+ snippet . editor . setvalue ( txt ) ;
265264
266265 } //example
267266
You can’t perform that action at this time.
0 commit comments