mixé
This commit is contained in:
@@ -33,16 +33,16 @@
|
||||
<option value="1280x720">1280x720</option>
|
||||
</select>
|
||||
<br><br>
|
||||
<label for="duration">Durée (en minutes) :</label>
|
||||
<label for="duration">Durée (en secondes) :</label>
|
||||
<div class="duration-input">
|
||||
<button type="button" id="decrement-button">-</button>
|
||||
<input type="number" id="duration" name="duration" value="0" min="0" required>
|
||||
<button type="button" id="increment-button">+</button>
|
||||
</div>
|
||||
<label for="choice">Choose Option:</label>
|
||||
<label for="choice">Options :</label>
|
||||
<select id="choice" name="choice">
|
||||
<option value="firstLast">First and Last</option>
|
||||
<option value="oneByOne">One by One</option>
|
||||
<option value="firstLast">première et dernière image</option>
|
||||
<option value="oneByOne">sélectionner les images une par une</option>
|
||||
</select>
|
||||
<br><br>
|
||||
<div id="first-last-container" style="display: block;">
|
||||
@@ -114,9 +114,6 @@
|
||||
See all images
|
||||
</button>
|
||||
</th>
|
||||
<th><button class="btn btn-primary">
|
||||
sort images
|
||||
</button></th>
|
||||
<th><button class="btn btn-primary">
|
||||
export images
|
||||
</button></th>
|
||||
@@ -130,7 +127,7 @@
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
<p>© 2024 Timelapse. All rights reserved.</p>
|
||||
<p>© 2025 Timelapse. All rights reserved.</p>
|
||||
</footer>
|
||||
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
||||
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
</div>
|
||||
|
||||
<footer class="text-center mt-5 py-3">
|
||||
<p>© 2024 Timelapse. All rights reserved.</p>
|
||||
<p>© 2025 Timelapse. All rights reserved.</p>
|
||||
</footer>
|
||||
|
||||
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
|
||||
|
||||
@@ -110,17 +110,18 @@ document.addEventListener("DOMContentLoaded", async () => {
|
||||
const nameVideo = document.getElementById('name').value;
|
||||
const videoDuration = durationInput.value;
|
||||
|
||||
if (videoDuration > 0) {
|
||||
if (checkVideoPath(data, nameVideo)) {
|
||||
alert('Nouvelle vidéo enregistrée :\nNom : ' + nameVideo +
|
||||
'\nRésolution : ' + document.getElementById('resolution').value +
|
||||
'\nDurée : ' + videoDuration + ' secondes');
|
||||
} else {
|
||||
alert('Le nom : "' + nameVideo + '" est déjà pris ! \n' +
|
||||
'veuillez en trouver un autre');
|
||||
}
|
||||
} else {
|
||||
if (videoDuration <= 0) {
|
||||
alert('La durée de la vidéo doit être supérieur à 0');
|
||||
return 0;
|
||||
}
|
||||
if (checkVideoPath(data, nameVideo) && nameVideo.length>0) {
|
||||
alert('Nouvelle vidéo enregistrée :\nNom : ' + nameVideo +
|
||||
'\nRésolution : ' + document.getElementById('resolution').value +
|
||||
'\nDurée : ' + videoDuration + ' secondes');
|
||||
} else {
|
||||
alert('Le nom : " ' + nameVideo + ' " est déjà pris ou vide ! \n' +
|
||||
'veuillez en trouver un autre');
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -256,5 +257,5 @@ async function generateViewMetric(projectId) {
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
}
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user