Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
florenciagithub authored May 19, 2024
1 parent 71a593b commit 2a18707
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ function copyOutputText() {
textarea.select();
document.execCommand('copy');
document.body.removeChild(textarea);
alert('Ausgabetext kopiert!');

// Temporäre visuelle Rückmeldung auf dem Button
let copyButton = document.getElementById('copyButton');
copyButton.textContent = 'Kopiert!';
setTimeout(() => {
copyButton.textContent = 'C';
}, 2000); // Rücksetzen nach 2 Sekunden
}

0 comments on commit 2a18707

Please sign in to comment.