Skip to content

Commit 0fd6cac

Browse files
save file
1 parent 65d4e36 commit 0fd6cac

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

blog/25-07-24/http-server/http-server.html

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@
6161
var keydown;
6262
var code;
6363
var debug;
64-
6564

6665
var menu;
6766

67+
var hdr;
6868
var snippet;
6969

7070

@@ -74,14 +74,19 @@
7474
async function init(){
7575
//debug('init',version);
7676

77-
menu = menumod();
78-
77+
menu = menumod();
7978

80-
snippet = mod.snippet;
79+
hdr = mod['blog-hdr'];
80+
snippet = mod.snippet;
8181

82+
hdr.initmod({ext,$});
8283
snippet.initmod({ext,$,menu,ace,on});
8384

84-
await snippet.init();
85+
86+
await Promise.all([
87+
hdr.init(),
88+
snippet.init(),
89+
]);
8590

8691

8792
initdom(document.body);
@@ -181,8 +186,7 @@ <h1 class=title>
181186
<input value=download type=button>
182187
</div>
183188

184-
<snippet-terminal-console id=snippet type=nodejs component v2.0 src='ex/ex1.js'>
185-
</snippet-terminal-console>
189+
<snippet-terminal-console id=snippet type=nodejs src='ex/ex1.js' component></snippet-terminal-console>
186190

187191
</div>
188192

0 commit comments

Comments
 (0)