Skip to content

Commit a067cd0

Browse files
save file
1 parent 2727c9e commit a067cd0

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

html-components/ex/log-ex.html

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,67 @@
11

22
<!-- this is the component library include -->
33

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

66
<!-- the component itself -->
77
<log-mod component></log-mod>
8-
8+
99

1010
<script init>
1111
// ext here is a convenience library for easily loading modules
1212
// $ here is a simple library that contains some common dom operations
1313
// datatype a simple function for determining datatypes, $ relies on it
14-
var ext;
15-
var $;
16-
var datatype;
17-
14+
var ext;
15+
var $;
16+
var datatype;
17+
1818

1919
var log;
20-
20+
2121

2222
async function init(){
23-
24-
23+
24+
2525
log = mod['log-mod'];
2626

2727
log.initmod({$});
2828

2929
await log.init();
30-
30+
3131

3232
initdom();
33-
33+
3434

3535
}//init
36-
36+
3737
(async()=>{
3838
// this adds to the asynchronous counter
39-
mod.stack.add;
40-
41-
// these libraries need to be loaded for this example before the page is ready to run
39+
mod.stack.add;
40+
41+
// these libraries need to be loaded for this example before the page is ready to run
4242

4343
({ext} = await import('https://libs.ext-code.com/js/io/ext-loader/ext-loader.m.js'));
4444
[$,datatype] = await ext.load.libs('js/dom/$.js','js/core/datatype.js');
4545

4646
// this tells the component library the asynchonous work here is done
47-
mod.stack.complete;
48-
47+
mod.stack.complete;
48+
4949
})();
50-
51-
52-
function initdom(){
5350

51+
52+
function initdom(){
53+
5454
// ..
5555

5656
log.initdom();
57-
57+
5858

5959
log.green('helloworld');
60-
60+
6161

6262
}//initdom
6363

64-
64+
6565
</script>
6666

6767

0 commit comments

Comments
 (0)