We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4249e0b commit b31d212Copy full SHA for b31d212
1 file changed
html/help-file/v1.0/help-file-v1.0.html
@@ -165,7 +165,7 @@
165
166
view = $(shadow,'#view');
167
168
- await load();
+ await load(src);
169
170
}//initdom
171
@@ -187,9 +187,9 @@
187
//:
188
189
190
- async function load(){
+ async function load(url){
191
192
- var {txt,error} = await get(src);
+ var {txt,error} = await get(url);
193
if(error){
194
txt = error;
195
}
@@ -233,6 +233,19 @@
233
var html = md.render(txt);
234
view.innerHTML = html;
235
236
+
237
238
+ $.all(view,'a').forEach(a=>a.onclick=click);
239
240
241
+ function click(e){
242
243
+ e.preventDefault();
244
+ var url = e.target.href;
245
+ load(url);
246
247
+ }//click
248
249
}//display
250
251
0 commit comments