Skip to content

Commit dac4915

Browse files
save file
1 parent d6a7bc7 commit dac4915

File tree

1 file changed

+11
-72
lines changed

1 file changed

+11
-72
lines changed

blog/index.html

Lines changed: 11 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -22,78 +22,19 @@
2222
<meta name=viewport content='width=device-width, initial-scale=1'>
2323

2424

25-
<script src='https://libs.ext-code.com/js/dom/component/v2.0/component.js'></script>
25+
<script src='https://libs.ext-code.com/js/dom/component/v2.0/component.js?hdr'></script>
2626

2727
<script>
28-
console.clear();
2928
console.log('index.html');
30-
console.log();
31-
console.json=v=>console.log(JSON.stringify(v,null,4));
32-
var df=true,version='v2.0'
33-
;
29+
var version='v2.0';
3430

35-
var ace;
31+
async function ready(){
3632

37-
var ext;
38-
var $;
39-
var datatype;
40-
var menumod;
41-
var keydown;
42-
var debug;
43-
44-
var menu;
45-
46-
var hdr;
47-
var log;
48-
49-
50-
//:
51-
52-
53-
async function init(){
54-
55-
menu = menumod();
56-
57-
mod.base.add({ext,$,datatype,keydown,menu,menumod});
58-
59-
60-
hdr = mod['blog-hdr'];
61-
log = mod['log-mod'];
62-
63-
hdr.initmod({ext,$});
64-
log.initmod({ext,$});
65-
66-
await Promise.all([
67-
hdr.init(),
68-
log.init(),
69-
]);
70-
7133
initdom();
7234

7335
}//init
7436

75-
76-
(async()=>{
77-
78-
mod.stack.add;
79-
80-
({ext} = await import('https://libs.ext-code.com/js/io/ext-loader/ext-loader.m.js'));
81-
82-
var promise = ext.load.libs(
83-
'js/dom/$.js',
84-
'js/core/datatype.js',
85-
'js/dom/menumod/menumod.js',
86-
'js/dom/keydown/keydown.js',
87-
'js/debug/debug.js',
88-
);
89-
90-
[$,datatype,menumod,keydown,debug] = await promise;
91-
92-
mod.stack.complete;
93-
94-
})();
95-
96-
</script init>
37+
</script>
9738

9839

9940
<style>
@@ -140,9 +81,13 @@
14081

14182
<body>
14283

143-
<blog-hdr component=page>
144-
<h1>blog / index</h1>
145-
<time slot=date datetime=2025-12-29>29 Dec 2025</time>
84+
<blog-hdr v2.0 component=page>
85+
<h1 slot=title>
86+
blog / index
87+
</h1>
88+
<time slot=date datetime=2026-02-05>
89+
05 Feb 2026
90+
</time>
14691
</blog-hdr>
14792

14893

@@ -500,15 +445,9 @@ <h1>blog / index</h1>
500445

501446

502447
function initdom(){
503-
504-
hdr.initdom();
505-
log.initdom();
506-
507448
}//initdom
508449

509450

510-
511-
512451
</script>
513452

514453
</html>

0 commit comments

Comments
 (0)