Files
archery/scripts/copy.js
Cory Sanin 77441fe7ed
All checks were successful
App Image CI / Build app image (pull_request) Successful in -1m26s
NPM Audit Check / Check NPM audit (pull_request) Successful in -2m14s
create public build endpoint
2025-09-23 19:15:19 -05:00

8 lines
279 B
JavaScript

document.addEventListener('DOMContentLoaded', function () {
for (let btn of document.getElementsByClassName('copybtn')) {
btn.addEventListener('click', e => {
navigator.clipboard.writeText(e.target.previousElementSibling.innerText);
});
}
});