Wobbly-Website/script.js

10 lines
244 B
JavaScript
Raw Permalink Normal View History

2023-07-30 18:32:42 +02:00
function copyText(text) {
try {
navigator.clipboard.writeText(text);
console.log('Content copied to clipboard: "' + text + '"');
} catch (error) {
console.error('Failed to copy "' + text + '":', error);
}
}