Initial commit

This commit is contained in:
2025-11-11 01:48:45 +01:00
commit 06d0e1c426
14 changed files with 568 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
// Exemple pour polling du download si nécessaire
function checkDownloadStatus(downloadId) {
fetch(`/download_status/${downloadId}`)
.then(response => response.json())
.then(data => {
if(data.status === 'ready') {
// Mettre à jour le lien sur la page
document.querySelector(`#link-${downloadId}`).innerHTML =
`<a href="${data.link}">Télécharger</a>`;
} else {
setTimeout(() => checkDownloadStatus(downloadId), 5000);
}
});
}