Skip to content

Commit 58cb0da

Browse files
save file
1 parent 6266dce commit 58cb0da

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

blog/25-08-17/nodejs-in-webpage/nodejs-in-webpage.html

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,8 @@
6666

6767
var menu;
6868

69+
var hdr;
6970
var snippet;
70-
71-
7271
var log;
7372

7473

@@ -79,14 +78,16 @@
7978
debug('init',version);
8079
menu = menumod();
8180

82-
81+
hdr = mod['blog-hdr'];
8382
snippet = mod.ex1;
84-
log = mod.log;
83+
log = mod['log-mod'];
8584

85+
hdr.initmod({ext,$});
8686
snippet.initmod({ext,$,menu,ace});
8787
log.initmod({ext,$});
8888

8989
await Promise.all([
90+
hdr.init(),
9091
snippet.init(),
9192
log.init(),
9293
]);
@@ -236,9 +237,10 @@ <h1 class=title>
236237

237238
root = rootnode;
238239

239-
240-
snippet.initdom(root);
241240

241+
hdr.initdom();
242+
243+
snippet.initdom(root);
242244

243245
log.initdom();
244246

0 commit comments

Comments
 (0)