Skip to content

Commit aaa3e1a

Browse files
committed
wip: show identity *plus* hash
1 parent f939932 commit aaa3e1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demo/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
const sum = document.createElement('summary');
3030
det.append(sum);
3131
const d = db[tag][hash];
32-
sum.textContent = tag + ' ' + (idDb[hash] || hash);
32+
sum.textContent = tag + ' ' + (idDb[hash] || ' ') + ' (' + hash + ')';
3333
det.addEventListener('toggle', () => {if (det.children.length < 2) det.append(...display(db[tag][hash]))})
3434
elements.push(det);
3535
}
@@ -90,7 +90,7 @@
9090
const det = document.createElement('details');
9191
const sum = document.createElement('summary');
9292
det.append(sum);
93-
sum.textContent = tag + ' ' + (idDb[hash] || hash);
93+
sum.textContent = tag + ' ' + (idDb[hash] || ' ') + ' (' + hash + ')';
9494
det.addEventListener('toggle', () => {console.log('toggled!'); if (det.children.length < 2) det.append(...display(db[tag][hash]))})
9595
details.append(det);
9696
}

0 commit comments

Comments
 (0)