Skip to content

Commit 4d2e868

Browse files
save file
1 parent e3da8d0 commit 4d2e868

1 file changed

Lines changed: 13 additions & 8 deletions

File tree

utils/misc/html-entities/v2.0/html-entities-v2.0.html

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@
4545
console.log('html-entities-v2.0.html');
4646
console.log();
4747
console.json=v=>console.log(JSON.stringify(v,null,4));
48-
var df=true,version='v2.0'
49-
;
48+
var version='v2.0';
49+
var df=true;
50+
5051

5152

5253
var he;
@@ -221,9 +222,10 @@
221222

222223
<div id=center>
223224

224-
<misc-hdr component=grp>
225-
<img class=title src='images/html-entities.png' style='top:-20px;height:80px' alt=html-entities>
225+
<misc-hdr v2.0 component=grp>
226+
<img slot=title class=title src='images/html-entities.png' style='top:-20px;height:80px' alt=html-entities>
226227
<time slot=date datetime=2025-10-31>31 Oct 2025</time>
228+
227229
</misc-hdr>
228230

229231

@@ -266,12 +268,15 @@
266268

267269
root = rootnode;
268270

269-
var hdr = $(root,'#hdr');
271+
hdr.initdom();
272+
hdr.set.version(version);
273+
274+
var r1 = $(root,'#hdr');
270275

271-
filemod.initdom(hdr);
276+
filemod.initdom(r1);
272277

273-
$(hdr,'[value=encode]').onclick = btn.encode;
274-
$(hdr,'[value=decode]').onclick = btn.decode;
278+
$(r1,'[value=encode]').onclick = btn.encode;
279+
$(r1,'[value=decode]').onclick = btn.decode;
275280

276281

277282

0 commit comments

Comments
 (0)