mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
housekeep: copy static files
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>
This commit is contained in:
parent
1325c71712
commit
97d0eac303
27 changed files with 2874 additions and 5 deletions
9
static/js/copy.js
Normal file
9
static/js/copy.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
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);
|
||||
});
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue