diff options
author | tomsmeding <tom.smeding@gmail.com> | 2020-01-17 21:48:44 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2020-01-17 21:48:44 +0100 |
commit | 561dc4ac534dd5f1721c284c278986db0770b266 (patch) | |
tree | 80d2ae33daa9f58642d4ea4f9e4cb7f2153cd0f4 /modules | |
parent | df268d8fc6b68be2a539561e89a376f0334a6e1e (diff) |
unicode: Also show character itself
Diffstat (limited to 'modules')
-rw-r--r-- | modules/unicode/index.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/unicode/index.html b/modules/unicode/index.html index e44a96e..c9b1fe5 100644 --- a/modules/unicode/index.html +++ b/modules/unicode/index.html @@ -65,6 +65,11 @@ function populateCharacter(div, row) { div.appendChild(span); span = document.createElement("span"); + span.setAttribute("style", "display: inline-block; width: 2em;"); + span.appendChild(document.createTextNode(String.fromCodePoint(parseInt(row[0], 16)))); + div.appendChild(span); + + span = document.createElement("span"); span.appendChild(document.createTextNode(row[1])); div.appendChild(span); } |