|
10 | 10 | <meta charset=utf-8> |
11 | 11 |
|
12 | 12 | <title> |
13 | | - html component : |
| 13 | + html component : snippet-console |
14 | 14 | </title> |
15 | 15 |
|
16 | 16 | <meta name=description content=''> |
17 | 17 |
|
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'> |
20 | 20 |
|
21 | 21 | <meta name=viewport content='width=device-width, initial-scale=1'> |
22 | 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='> |
|
31 | 31 |
|
32 | 32 | <script> |
33 | 33 |
|
34 | | - var df=true,did='html' |
35 | | - ; |
36 | | - |
| 34 | + |
37 | 35 | var base = 'https://libs.ext-code.com/html/'; |
38 | 36 | 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 | + ; |
39 | 50 |
|
40 | 51 | var ace; |
41 | 52 | var md; |
|
46 | 57 |
|
47 | 58 |
|
48 | 59 | async function init(){ |
49 | | - console.log('init'); |
| 60 | + debug('init'); |
50 | 61 |
|
51 | | - md = markdownit(); |
| 62 | + md = markdownit({ |
| 63 | + html : true, |
| 64 | + breaks : false, |
| 65 | + linkify : true, |
| 66 | + linkTarget : '_blank', |
| 67 | + }); |
52 | 68 |
|
53 | | - await load(); |
54 | 69 |
|
55 | 70 | dirtree = mod['dir-tree']; |
56 | 71 | snippet = mod['snippet-html-console']; |
57 | 72 | editor = mod['web-editor']; |
58 | 73 | log = mod['log-mod']; |
59 | 74 |
|
60 | 75 |
|
61 | | - await mod.auto(); |
| 76 | + await Promise.all([ |
| 77 | + load(), |
| 78 | + mod.auto() |
| 79 | + ]); |
62 | 80 |
|
63 | 81 |
|
64 | 82 | initdom(); |
|
82 | 100 |
|
83 | 101 | </script> |
84 | 102 |
|
85 | | - <style> |
86 | 103 |
|
| 104 | + <link rel=stylesheet href='../css/component.css' crossorigin=anonymous> |
87 | 105 |
|
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> |
137 | 107 | </style> |
138 | 108 |
|
139 | 109 | </head> |
@@ -190,18 +160,6 @@ <h3> |
190 | 160 |
|
191 | 161 |
|
192 | 162 |
|
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 | | - |
205 | 163 | //: |
206 | 164 |
|
207 | 165 |
|
|
212 | 170 | $('#readme').innerHTML = html; |
213 | 171 |
|
214 | 172 |
|
215 | | - var node = $('#demo-tree'); |
216 | | - |
217 | 173 | files = dirtree.build(files); |
218 | 174 | dirtree.display(files,{callback}); |
219 | 175 |
|
|
0 commit comments