Skip to content

Commit 635bc5e

Browse files
save file
1 parent 8a7c441 commit 635bc5e

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

html-components/ex/log-ex.html

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,48 @@
44

55

66
<script init>
7-
7+
8+
var ext; // ext here is a convenience library for easily loading modules
9+
var $; // $ here is a simple library that contains some common dom operations
10+
var datatype; // a simple function for determining datatypes, $ relies on it
11+
812
var log;
913

1014
async function init(){
1115

1216

1317
log = mod['log-mod'];
1418

15-
log.initmod({});
19+
log.initmod({$});
1620

1721
await log.init();
1822

1923

24+
initdom();
25+
26+
2027
}//init
28+
29+
(async()=>{
30+
31+
mod.stack.add; // this adds to the asynchronous counter
32+
33+
({ext} = await import('https://libs.ext-code.com/js/io/ext-loader/ext-loader.m.js'));
34+
$,datatype = await ext.load.libs('js/dom/$.js','js/core/datatype.js');
35+
36+
mod.stack.complete; // this tells the component library the asynchonous work here is done
37+
38+
})();
2139

2240

2341
function initdom(){
2442

2543
log.initdom();
2644
log.green('helloworld');
27-
2845

2946
}//initdom
3047

31-
48+
3249
</script>
3350

3451

0 commit comments

Comments
 (0)