mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
we copy static files used by PHP and Python versions into /static preparation work for the removal of the PHP version Signed-off-by: moson-mo <mo-son@mailbox.org>
9 lines
315 B
JavaScript
9 lines
315 B
JavaScript
document.addEventListener('DOMContentLoaded', function() {
|
|
let elements = document.querySelectorAll('.copy');
|
|
elements.forEach(function(el) {
|
|
el.addEventListener('click', function(e) {
|
|
e.preventDefault();
|
|
navigator.clipboard.writeText(e.target.text);
|
|
});
|
|
});
|
|
});
|