Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. <br><center>
  2. <p id="licznikLSS" style="
  3. color: #556279;
  4. font: normal 26px Roboto Condensed;
  5. background: rgb(247, 248, 249);
  6. padding: 5px;
  7. border-radius: 5px;
  8. color: #d02e48;
  9. margin-right: 10px;
  10.  
  11. "></p><br>
  12. <p style="font: normal 16px Roboto Condensed; color:#848484;">
  13.  
  14. &nbsp;&nbsp;&nbsp;dni&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;godzin &nbsp;&nbsp;&nbsp;&nbsp;minut &nbsp;&nbsp;&nbsp;&nbsp;sekund</p>
  15. <p style="font: normal 15px Roboto Condensed; color:#848484"><br>pozostało do powrotu<br>legendarnego <span style="color: #d02e48; text-decoration: none"><b><a href="https://ls-stories.pl/topic/17459-powr%C3%B3t-wielkiego-projektu-i-sprawd%C5%BAcie/"><span style="color: #d02e48">eXotic Club</span></a></b></span> oraz..<br>próby pobicia <b>rekordu graczy online</b>!</p>
  16. </center>
  17.  
  18. <script>
  19. var countDownDate = new Date("October 19, 2019 20:00:00").getTime();
  20. var x = setInterval(function() {
  21. var now = new Date().getTime();
  22. var distance = countDownDate - now;
  23. var days = Math.floor(distance / (1000 * 60 * 60 * 24));
  24. var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
  25. var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
  26. var seconds = Math.floor((distance % (1000 * 60)) / 1000);
  27. if(days != 0)
  28. {
  29. document.getElementById("licznikLSS").innerHTML = days + "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" + hours + "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"
  30. + minutes + "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" + seconds + "";
  31. }
  32. else
  33. {
  34. document.getElementById("licznikLSS").innerHTML = "<img style='height: 31px; width: 31px; opacity: 0.9;' src='https://imgur.com/5JKOLtu.jpg'>"+ "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" + hours + "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"
  35. + minutes + "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" + seconds + "";
  36. }
  37.  
  38. if (distance < 0) {
  39. clearInterval(x);
  40. document.getElementById("licznikLSS").innerHTML = " ";
  41. }
  42. }, 1000);
  43. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement