Server IP : 108.170.25.35 / Your IP : 18.116.69.107 Web Server : Apache/2 System : Linux gains.winzonesoftech.com 4.18.0-513.24.1.el8_9.x86_64 #1 SMP Mon Apr 8 11:23:13 EDT 2024 x86_64 User : softechwinzone ( 1579) PHP Version : 8.1.28 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/softechwinzone/domains/winzonesoftech.in/public_html/images/gogoanime/assets/js/ |
Upload File : |
const countdown = () => { const countDate = new Date("Dec 25, 2022 00:00:00").getTime(); const currentTime = new Date().getTime(); console.log(currentTime); const gap = countDate - currentTime; const millisecond = 1; const second = millisecond * 1000; const minutes = second * 60; const hour = minutes * 60; const day = hour * 24; const textDay = Math.floor(gap / day); const textHour = Math.floor((gap % day) / hour); const textMinutes = Math.floor((gap % hour) / minutes); const textSecond = Math.floor((gap % minutes) / second); const textMillisecond = Math.floor((gap % second) / millisecond); console.log(textHour) console.log(textMillisecond) document.querySelector('.day').innerText = textDay; document.querySelector('.hour').innerText = textHour; document.querySelector('.minutes').innerText = textMinutes; document.querySelector('.seconds').innerText = textSecond; }; setInterval(countdown, 250);