Skip to content

Commit f225bbf

Browse files
save file
1 parent 1ba840c commit f225bbf

File tree

1 file changed

+40
-40
lines changed

1 file changed

+40
-40
lines changed

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

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020

2121
<meta>
2222
<link rel=icon href=''>
23-
23+
2424

2525
<script src='https://ajaxorg.github.io/ace-builds/src-noconflict/ace.js'></script>
2626

27-
<script src='https://libs.ext-code.com/js/dom/component/component.js'></script>
27+
<script src='https://libs.ext-code.com/js/dom/component/v3.0/component.js'></script>
2828

2929
<script init>
3030
console.clear();
@@ -50,12 +50,12 @@
5050

5151

5252
async function init(){
53-
53+
5454
var menu = menumod();
5555

5656
mod.base.add({ext,$,datatype,keydown,menu,menumod,ace});
5757

58-
58+
5959
hdr = mod['html-components-hdr'];
6060
log = mod['log-mod'];
6161

@@ -82,7 +82,7 @@
8282
mod.stack.add;
8383

8484
({ext} = await import('https://libs.ext-code.com/js/io/ext-loader/ext-loader.m.js'));
85-
85+
8686
var promise = ext.load.libs(
8787
'js/dom/$.js',
8888
'js/core/datatype.js',
@@ -91,19 +91,19 @@
9191
'js/debug/debug.js',
9292
);
9393
[$,datatype,menumod,keydown,debug] = await promise;
94-
94+
9595
mod.stack.complete;
96-
96+
9797
})();
9898

9999
</script>
100100

101101

102102
<style>
103-
103+
104104
html
105105
{font-family:arial}
106-
106+
107107
#latest
108108
{display:block;margin-top:50px;border:1px solid blue;border-radius:10px;padding:10px}
109109

@@ -112,20 +112,20 @@
112112

113113
code
114114
{display:block;white-space:pre;background:whitesmoke}
115-
116-
115+
116+
117117
th {
118118
text-align: left;margin-bottom:10px
119-
}
119+
}
120120
td, th {
121121
padding: 5px 0px;
122-
}
122+
}
123123
</style>
124124

125125
</head>
126126

127127
<script>
128-
128+
129129
var data = {};
130130
data.readmd = `
131131
# description
@@ -140,16 +140,16 @@
140140
<h2 class=title style='top:10px'>snippet-html-console</h2>
141141
<time slot=date datetime=2025-12-10>10 Dec 2025</time>
142142
</html-components-hdr>
143-
144-
143+
144+
145145
<h3>
146146
Description
147147
</h3>
148-
149-
<div class=description>
150-
the snippet-html-console, allows running a html snippet with a console output
148+
149+
<div class=description>
150+
the snippet-html-console, allows running a html snippet with a console output
151151
</div>
152-
152+
153153

154154
<h3>
155155
Include
@@ -186,14 +186,14 @@ <h3>test</h3>
186186
<h3>
187187
initmod
188188
</h3>
189-
189+
190190
ext = params.ext;
191191
$ = params.$;
192192
menu = params.menu;
193193
ace = params.ace;
194194
menumod = params.menumod;
195195
log = params.log;
196-
196+
197197
<div>
198198
<table>
199199
<tr>
@@ -245,7 +245,7 @@ <h3>
245245
</td>
246246
</tr>
247247
</table>
248-
248+
249249
</div>
250250

251251

@@ -254,7 +254,7 @@ <h3>
254254
{margin:20px}
255255

256256
</style>
257-
257+
258258
<section api>
259259
<h3>
260260
API
@@ -314,8 +314,8 @@ <h4>
314314

315315
</div>
316316
</section>
317-
318-
317+
318+
319319
<section>
320320
<h3>
321321
Examples
@@ -327,11 +327,11 @@ <h3>
327327

328328
<section files>
329329
<style>
330-
330+
331331
[files] [tabs]
332332
{display:flex;text-align:center}
333333

334-
[files] [tabs] div
334+
[files] [tabs] div
335335
{cursor:pointer;margin-bottom:10px;flex:1;border:1px solid lightgray;padding:5px 10px}
336336

337337
</style>
@@ -351,21 +351,21 @@ <h3>
351351
<web-editor component id=editor mode=html fullsize src='https://libs.ext-code.com/html/snippet-html-console/snippet-html-console.html'></web-editor>
352352

353353
<script>
354-
354+
355355

356356
mod.stack.push(()=>{
357-
357+
358358
var base = 'https://libs.ext-code.com/html/snippet-html-console/';
359359
var get = url=>fetch(url).then(res=>res.text());
360360

361361
$.all('[files] [tabs] div').forEach(div=>{
362-
362+
363363
div.onclick = async e=>{
364-
364+
365365
var txt = div.textContent.trim();
366366
var src;
367367
switch(txt){
368-
368+
369369
case 'latest' : src='snippet-html-console.html'; break;
370370
case 'v2.0' : src='v2.0/snippet-html-console-v2.0.html'; break;
371371

@@ -375,13 +375,13 @@ <h3>
375375
editor.setValue(txt);
376376
editor.filename(src);
377377
editor.filename.save.hide();
378-
379-
}//onclick
378+
379+
}//onclick
380380

381381
});
382382

383383
});
384-
384+
385385

386386
</script>
387387

@@ -394,18 +394,18 @@ <h3>
394394

395395

396396
<script>
397-
397+
398398

399399
document.querySelectorAll('code script').forEach(node=>node.parentNode.textContent=node.textContent);
400-
401-
400+
401+
402402
//:
403403

404404

405405
//:
406406

407407
function initdom(){
408-
408+
409409
hdr.initdom();
410410
log.initdom();
411411

0 commit comments

Comments
 (0)