Skip to content

Commit 798afba

Browse files
save file
1 parent e143dcd commit 798afba

File tree

1 file changed

+45
-29
lines changed

1 file changed

+45
-29
lines changed

utils/editors/js-console/html/output-console/test/output-console-v2.0-test.html

Lines changed: 45 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,26 @@
55
<head>
66

77
<base href='https://ext-code.com/utils/editors/js-console/'>
8-
9-
10-
11-
12-
8+
9+
10+
11+
12+
1313
<script src='https://libs.ext-code.com/js/dom/component/component.js'></script>
14-
14+
1515

1616
<script init>
1717
console.clear();
18-
18+
1919
var ext,$,datatype,menumod,keydown;
2020

21-
21+
2222
var output;
2323

24-
24+
2525
async function init(){
2626
console.log('init');
27-
27+
2828
//keydown.add(kd);
2929

3030
output = mod['output-console'];
@@ -38,33 +38,33 @@
3838

3939

4040
initdom();
41-
42-
test();
4341

44-
42+
test2();
43+
44+
4545
}//init
46-
47-
46+
47+
4848
(async()=>{
4949

5050
mod.stack.add;
5151

5252
({ext} = await import('https://libs.ext-code.com/js/io/ext-loader/ext-loader.m.js'));
53-
53+
5454
var promise = ext.load.libs(
5555
'js/dom/$.js.api',
5656
'js/core/datatype.js',
5757
'js/dom/menumod/menumod.js',
5858
'js/dom/keydown/keydown.js'
5959
);
6060
[$,datatype,menumod,keydown] = await promise;
61-
61+
6262
mod.stack.complete;
63-
63+
6464
})();
6565

6666
</script init>
67-
67+
6868

6969
<style>
7070

@@ -74,34 +74,34 @@
7474
{height:calc(100% - 16px)}
7575

7676
</style>
77-
77+
7878
</head>
7979

8080

8181
<body>
82-
82+
8383
<output-console component=page v2.0></output-console>
8484

8585
</body>
86-
86+
8787

8888
<script>
89-
89+
9090

9191
function initdom(){
92-
92+
9393
output.initdom();
94-
95-
94+
95+
9696

9797
}//initdom
98-
99-
98+
99+
100100
//:
101101

102102

103103
function test(){
104-
104+
105105
var js = `
106106
107107
console.log(1,2,3);
@@ -112,6 +112,22 @@
112112
}//test
113113

114114

115+
function test2(){
116+
117+
var js = `
118+
119+
console.groupCollapsed(1,2,3);
120+
121+
function datatype(v){return Object.prototype.toString.call(v).slice(8,-1).toLowerCase()}
122+
123+
console.log(datatype({}));
124+
125+
`;
126+
output.run.iframe2(js);
127+
128+
}//test2
129+
130+
115131

116132
</script>
117133

0 commit comments

Comments
 (0)