Skip to content

Commit 8175bfa

Browse files
save file
1 parent b1f311b commit 8175bfa

File tree

1 file changed

+14
-72
lines changed

1 file changed

+14
-72
lines changed

code-dev/index.html

Lines changed: 14 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -28,92 +28,30 @@
2828
<script src='https://ajaxorg.github.io/ace-builds/src-noconflict/ace.js'></script>
2929

3030

31-
<script src='https://libs.ext-code.com/js/dom/component/v3.0/component.js'></script>
31+
<script src='https://libs.ext-code.com/js/dom/component/v3.0/component.js?hdr'></script>
3232

33-
<script init>
33+
<script>
3434
console.clear();
3535
console.log('code-dev.index.html');
3636
console.log();
3737
console.json=v=>console.log(JSON.stringify(v,null,4));
38-
var df=true,version='v2.0'
39-
;
40-
41-
var ace;
4238
var jdenticon
4339

44-
var ext;
45-
var $;
46-
var datatype;
47-
var menumod;
48-
var keydown;
49-
var code;
50-
var debug;
51-
52-
var menu;
53-
54-
var hdr;
55-
var log;
5640

5741

5842
//:
5943

6044

61-
async function init(){
45+
async function ready(){
6246
//debug('init',version);
63-
64-
menu = menumod();
65-
66-
mod.base.add({ext,$,datatype,keydown,menu,menumod,ace});
67-
68-
69-
hdr = mod['main-hdr'];
70-
log = mod['log-mod'];
71-
72-
hdr.initmod({ext,$});
73-
log.initmod({ext,$});
74-
75-
await Promise.all([
76-
hdr.init(),
77-
log.init(),
78-
]);
79-
47+
jdenticon = await import('https://cdn.jsdelivr.net/npm/jdenticon/+esm');
8048

8149
initdom(document.body);
8250

83-
8451
}//init
8552

8653

87-
//:
88-
89-
90-
(async()=>{
91-
92-
mod.stack.add;
93-
94-
({ext} = await import('https://libs.ext-code.com/js/io/ext-loader/ext-loader.m.js'));
95-
96-
var promise = ext.load.libs(
97-
'js/dom/$.js.api',
98-
'js/core/datatype.js',
99-
'js/dom/menumod/menumod.js',
100-
'js/dom/keydown/keydown.js',
101-
'js/dom/code/v2.0/code-v2.0.js.api',
102-
'js/debug/debug.js',
103-
);
104-
[$,datatype,menumod,keydown,code,debug] = await promise;
105-
106-
code.initmod({ext,$,datatype,menumod});
107-
108-
109-
jdenticon = await import('https://cdn.jsdelivr.net/npm/jdenticon/+esm');
110-
111-
mod.stack.complete;
112-
113-
})();
114-
115-
116-
</script init>
54+
</script>
11755

11856
<!--
11957
<link rel=stylesheet href='/blog/css/blog.css'>
@@ -160,6 +98,15 @@ <h1 class=title>
16098

16199

162100

101+
<a href='26-02-11/jquery-as-a-one-liner/jquery-as-a-one-liner.html'>
102+
<span class=date>
103+
</span>
104+
<img>
105+
<span class=title>
106+
</span>
107+
</a>
108+
109+
163110
<a href='25-11-29/scrolling-nav-side-bar/scrolling-nav-side-bar.html'>
164111
<span class=date>
165112
</span>
@@ -229,8 +176,6 @@ <h1 class=title>
229176
function initdom(rootnode){
230177

231178

232-
hdr.initdom();
233-
234179
var list = rootnode.querySelectorAll('a');
235180
list.forEach(a=>{
236181

@@ -256,9 +201,6 @@ <h1 class=title>
256201
});
257202

258203

259-
log.initdom();
260-
261-
262204
}//initdom
263205

264206

0 commit comments

Comments
 (0)