Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions assets/js/copy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const copy = () => {
let copyText = document.execCommand("selectAll");
copyText.setSelectionRange(0, 99999)
document.execCommand("copy");
alert("Copied the team!");
}
3 changes: 3 additions & 0 deletions paste.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@
<label for="evivmode">Stat Colours</label> /
<input id="lightmode" type="checkbox">
<label for="lightmode">Light Mode</label>

<img src="https://image.flaticon.com/icons/png/512/88/88026.png" value="Copy" id="team-pasteable"/>
</aside>
<script src="/js/copy.js"></script>
<script src="/js/preferences.js"></script>
</body>
</html>