Skip to content

Commit a6cf276

Browse files
save file
1 parent eff196e commit a6cf276

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

utils/editors/js-console/v3.0/js-console-v3.0.html

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<script src="https://cdn.jsdelivr.net/npm/prettier@2.8.8/standalone.js"></script>
4646
<script src="https://cdn.jsdelivr.net/npm/prettier@2.8.8/parser-babel.js"></script>
4747
<script src="https://cdn.jsdelivr.net/npm/terser/dist/bundle.min.js"></script>
48-
48+
<script type=module>import {espree} from 'https://ext-code.com/libs/js/external/espree/espree.m.js';window.espree=espree;</script>
4949

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

@@ -66,6 +66,7 @@
6666
var publish;
6767
var editor;
6868
var output;
69+
var log;
6970

7071

7172
//:
@@ -79,6 +80,7 @@
7980
publish = mod['publish-ui'];
8081
editor = mod['web-editor'];
8182
output = mod['output-html'];
83+
log = mod['log-mod'];
8284

8385
mod.base.add({filemod,complete,source,focus});
8486

@@ -273,17 +275,17 @@ <h4 slot=version>v3.0</h4>
273275

274276

275277
async function initdom(rootnode){ //c
276-
console.log('initdom');
278+
debug('initdom');
277279
root = rootnode;
278280

279281
keydown.initdom();
280282
menu.add.style();
281283

282-
var btn = document.createElement('input');
283-
btn.type = 'button';
284-
btn.value = 'isolate';
285-
$(hdr.__host.shadowRoot,'#btns').append(btn);
286-
btn.onclick = btn.isolate;
284+
var btn1 = document.createElement('input');
285+
btn1.type = 'button';
286+
btn1.value = 'isolate';
287+
$(hdr.__host.shadowRoot,'#btns').append(btn1);
288+
btn1.onclick = btn.isolate;
287289

288290

289291
$(root,'#save').onclick = btn.save;
@@ -416,7 +418,7 @@ <h4 slot=version>v3.0</h4>
416418

417419

418420
btn.syntax = function(){
419-
421+
console.log('btn.syntax');
420422
var js = editor.getValue();
421423
var result = syntax(js);
422424
var str = JSON.stringify(result,null,4);

0 commit comments

Comments
 (0)