1010 < meta charset =utf-8 >
1111
1212 < title >
13- html component : web-editor
13+ html component :
1414 </ title >
1515
1616 < meta name =description content =''>
1717
18- < base href ='https://ext-code.com/html-components/list/web-console/ '>
19- < link rel =canonical href ='https://ext-code.com/html-components/list/web-console/web-console.html '>
18+ < base href ='https://ext-code.com/html-components/list/ '>
19+ < link rel =canonical href ='https://ext-code.com/html-components/list/ '>
2020
2121 < meta name =viewport content ='width=device-width, initial-scale=1 '>
22- < link rel =icon href =''>
22+ < link rel =icon href ='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAMAAAAM7l6QAAAAaVBMVEVHcExfpvhYpPxapPtZo/lZpfxYpPtZpfxjp/Rxsv1ZpPpZpPtZpPpZpfxbpPheqPxcpvxorf1jqvxoputao/lbpPhmrP1ZpPtYo/tZo/hZpPtZpPqcyf+Rw/6Xxv+KwP6EvP53tf19uf1CLkbiAAAAHHRSTlMADp1YNLp7swf+YpU/wizc0vrpAiIX84VvHKlK4cmJ4wAAAVdJREFUKM+1ktmShCAMRVU2ARFxb5tF/f+PHIK92j1vM6myKuQYkns1y/4i8mEof6dlobX4hWHc09GtzfVSDZ/0qlvNg/Wr0SO7nOmlWb2zEN55Lj+WUsFat3O+ems3+g2HViLBuLfbdKaz8X5EkMnNBl2961tMsOuSanXr7N6iHOL+klqt3Y8r8yZuwRtGCCPyxgl3di0ODdrZYGgdA5H8wLXk1rUVpBQykeqY5Q/dcXgjajyNcfRNN2Z9P3TJbhKnB96OWzSHzzesCSGyThOjodEyeOxWpJZsEHioKcGxW4zc7LEzbCNv8KtoCit3SFwX40NLq7l+8wSRu3fEGLC7r/p07mDxYXl8gZ7RWBGKKXEcJ0GJzB8XFdH2SuESK/AAN5Ocri/2A5Yga5ZJ9+nPi7hk0FgBebr2xN2S8NJ9wxIhBZtShRCi5IRREQO2FpAUc5n9e/wA3jcXGxBAlmMAAAAASUVORK5CYII= '>
2323
2424
2525 < script src ='https://ajaxorg.github.io/ace-builds/src-noconflict/ace.js '> </ script >
2626 < script src ='https://cdn.jsdelivr.net/npm/markdown-it/dist/markdown-it.min.js '> </ script >
2727 < link rel =stylesheet href ='/css/github-markdown-light.css '>
2828
29- /*
30- < link rel =stylesheet href ='https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css '>
31- < link rel =stylesheet href ='https://cdn.jsdelivr.net/npm/wunderbaum@0/dist/wunderbaum.min.css '>
32- < script src ='https://cdn.jsdelivr.net/npm/wunderbaum@0/dist/wunderbaum.umd.min.js '> </ script >
33- */
34-
35-
29+
3630 < script src ='https://libs.ext-code.com/js/dom/component/v2.0/component.js?init '> </ script >
3731
3832 < script >
3933
4034 var df = true , did = 'html'
4135 ;
4236
37+ var base = 'https://libs.ext-code.com/html/' ;
38+ var component = 'web-console' ;
39+
4340 var ace ;
4441 var md ;
4542 var dirtree ;
7269
7370 async function load ( ) {
7471
75- var { error, txt} = await get ( 'https://libs.ext-code.com/html/web-console /readme.md') ;
72+ var { error, txt} = await get ( base + component + ' /readme.md') ;
7673
7774 if ( error ) {
7875 md_txt = error ;
@@ -191,6 +188,20 @@ <h3>
191188 var show = { } ;
192189
193190
191+
192+ var files = {
193+ 'source' : {
194+ 'latest' : null ,
195+ 'v2.0' : null ,
196+ } ,
197+ 'examples' : {
198+ 'web-console-v2.0-test-1.html' :null ,
199+ 'web-console-v2.0-test-2.html' :null ,
200+ } ,
201+ } ;
202+
203+
204+
194205 //:
195206
196207
@@ -203,21 +214,14 @@ <h3>
203214
204215 var node = $ ( '#demo-tree' ) ;
205216
206- /*
207- var tree = new mar10.Wunderbaum({
208- element:node,
209- source: files,
210- init:e=>{e.tree.setFocus()},
211- activate:show
212- });
213- */
214217 files = dirtree . build ( files ) ;
215218 dirtree . display ( files , { callback} ) ;
216219
217220
218221 await show . examples ( 'web-console-v2.0-test-2.html' ) ;
219222 $ ( '#view' ) . style . display = '' ;
220223
224+
221225 } //initdom
222226
223227
244248 $ ( 'web-editor' ) . style . display = '' ;
245249 $ ( 'snippet-html-console' ) . style . display = 'none' ;
246250
247- var url = 'https://libs.ext-code.com/html/web-console /';
251+ var url = base + component + ' /';
248252 if ( file == 'latest' ) {
249253 url += 'web-console.html' ;
250254 } else {
264268 $ ( 'web-editor' ) . style . display = 'none' ;
265269 $ ( 'snippet-html-console' ) . style . display = '' ;
266270
267- var url = 'https://libs.ext-code.com/html/web-console /test/'+ file ;
271+ var url = base + component + ' /test/'+ file ;
268272 var { txt} = await get ( url ) ;
269273 if ( ! txt ) return ;
270274 console . log ( 1 ) ;
@@ -311,17 +315,6 @@ <h3>
311315
312316
313317
314- var files = {
315- 'source' : {
316- 'latest' : null ,
317- 'v2.0' : null ,
318- } ,
319- 'examples' : {
320- 'web-console-v2.0-test-1.html' :null ,
321- 'web-console-v2.0-test-2.html' :null ,
322- } ,
323- } ;
324-
325318
326319
327320 </ script >
0 commit comments