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:
moson-mo 2023-04-22 11:39:00 +02:00
parent 1325c71712
commit 97d0eac303
No known key found for this signature in database
GPG key ID: 4A4760AB4EE15296
27 changed files with 2874 additions and 5 deletions

9
static/js/copy.js Normal file
View 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);
});
});
});