UNPKG

anipub

Version:

A simple Anime Watching Site using Nodejs

20 lines 614 B
const Profile = document.querySelectorAll(".Profile"); Profile.forEach(value => { value.addEventListener('click', () => { const ID = value.dataset.anime; const epID = 0; console.log(ID) setTimeout(() => { window.location.href = `/AniPlayer/${ID}/0` }, 1000); }) }) const PlayButton = document.querySelectorAll(".watch-button"); PlayButton.forEach(value => { value.addEventListener('click', () => { const ID = value.dataset.animeid; setTimeout(() => { window.location.href = `/AniPlayer/${ID}/0` }, 1000); }) })