|
1 | 1 |
|
2 | 2 |
|
| 3 | +<!DOCTYPE html> |
| 4 | + |
3 | 5 | <html> |
4 | | - <head> |
5 | 6 |
|
6 | | - <title>js-console</title> |
| 7 | + <head> |
| 8 | + <meta charset=utf-8> |
| 9 | + |
| 10 | + <title> |
| 11 | + js-console |
| 12 | + </title> |
| 13 | + |
7 | 14 | <meta name=description content='Run, test, and debug JavaScript instantly in your browser. A fast, lightweight online JS console built for developers who value speed and simplicity'> |
8 | 15 |
|
9 | | - <base href='https://javascript-2020.github.io/utils/editors/js-console/'> |
| 16 | + <base href='https://ext-code.com/utils/editors/js-console/'> |
10 | 17 | <link rel=canonical href='https://ext-code.com/utils/editors/js-console/js-console.html'> |
11 | 18 |
|
12 | 19 | <meta name=viewport content='width=device-width, initial-scale=1'> |
13 | 20 | <link rel=icon type='image/png' href='images/js-console-favicon.png'> |
14 | 21 |
|
| 22 | + |
| 23 | + |
| 24 | + <script src='https://cdn.jsdelivr.net/npm/ace-builds@1.37.0/src-min-noconflict/ace.js'></script> |
15 | 25 | <script src="https://cdn.jsdelivr.net/npm/prettier@2.8.8/standalone.js"></script> |
16 | 26 | <script src="https://cdn.jsdelivr.net/npm/prettier@2.8.8/parser-babel.js"></script> |
17 | 27 | <script src="https://cdn.jsdelivr.net/npm/terser/dist/bundle.min.js"></script> |
|
24 | 34 | console.log('js-console-v2.0.html'); |
25 | 35 | console.log(); |
26 | 36 | console.json=v=>console.log(JSON.stringify(v,null,4)); |
| 37 | + var df=true,version='v2.0' |
| 38 | + ; |
| 39 | + |
| 40 | + var ace; |
27 | 41 | var obfuscator; |
28 | 42 | var espree; |
29 | 43 |
|
|
32 | 46 | var datatype; |
33 | 47 | var menumod; |
34 | 48 | var keydown; |
| 49 | + var debug; |
35 | 50 |
|
36 | 51 | var menu; |
37 | 52 |
|
|
50 | 65 | mod.stack.add = init; |
51 | 66 |
|
52 | 67 | async function init(){ |
53 | | - console.log('init'); |
| 68 | + debug('init',version); |
54 | 69 | //keydown = keydown(); |
55 | 70 | menu = menumod(); |
56 | 71 |
|
57 | 72 | hdr = mod.hdr; |
58 | 73 | mainmenu = mod['main-menu']; |
59 | 74 | filemod = mod.filemod; |
60 | | - publish = mod.publish; |
| 75 | + publish = mod['publish-ui']; |
61 | 76 | editor = mod.editor; |
62 | 77 | output = mod.output; |
63 | 78 | log = mod.log; |
|
68 | 83 | mainmenu.initmod({ext,$,menu,editor,filemod}); |
69 | 84 | filemod.initmod({ext,$,menu,menumod,complete,source,focus,log}); |
70 | 85 | publish.initmod({ext,$,ui,menu,source,complete,log}); |
71 | | - editor.initmod({ext,$,menu}); |
| 86 | + editor.initmod({ext,$,menu,ace}); |
72 | 87 | output.initmod({ext,$}); |
73 | 88 | log.initmod({ext,$}); |
74 | 89 |
|
75 | | - await mainmenu.init(); |
76 | | - await hdr.init(); |
77 | | - await filemod.init(); |
78 | | - await publish.init(); |
79 | | - await editor.init(); |
80 | | - await output.init(); |
81 | | - await log.init(); |
| 90 | + await Promise.all([ |
| 91 | + mainmenu.init(), |
| 92 | + hdr.init(), |
| 93 | + filemod.init(), |
| 94 | + publish.init(), |
| 95 | + editor.init(), |
| 96 | + output.init(), |
| 97 | + log.init(), |
| 98 | + ]); |
82 | 99 |
|
83 | 100 |
|
84 | 101 | //: |
|
108 | 125 | 'js/dom/$.js', |
109 | 126 | 'js/core/datatype.js', |
110 | 127 | 'js/dom/menumod/menumod.js', |
111 | | - 'js/dom/keydown/keydown.js' |
| 128 | + 'js/dom/keydown/keydown.js', |
| 129 | + 'js/debug/debug.js' |
112 | 130 | ); |
113 | | - [$,datatype,menumod,keydown] = await promise; |
| 131 | + [$,datatype,menumod,keydown,debug] = await promise; |
114 | 132 |
|
115 | 133 | mod.stack.complete; |
116 | 134 |
|
|
221 | 239 | </div> |
222 | 240 | </div> |
223 | 241 |
|
224 | | - <publish component v2.0></publish> |
| 242 | + <publish-ui component v2.0></publish-ui> |
225 | 243 |
|
226 | 244 | <button id=run>run</button> |
227 | 245 |
|
228 | 246 | <div id=iframe-root> |
229 | 247 | <span> |
230 | 248 | iframe |
231 | 249 | </span> |
232 | | - <input id=iframe type=checkbox> |
| 250 | + <input id=iframe type=checkbox checked> |
233 | 251 | </div> |
234 | 252 |
|
235 | 253 | <div id=async-root> |
236 | 254 | <span> |
237 | 255 | async |
238 | 256 | </span> |
239 | | - <input id=async type=checkbox> |
| 257 | + <input id=async type=checkbox checked> |
240 | 258 | </div> |
241 | 259 |
|
242 | 260 | <img id=syntax-chk class=icon title=syntax> |
|
0 commit comments