Java script for multiple copy buttons not working
I have multiple slides. On slide one for all the copy buttons I am using the following and just changing the text in between the " " on the copyFunction line, This is working perfectly. However, when I go to slide 2 and use the same java script for the layers on that slide, it does not copy the text. Can anyone give me a suggestion on that I am doing wrong?
var player = GetPlayer();
copyFunction ("I won't be able to help you recover this account, but I can help you create a new Account with a different email address. Are you interested in doing that today?");
function copyFunction(tt) {
const copyText = tt;
const textArea = document.createElement('textarea');
textArea.textContent = copyText;
document.body.append(textArea);
textArea.select();
document.execCommand("copy");
}
Here are the best practices for uploading a .story file:
Sorry, file attached now.