Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Last active July 14, 2017 08:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/c4c6744ecb848729c14f29bf25c8ff47 to your computer and use it in GitHub Desktop.
Save bjoerntx/c4c6744ecb848729c14f29bf25c8ff47 to your computer and use it in GitHub Desktop.
TXTextControl.addEventListener("clipboardDataTransferProgress", function (e) {
progressClipboardTransfer(e);
});
function progressClipboardTransfer(e) {
if (e.id == curClipboardTransferId)
{
var y = document.getElementById("toast-progress");
y.style.width = e.progress + "%";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment