MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / showSuccessMessage

Function showSuccessMessage

codeclash/viewer/static/js/clipboard.js:5–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3// Copy to clipboard function
4function copyToClipboard(text, button) {
5 function showSuccessMessage() {
6 if (button) {
7 const originalText = button.textContent;
8 const originalColor = button.style.color;
9 button.textContent = "✓ Copied";
10 button.style.color = "green";
11 setTimeout(() => {
12 button.textContent = originalText;
13 button.style.color = originalColor;
14 }, 1500);
15 }
16 }
17
18 // Check if modern clipboard API is available
19 if (navigator.clipboard && navigator.clipboard.writeText) {

Callers 3

copyToClipboardFunction · 0.85
fallbackCopyFunction · 0.85
downloadFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected