From 561dc4ac534dd5f1721c284c278986db0770b266 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Fri, 17 Jan 2020 21:48:44 +0100 Subject: unicode: Also show character itself --- modules/unicode/index.html | 5 +++++ 1 file changed, 5 insertions(+) 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 @@ -64,6 +64,11 @@ function populateCharacter(div, row) { span.appendChild(document.createTextNode("U+" + row[0])); 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); -- cgit v1.2.3-70-g09d2