redlib/static/copy.js
2025-02-06 15:05:59 -05:00

9 lines
No EOL
264 B
JavaScript

async function copy() {
await navigator.clipboard.writeText(document.getElementById('bincode_str').value);
}
async function set_listener() {
document.getElementById('copy').addEventListener('click', copy);
}
window.addEventListener('load', set_listener);