summaryrefslogtreecommitdiff
path: root/modules/unicode/index.html
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2020-01-17 21:48:44 +0100
committertomsmeding <tom.smeding@gmail.com>2020-01-17 21:48:44 +0100
commit561dc4ac534dd5f1721c284c278986db0770b266 (patch)
tree80d2ae33daa9f58642d4ea4f9e4cb7f2153cd0f4 /modules/unicode/index.html
parentdf268d8fc6b68be2a539561e89a376f0334a6e1e (diff)
unicode: Also show character itself
Diffstat (limited to 'modules/unicode/index.html')
-rw-r--r--modules/unicode/index.html5
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);
}