From: Frédéric Péters Date: Fri, 5 May 2023 14:54:25 +0000 (+0200) Subject: display keyboard shortcut X-Git-Url: https://git.0d.be/?p=nanofun.git;a=commitdiff_plain display keyboard shortcut --- diff --git a/index.html b/index.html index 1854c66..f0661c1 100644 --- a/index.html +++ b/index.html @@ -13,6 +13,7 @@
+

diff --git a/nanofun.css b/nanofun.css index 85f73f0..c93ff91 100644 --- a/nanofun.css +++ b/nanofun.css @@ -79,12 +79,25 @@ div.nanotouch .loop { div.nanotouch span.name { position: absolute; + z-index: 10; +} + +div.nanotouch span.key { + position: absolute; + pointer-events: none; + right: 1ex; + top: 1ex; + opacity: 0.3; + font-size: 100px; + line-height: 50px; + z-index: 0; } div.nanotouch span.duration { position: absolute; bottom: 2ex; right: 1ex; + z-index: 10; } div#gitclone { diff --git a/nanofun.js b/nanofun.js index d84962b..5deb9c4 100644 --- a/nanofun.js +++ b/nanofun.js @@ -342,6 +342,7 @@ var nanofun = function() { for (var i=0; i