Skip to content

Commit 1c0f912

Browse files
save file
1 parent c0b8f82 commit 1c0f912

File tree

1 file changed

+26
-33
lines changed

1 file changed

+26
-33
lines changed

html-components/list/template/template.html

Lines changed: 26 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -10,36 +10,33 @@
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;
@@ -72,7 +69,7 @@
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

@@ -244,7 +248,7 @@ <h3>
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{
@@ -264,7 +268,7 @@ <h3>
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

Comments
 (0)