Copied message in bold

This commit is contained in:
2026-02-13 22:06:32 -05:00
parent 9315433cb1
commit c5318a3528

View File

@@ -13,7 +13,7 @@ async function handleCopy(event) {
// 4. Update the UI to show it worked // 4. Update the UI to show it worked
const link = event.target; const link = event.target;
const originalText = link.innerText; const originalText = link.innerText;
link.innerText = "Copied!"; link.innerHTML = "<b>Copied!</b>";
link.style.color = "#4CAF50"; // Turn green link.style.color = "#4CAF50"; // Turn green
// 5. Reset after 2 seconds // 5. Reset after 2 seconds