From 4252e74736eb8ff890008ac43fb1a49f6666acf6 Mon Sep 17 00:00:00 2001 From: Kay Faraday Date: Fri, 10 Dec 2021 00:51:54 +0000 Subject: [PATCH] git cherry-pick 34ec199edb622371721517a2b64f36a1420f9f51 --- src/copy.js | 3 +++ templates/emojo.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/copy.js b/src/copy.js index dc76f7e..c417efa 100644 --- a/src/copy.js +++ b/src/copy.js @@ -28,4 +28,7 @@ Array.from(document.querySelectorAll('dl.emojo div')).forEach((element) => { element.addEventListener('click', copyEmojo); }); + + // only display the instructions if JS is enabled + document.getElementById('copy-instructions').innerText = 'click/touch to copy to clipboard'; }()); diff --git a/templates/emojo.html b/templates/emojo.html index 3d8a5f1..0c178dc 100644 --- a/templates/emojo.html +++ b/templates/emojo.html @@ -3,7 +3,7 @@ {% block body %}

{{ instance }} emojo list
- click/touch to copy to clipboard +

{% for category in emojo.keys() %}

{{ category }}