Skip to content

Commit cf7b080

Browse files
save file
1 parent 4c15741 commit cf7b080

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

code-dev/display.html

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,18 +217,31 @@ <h1 class=title>
217217
$('#date').textContent = date;
218218
$('#file').textContent = fn;
219219
console.log(ext,fn);
220+
var dom;
220221
switch(ext){
221222

222-
case 'html' : query.html(rel); break;
223+
case 'html' : dom = document.createElement('snippet-html-console'); break;
224+
case 'js' : dom = document.createElement('snippet-console'); break;
223225

224226
}//switch
225227

228+
dom.setAttribute('id','test');
229+
dom.toggleAttribute('component',true);
230+
dom.toggleAttribute('v2.0',true);
231+
dom.setAttribute('src',src);
232+
233+
document.body.append(dom);
234+
await mod.build({root:dom,mod});
235+
mod.test.initmod({ext,$,menu,ace});
236+
await mod.test.init();
237+
mod.test.initdom();
238+
226239
}//query
227240

228-
241+
/*
229242
query.html = async function(src){
230243
231-
var dom = document.createElement('snippet-html-console');
244+
var
232245
dom.setAttribute('id','test');
233246
dom.toggleAttribute('component',true);
234247
dom.toggleAttribute('v2.0',true);
@@ -243,6 +256,11 @@ <h1 class=title>
243256
}//html
244257
245258
259+
query.js = async function(src){
260+
}//js
261+
*/
262+
263+
246264
//:
247265

248266

0 commit comments

Comments
 (0)