Skip to content

Commit 706e8e8

Browse files
save file
1 parent 895bbb0 commit 706e8e8

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

utils/misc/nodejs-terminal/html/snippet-nodejs/v1.0/snippet-nodejs-v1.0.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@
9393
var tmpfile = '/tmp.js';
9494
var tmpfile2 = '~/user/tmp.js';
9595

96+
97+
var chk = {};
98+
99+
100+
96101
var btn = {};
97102

98103

@@ -128,6 +133,11 @@
128133

129134
$(shadow,'[value=run]').onclick = btn.run;
130135

136+
chk.persist = $.chkbox(shadow,'#persist');
137+
chk.echo = $.chkbox(shadow,'#echo');
138+
139+
$(shadowm,'[value=clear]').onclick = btn.clear;
140+
131141

132142
}//initdom
133143

@@ -173,6 +183,13 @@
173183
}//kill
174184

175185

186+
btn.clear = function(){
187+
188+
term.clear();
189+
190+
}//clear
191+
192+
176193
//:
177194

178195

0 commit comments

Comments
 (0)