Skip to content

Commit d508cbd

Browse files
save file
1 parent be980f7 commit d508cbd

File tree

1 file changed

+30
-74
lines changed

1 file changed

+30
-74
lines changed

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

Lines changed: 30 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
<meta charset=utf-8>
1111

1212
<title>
13-
html component :
13+
html component : snippet-console
1414
</title>
1515

1616
<meta name=description content=''>
1717

18-
<base href='https://ext-code.com/html-components/list/dir-tree/'>
19-
<link rel=canonical href='https://ext-code.com/html-components/list/dir-tree/dir-tree.html'>
18+
<base href='https://ext-code.com/html-components/list/snippet-console/snippet-console.html'>
19+
<link rel=canonical href='https://ext-code.com/html-components/list/snippet-console/snippet-console.html'>
2020

2121
<meta name=viewport content='width=device-width, initial-scale=1'>
2222
<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='>
@@ -31,11 +31,22 @@
3131

3232
<script>
3333

34-
var df=true,did='html'
35-
;
36-
34+
3735
var base = 'https://libs.ext-code.com/html/';
3836
var component = 'snippet-console';
37+
var files = {
38+
'source' : {
39+
'latest' : null,
40+
'v2.0' : null,
41+
},
42+
'examples' : {
43+
'snippet-console-v2.0-min.html' : null,
44+
},
45+
};
46+
47+
48+
var df=true,did='html'
49+
;
3950

4051
var ace;
4152
var md;
@@ -46,19 +57,26 @@
4657

4758

4859
async function init(){
49-
console.log('init');
60+
debug('init');
5061

51-
md = markdownit();
62+
md = markdownit({
63+
html : true,
64+
breaks : false,
65+
linkify : true,
66+
linkTarget : '_blank',
67+
});
5268

53-
await load();
5469

5570
dirtree = mod['dir-tree'];
5671
snippet = mod['snippet-html-console'];
5772
editor = mod['web-editor'];
5873
log = mod['log-mod'];
5974

6075

61-
await mod.auto();
76+
await Promise.all([
77+
load(),
78+
mod.auto()
79+
]);
6280

6381

6482
initdom();
@@ -82,58 +100,10 @@
82100

83101
</script>
84102

85-
<style>
86103

104+
<link rel=stylesheet href='../css/component.css' crossorigin=anonymous>
87105

88-
html
89-
{height:100%;font-family:arial}
90-
91-
92-
body
93-
{/*height:calc(100% - 40px);*/display:flex;flex-direction:column;gap:20px;align-items:center;margin:20px;padding-bottom:200px}
94-
95-
96-
body>*
97-
{max-width:1400px;width:100%;padding:0 20px;}
98-
99-
[component],config
100-
{display:none}
101-
102-
input
103-
{font-size:16px;padding:5px 10px}
104-
input[type=button]
105-
{cursor:pointer}
106-
input[type=checkbox]
107-
{width:15px;height:15px;margin:0}
108-
109-
110-
#demo-tree
111-
{margin:20px 0;height:auto !important;overflow:visible;box-sizing:border-box;outline:none;border-radius:5px;
112-
border:none !important;
113-
/*border:1px solid lightgray !important;*/
114-
}
115-
116-
#view-hdr
117-
{padding:10px;font-weight:bold;background:rgba(173,216,230,0.5);border:1px solid lightgray;border-radius:5px}
118-
119-
#view
120-
{border:1px solid lightgray;border-radius:5px;padding:10px}
121-
web-editor
122-
{}
123-
124-
125-
.wunderbaum .wb-expander
126-
{opacity:1 !important;transition:none !important}
127-
.wb-row
128-
{cursor:pointer}
129-
130-
131-
.icon
132-
{border:1px solid gray;border-radius:3px;box-sizing:border-box;width:30px;height:30px;cursor:pointer}
133-
.spc
134-
{flex:1;max-width:200px}
135-
136-
106+
<style>
137107
</style>
138108

139109
</head>
@@ -190,18 +160,6 @@ <h3>
190160

191161

192162

193-
var files = {
194-
'source' : {
195-
'latest' : null,
196-
'v2.0' : null,
197-
},
198-
'examples' : {
199-
'snippet-console-v2.0-min.html' : null,
200-
},
201-
};
202-
203-
204-
205163
//:
206164

207165

@@ -212,8 +170,6 @@ <h3>
212170
$('#readme').innerHTML = html;
213171

214172

215-
var node = $('#demo-tree');
216-
217173
files = dirtree.build(files);
218174
dirtree.display(files,{callback});
219175

0 commit comments

Comments
 (0)