From 95198a1bd057b2aa1823f681129da5ecc1bae330 Mon Sep 17 00:00:00 2001 From: Musselman Date: Mon, 8 Jul 2024 19:25:45 -0500 Subject: [PATCH] Make the copied text reappear after copy --- assets/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/main.js b/assets/js/main.js index 8d95134..85b0e50 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -18,7 +18,7 @@ document.addEventListener("DOMContentLoaded", function () { codeBlock.innerText = "Copied!"; setTimeout(function () { codeBlock.innerText = originalText; - }, 1000); // Reset the text after 1 second + }, 1000); // Revert text after 1 second } catch (err) { console.error("Unable to copy:", err); }