4848
4949 var df = true , did = 'html' ;
5050
51- var base = 'https://libs. ext-code.com/html /' ;
51+ var base = 'https://ext-code.com/code /' ;
5252
5353 var ace ;
5454 var md ;
9292 async function load ( ) {
9393
9494 var list = [ ] ;
95- list . push ( get ( base + component + '/readme.md' ) ) ;
96- list . push ( get ( base + component + '/api.md' ) ) ;
95+ list . push ( get ( base + path + '/readme.md' ) ) ;
96+ list . push ( get ( base + path + '/api.md' ) ) ;
9797 var result = await Promise . all ( list ) ;
9898
9999 var { error, txt} = result [ 0 ] ;
129129
130130 < html-components-hdr v2.0 component =grp1 >
131131 < h2 slot =title >
132- web-editor-x
133132 </ h2 >
134133 < time slot =date datetime =2026-02-10 >
135- 10 Feb 2026-x
136134 </ time >
137135 </ html-components-hdr >
138136
139137 < script >
140138 {
141139 let $ = css => document . querySelector ( css ) ;
142- $ ( '[slot=title]' ) . textContent = component ;
140+ $ ( '[slot=title]' ) . textContent = filename ;
143141 $ ( 'time' ) . setAttribute ( 'datetime' , date ) ;
144142 var str = new Date ( date ) . toLocaleDateString ( 'en-GB' , { day :'2-digit' , month :'short' , year :'numeric' } ) ;
145143 $ ( 'time' ) . textContent = str ;
@@ -277,16 +275,17 @@ <h3>
277275
278276
279277 show . source = async function ( file ) {
280-
278+ debug ( 'show.source' , file ) ;
281279 $ ( '#files-view-hdr' ) . textContent = 'source : ' + file ;
282280 $ ( 'web-editor' ) . style . display = '' ;
283281 $ ( 'snippet-html-console' ) . style . display = 'none' ;
284282
285- var url = base + component + '/' ;
283+ var fn = filename . split ( '.' ) . at ( - 1 ) ;
284+ var url = base + path ;
286285 if ( file == 'latest' ) {
287- url += ` ${ component } .html` ;
286+ url += filename ;
288287 } else {
289- url += `${ file } /${ component } -${ file } .html` ;
288+ url += `${ file } /${ fn } -${ file } .html` ;
290289 }
291290
292291 var { txt} = await get ( url ) ;
@@ -299,12 +298,12 @@ <h3>
299298
300299
301300 show . examples = async function ( file ) {
302-
301+ debug ( 'show.examples' , file ) ;
303302 $ ( '#files-view-hdr' ) . textContent = 'examples : ' + file ;
304303 $ ( 'web-editor' ) . style . display = 'none' ;
305304 $ ( 'snippet-html-console' ) . style . display = '' ;
306305
307- var url = base + component + '/examples/' + file ;
306+ var url = base + path + '/examples/' + file ;
308307 var { txt} = await get ( url ) ;
309308 if ( ! txt ) return ;
310309
0 commit comments