Skip to content

Commit 27dfbd2

Browse files
save file
1 parent 269ba73 commit 27dfbd2

1 file changed

Lines changed: 17 additions & 5 deletions

File tree

‎utils/editors/js-console/html/main-menu/v2.0/main-menu-v2.0.html‎

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,6 @@
115115
click.clear = function(){
116116

117117
par.clear();
118-
/*
119-
filemod.clear();
120-
editor.clear();
121-
editor.filename.clear();
122-
*/
123118

124119
}//clear
125120

@@ -156,6 +151,23 @@
156151
var examples = {};
157152

158153
examples['hello-world'] = `
154+
155+
var str = 'hello-world';
156+
var i = 1;
157+
setInterval(fn,250);
158+
fn();
159+
160+
function fn(){
161+
162+
var s = str.slice(0,i);
163+
console.log(s);
164+
i++;
165+
if(i==str.length){
166+
i = 1;
167+
}
168+
169+
}//fn
170+
159171
`;
160172

161173
examples.confetti = `

0 commit comments

Comments
 (0)