Advertisement
Mark2020H

Doomsday code

Aug 27th, 2021
1,989
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.69 KB | None | 0 0
  1. <--! Build the doomsday website full digital control to launch Armageddon I have this feeling the have done this already and its slightly to late Anyway here is this code should you feel the urge to end it all within a few days -->
  2.  
  3. PS dont forget to set the date
  4.  
  5. <!doctype html>
  6. <html>
  7. <head>
  8. <meta charset="utf-8">
  9. <title>Untitled Page</title>
  10.  
  11. <style>
  12. div#container
  13. {
  14.    width: 994px;
  15.    position: relative;
  16.    margin: 0 auto 0 auto;
  17.    text-align: left;
  18. }
  19. body
  20. {
  21.    background-color: #000000;
  22.    color: #000000;
  23.    font-family: Arial;
  24.    font-weight: normal;
  25.    font-size: 13px;
  26.    line-height: 1.1875;
  27.    margin: 0;
  28.    text-align: center;
  29. }
  30. a
  31. {
  32.    color: #0000FF;
  33.    text-decoration: underline;
  34. }
  35. a:visited
  36. {
  37.    color: #800080;
  38. }
  39. a:active
  40. {
  41.    color: #FF0000;
  42. }
  43. a:hover
  44. {
  45.    color: #0000FF;
  46.    text-decoration: underline;
  47. }
  48. #Button1
  49. {
  50.    border: 1px solid #2E6DA4;
  51.    border-radius: 20px;
  52.    background-color: #3370B7;
  53.    background-image: none;
  54.    color: #FFFFFF;
  55.    font-family: Arial;
  56.    font-weight: normal;
  57.    font-size: 13px;
  58.    -webkit-appearance: none;
  59.    margin: 0;
  60. }
  61.  
  62. p {
  63.   text-align: center;
  64.   font-size: 60px;
  65.   margin-top: 0px;
  66.   color: white ;
  67. }
  68.  
  69. </style>
  70. <script>
  71. // Set the date we're counting down to
  72.  
  73.  
  74.  
  75.  
  76. var countDownDate = new Date("Aug 27, 2021 07:31:25").getTime();
  77. var flag = true ;
  78.  
  79.  
  80. // Update the count down every 1 second
  81. function TimerStartdemo() {
  82.    
  83. if (flag == true ){
  84.           // Get today's date and time
  85.           var now = new Date().getTime();
  86.            
  87.           // Find the distance between now and the count down date
  88.           var distance = countDownDate - now;
  89.            
  90.           // Time calculations for days, hours, minutes and seconds
  91.           var days = Math.floor(distance / (1000 * 60 * 60 * 24));
  92.           var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
  93.           var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
  94.           var seconds = Math.floor((distance % (1000 * 60)) / 1000);
  95.            
  96.           // Output the result in an element with id="demo"
  97.           document.getElementById("demo").innerHTML = days + "d " + hours + "h "
  98.           + minutes + "m " + seconds + "s ";
  99.            
  100.           // If the count down is over, write some text
  101.           if (distance < 0) {
  102.             flag = false ;
  103.             document.getElementById("demo").innerHTML = "TO LATE BANG,, ADIOS AMIGOS  ";
  104.           }
  105.          
  106.     }
  107. }
  108.  
  109.  
  110. </script>
  111. </head>
  112. <body>
  113. <p id="demo"> Count down to detonation</p> 
  114. <div id="container">
  115. <input type="button" id="Button1" onclick="setInterval(TimerStartdemo, 1000)";return false;" name="" value="Armageddon CountDown" style="position:absolute;left:397px;top:357px;width:200px;height:55px;z-index:0; text-align:center">
  116. </div>
  117. </body>
  118. </html>
  119.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement