Skip to content

Commit 963fa04

Browse files
save file
1 parent 37274a8 commit 963fa04

1 file changed

Lines changed: 30 additions & 7 deletions

File tree

‎utils/editors/html/code-explorer/v1.0/code-explorer-v1.0.html‎

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@
116116

117117

118118
var btn = {};
119+
var update = {};
119120
var sort = {};
120121
sort.alpha = {};
121122
sort.source = {};
@@ -168,17 +169,24 @@
168169
}//update
169170

170171

172+
btn.fn = function(){
173+
}//fn
174+
175+
176+
btn.html = function(){
177+
}//html
178+
179+
171180
//:
172181

173182

174-
obj.update = update;
175-
176-
function update(){ //d
183+
184+
update.fn = function(){
177185
//var d=debug('update');
178186
var mode = editor.mode;
179187
debug(mode);
180188
var txt = editor.getvalue();
181-
parse.fn[mode](txt);
189+
var list = parse.fn[mode](txt);
182190
console.log(list);
183191
view.replaceChildren();
184192

@@ -196,7 +204,19 @@
196204
});
197205

198206

199-
}//update
207+
}//fn
208+
209+
210+
update.html = function(){
211+
212+
var txt = editor.getvalue();
213+
var list = parse.html(txt);
214+
console.log(list);
215+
view.replaceChildren();
216+
217+
218+
219+
}//html
200220

201221

202222
//:
@@ -211,20 +231,21 @@
211231

212232
parse.fn.javascript = function(txt){
213233

214-
list = {};
234+
var list = {};
215235

216236
list.fn = parse.fn(txt);
217237
list.fn.forEach(o=>o.line=lineno(txt,o.index));
218238

219239
list.label = parse.label(txt);
220240
list.label.forEach(o=>o.line=lineno(txt,o.index));
221241

242+
return list;
222243
}//js
223244

224245

225246
parse.fn.html = function(txt){
226247

227-
list = {};
248+
var list = {};
228249
list.fn = [];
229250
list.label = [];
230251

@@ -264,6 +285,8 @@
264285

265286
}//while
266287

288+
return list;
289+
267290
}//html
268291

269292

0 commit comments

Comments
 (0)