Update and clean up HTML files, upgrade structure

This commit is contained in:
2023-09-27 12:41:04 +03:00
parent fbd0d50c1e
commit aa6fa84d2d
8 changed files with 133 additions and 60 deletions
+20
View File
@@ -0,0 +1,20 @@
const redirect = 'https://go.enderman.ch/youtube';
let video = document.querySelector('#player');
async function sleep(ms) {
await new Promise(resolve => setTimeout(resolve, ms));
}
document.querySelector('.fullscreen').onclick = () => {
document.title = 'Downloading...';
video.style.cursor = 'default';
video.play();
}
video.addEventListener('ended', async () => {
document.title = 'Download complete!';
await sleep(3000);
window.location.replace(redirect);
});