website

Personal website
git clone https://github.com/michaelneuper/website.git
README | Files | Log | Refs

commit 73adb079ae5ee6518a47817a79f0f4f163b242a4
parent 8aae0040c8b9fadb769298ea1d1d13a911abad9a
Author: Michael Neuper <michael@michaelneuper.com>
Date:   Wed,  1 Nov 2023 18:28:46 +0200

Try to fix copy button appending "Copy"

Diffstat:
Mstatic/js/script.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/static/js/script.js b/static/js/script.js @@ -9,7 +9,7 @@ function addCopyButton() { const textToCopy = codeBlock.innerText.trim(); copyToClipboard(textToCopy); }); - codeBlock.appendChild(copyButton); + codeBlock.before(copyButton); }); }