From 21aace98da400c2a1003e7adae713140dcf9c86c Mon Sep 17 00:00:00 2001 From: Thomas Smith <49042513+tsmitty11@users.noreply.github.com> Date: Wed, 19 Oct 2022 12:12:38 -0400 Subject: [PATCH] 'copy' => 'copied!' onClick --- src/layouts/page/tea-cli.html | 4 +++- src/layouts/partials/clipboard-copy.html | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/layouts/page/tea-cli.html b/src/layouts/page/tea-cli.html index bbb007f..07995dc 100644 --- a/src/layouts/page/tea-cli.html +++ b/src/layouts/page/tea-cli.html @@ -29,7 +29,7 @@ - +
@@ -167,6 +167,8 @@ /* Alert the copied text alert("Copied " + copyText.value + " to clipboard");*/ + + document.getElementById("copy-icon").innerHTML = "copied!"; } diff --git a/src/layouts/partials/clipboard-copy.html b/src/layouts/partials/clipboard-copy.html index 5ce6b47..9ffd692 100644 --- a/src/layouts/partials/clipboard-copy.html +++ b/src/layouts/partials/clipboard-copy.html @@ -3,7 +3,7 @@ - +
@@ -66,6 +66,9 @@ // Alert the copied text alert("Copied " + copyText.value + " to clipboard"); + + // Copy icon + document.getElementById("copy-icon").innerHTML = "copied!"; }