Push Version 1

This commit is contained in:
MasterAcnolo
2025-06-28 18:33:16 +02:00
parent 8b4b3c84e0
commit 1216e5f10d
5 changed files with 18 additions and 7 deletions

View File

@@ -48,10 +48,14 @@
les infos du form, il faut aller sur ce canal précis (/download). La méthode POST dit les infos du form, il faut aller sur ce canal précis (/download). La méthode POST dit
que l'on envoie des données.--> que l'on envoie des données.-->
<div id="videoInfo" style="margin-top: 20px;"></div>
</div> </div>
<div class="infos-container">
<div id="videoInfo" style="margin-top: 20px;"></div>
</div>
<script src="script/downloadstatus.js"></script> <script src="script/downloadstatus.js"></script>
<script src="script/fetchinfo.js"></script> <script src="script/fetchinfo.js"></script>

View File

@@ -15,7 +15,7 @@ form.addEventListener("submit", async (e) => {
button.disabled = true; button.disabled = true;
// Affiche un message d'attente à l'utilisateur // Affiche un message d'attente à l'utilisateur
statusDiv.textContent = "Téléchargement en cours..."; statusDiv.textContent = "Téléchargement en cours...";
// Prépare les données du formulaire sous forme URL-encoded // Prépare les données du formulaire sous forme URL-encoded
const formData = new FormData(form); const formData = new FormData(form);

View File

@@ -1,4 +1,4 @@
.container { .container, .infos-container {
position: relative; position: relative;
top: 0; top: 0;
left: 0; left: 0;
@@ -9,4 +9,4 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
} }

View File

@@ -1,4 +1,6 @@
#downloadStatus { #downloadStatus {
margin-top: 1em;
min-height: 1.5em; min-height: 1.5em;
font-weight: bold; font-weight: bold;
text-align: center; text-align: center;

View File

@@ -29,11 +29,16 @@ body {
color: #333; color: #333;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
display: flex;
flex-direction: column;
align-items: center;
} }
#videoInfo { /* #videoInfo {
margin-top: 100px; margin-top: 100px;
padding: 1em; padding: 1em;
max-width: 600px; max-width: 600px;
@@ -51,4 +56,4 @@ body {
#videoInfo.visible { #videoInfo.visible {
opacity: 1; opacity: 1;
max-height: 1000px; max-height: 1000px;
} } */