Javascript

Out of context: Reply #13

  • Started
  • Last post
  • 16 Responses
  • oey0

    a guy in my class used the following but now it's not working anymore. I guess cause of the date.

    <script type="text/javascript" src="js/jquery.countdown.min.js"></script>

    <script>

    $(function(){
    var d = new Date();
    d.setTime(1475223480*1000); // from: 09/30/2016 10:18 am +0200
    $('#countdown').countdown(d,
    function(event) {
    $(this).html(event.strftime('<span>TAGE BIS ZUM DINNER:</span><br>%D:%H:%M:%S'));
    });
    });

    </script>

View thread