Update voice demo copy button

This commit is contained in:
Xin Wang
2026-06-01 09:52:09 +08:00
parent 0913f8e655
commit f22df60873
3 changed files with 31 additions and 8 deletions

View File

@@ -171,9 +171,9 @@ async function copyChatId() {
els.chatId.disabled = true;
}
els.copyChatIdBtn.textContent = "Copied";
els.copyChatIdBtn.classList.add("copied");
window.setTimeout(() => {
els.copyChatIdBtn.textContent = "Copy";
els.copyChatIdBtn.classList.remove("copied");
}, 1200);
}