diff --git a/assets/js/copy.js b/assets/js/copy.js new file mode 100644 index 0000000..f851234 --- /dev/null +++ b/assets/js/copy.js @@ -0,0 +1,6 @@ +const copy = () => { + let copyText = document.execCommand("selectAll"); + copyText.setSelectionRange(0, 99999) + document.execCommand("copy"); + alert("Copied the team!"); +} diff --git a/paste.tmpl b/paste.tmpl index b36e817..fc2121f 100644 --- a/paste.tmpl +++ b/paste.tmpl @@ -34,7 +34,10 @@ / + + +