Initial commit
This commit is contained in:
18
frontend/static/css/style.css
Normal file
18
frontend/static/css/style.css
Normal file
@@ -0,0 +1,18 @@
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
margin: 20px;
|
||||
}
|
||||
header {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
th, td {
|
||||
border: 1px solid #ccc;
|
||||
padding: 5px 10px;
|
||||
}
|
||||
th {
|
||||
background-color: #f0f0f0;
|
||||
}
|
||||
14
frontend/static/js/main.js
Normal file
14
frontend/static/js/main.js
Normal 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);
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user