Update html/layouts/error-video.ejs

This commit is contained in:
ashley 2025-08-18 00:39:46 +02:00
parent b4623613c7
commit cf30dc2e8f

View File

@ -93,12 +93,12 @@
reloadCount++; reloadCount++;
localStorage.setItem('reloadCount', reloadCount); localStorage.setItem('reloadCount', reloadCount);
let seconds = reloadCount > 5 ? 30 : 10; let seconds = reloadCount > 8 ? 30 : 10;
function updateCountdown() { function updateCountdown() {
const el = document.getElementById('countdown'); const el = document.getElementById('countdown');
if (el) { if (el) {
if (reloadCount > 5) { if (reloadCount > 8) {
document.querySelector('.error p').textContent = "This is taking so long..."; document.querySelector('.error p').textContent = "This is taking so long...";
} }
el.textContent = "Trying again in " + seconds + " seconds..."; el.textContent = "Trying again in " + seconds + " seconds...";
@ -110,7 +110,7 @@
setTimeout(updateCountdown, 1000); setTimeout(updateCountdown, 1000);
} }
} }
window.addEventListener('DOMContentLoaded', updateCountdown); window.addEventListener('DOMContentLoaded', updateCountdown);
</script> </script>
<% } else { %> <% } else { %>
<script> <script>