Skip to content

Commit

Permalink
Copy script.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereckmezquita committed Jul 7, 2024
1 parent 07c447b commit 3319ec6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions vignettes/donate.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,20 @@ vignette: >
%\VignetteEncoding{UTF-8}
---

<script>
function copyToClipboard(elementId) {
var element = document.getElementById(elementId);
var text = element.innerText;
navigator.clipboard.writeText(text).then(function() {
console.log('Copying to clipboard was successful!');
alert("Copied to clipboard!");
}, function(err) {
console.error('Could not copy text: ', err);
});
}
</script>


## Support my work

If you find this package useful, please consider supporting my work with a cryptocurrency donation.
Expand Down

0 comments on commit 3319ec6

Please sign in to comment.