Skip to content

Commit 089984f

Browse files
save file
1 parent 965c2fe commit 089984f

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

html-components/list/snippet-console/snippet-console.html

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
;
3636

3737
var base = 'https://libs.ext-code.com/html/';
38-
var component = 'dir-tree';
38+
var component = 'snippet-console';
3939

4040
var ace;
4141
var md;
@@ -142,7 +142,9 @@
142142

143143

144144
<html-components-hdr v2.0 component=grp1>
145-
<h2 class=title style='top:20px'>dir-tree</h2>
145+
<h2 class=title style='top:20px'>
146+
snippet-console
147+
</h2>
146148
<time slot=date datetime=2026-01-08>08 Jan 2026</time>
147149
</html-components-hdr>
148150

@@ -189,10 +191,10 @@ <h3>
189191
var files = {
190192
'source' : {
191193
'latest' : null,
194+
'v2.0' : null,
192195
},
193196
'examples' : {
194-
'dir-tree-min.html' : null,
195-
'dir-tree-simple.html' : null,
197+
'snippet-console-v2.0-min.html' : null,
196198
},
197199
};
198200

@@ -214,7 +216,7 @@ <h3>
214216
dirtree.display(files,{callback});
215217

216218

217-
await show.examples('dir-tree-min.html');
219+
await show.examples();
218220
$('#view').style.display = '';
219221

220222

@@ -261,6 +263,10 @@ <h3>
261263

262264
show.examples = async function(file){
263265

266+
if(!file){
267+
file = Object.keys(files[1].list[0].name;
268+
}
269+
264270
$('#view-hdr').textContent = 'examples : '+file;
265271
$('web-editor').style.display = 'none';
266272
$('snippet-html-console').style.display = '';

0 commit comments

Comments
 (0)