feature: add download all file by file alongside the tar download (#415)

This commit is contained in:
Emrik Östling 2025-10-07 21:27:31 +02:00 committed by GitHub
parent 27e9b7eb35
commit 3e7e95b53c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 79 additions and 82 deletions

View file

@ -22,3 +22,17 @@ const refreshData = () => {
};
refreshData();
window.downloadAll = function () {
// Get all download links
const downloadLinks = document.querySelectorAll("tbody a[download]");
// Trigger download for each link
downloadLinks.forEach((link, index) => {
// We add a delay for each download to prevent them from starting at the same time
setTimeout(() => {
const event = new MouseEvent("click");
link.dispatchEvent(event);
}, index * 300);
});
};