SHARE
TWEET

Untitled

a guest Oct 9th, 2019 95 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2.         var countDownDate = new Date("Oct 14, 2019 15:37:25").getTime();
  3.  
  4.         var x = setInterval(function() {
  5.  
  6.           var now = new Date().getTime();
  7.            
  8.           var distance = countDownDate - now;
  9.            
  10.           var days = Math.floor(distance / (1000 * 60 * 60 * 24));
  11.           var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
  12.           var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
  13.           var seconds = Math.floor((distance % (1000 * 60)) / 1000);
  14.            
  15.          
  16.            document.getElementById("days").innerHTML = days + "<span>Days</span>";
  17.            document.getElementById("hours").innerHTML = hours + "<span>Hours</span>";
  18.            document.getElementById("minutes").innerHTML = minutes + "<span>Minutes</span>";
  19.            document.getElementById("seconds").innerHTML = seconds + "<span>Seconds</span>";
  20.            
  21.           document.getElementById("days1").innerHTML = days + "<span>Days</span>";
  22.            document.getElementById("hours1").innerHTML = hours + "<span>Hours</span>";
  23.            document.getElementById("minutes1").innerHTML = minutes + "<span>Minutes</span>";
  24.            document.getElementById("seconds1").innerHTML = seconds + "<span>Seconds</span>";
  25.          
  26.           if (distance < 0) {
  27.             clearInterval(x);
  28.             document.getElementById("demo").innerHTML = "EXPIRED";
  29.           }
  30.  
  31.         }, 1000);
  32.  
  33.         </script>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top