Wobbly-Website/script.js
2024-10-05 16:39:36 +02:00

9 lines
244 B
JavaScript

function copyText(text) {
try {
navigator.clipboard.writeText(text);
console.log('Content copied to clipboard: "' + text + '"');
} catch (error) {
console.error('Failed to copy "' + text + '":', error);
}
}