Difference between revisions of "Team:UCopenhagen/CountDown"

Line 4: Line 4:
  
 
<body onload="calc()">
 
<body onload="calc()">
     <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.20.1/moment.min.js"></script>
+
     <script src="https://cdn.rawgit.com/hilios/jQuery.countdown/22378996/dist/jquery.countdown.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
+
  
 
     <div style="margin: 10px; text-align: center">
 
     <div style="margin: 10px; text-align: center">
Line 14: Line 13:
 
         <br>
 
         <br>
  
         <span id="dayLeft" style="font-size: 40px; font-family: monospace;"></span><p style="font-size: 40px; font-family: monospace; display:inline">.</p>
+
         <span id="timeLeft" style="font-size: 40px; font-family: monospace;"></span><p style="font-size: 40px; font-family: monospace; display:inline">.</p>
  
 
         <br>
 
         <br>
Line 28: Line 27:
 
     </div>
 
     </div>
  
    <script>
+
<script type="text/javascript">
        function calc() {
+
  $("#timeLeft")
            $("#dayLeft").html(moment("04082018 22:59:00", "DDMMYYYY h:mm").toNow());
+
  .countdown("2018/08/05", function(event) {
 
+
    $(this).text(
            setTimeout(calc, 1000);
+
      event.strftime('%D days %H:%M:%S')
        }
+
    );
    </script>
+
  });
 
+
</script>
  
 
</body>
 
</body>

Revision as of 21:07, 4 August 2018

Wiki Freeze in ...



.



✌️✌️✌️