hilios/jQuery.countdown

Throws error "Unknown method: 09/30/2018"

SevHub opened this issue · 0 comments

I tried one of the basic examples. However, every browser throws me this error. I have included all the libraries of course.
The countdown and plugin js are in a local folder.
It happens no matter what I use for the time.

This is the error stack Chrome gives me:

(anonymous) @ jquery.plugin.js:161
each @ jquery-3.3.1.js:354
each @ jquery-3.3.1.js:189
$.fn.(anonymous function) @ jquery.plugin.js:158
(anonymous) @ countdown.html:29

<!doctype html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Test</title>
  </head>
  <body>
      <span id="clock"></span>  

        <!-- Scripts -->
    <script src="https://code.jquery.com/jquery-3.3.1.js" integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60=" crossorigin="anonymous"></script>
    <script src="./js/jquery.plugin.js"></script>
    <script src="./js/jquery.countdown.min.js"></script>
    <script>
    $('#clock').countdown("09/30/2018", function(event) {
      $(this).html(event.strftime('%D days %H:%M:%S'));
    });
  </script>
  </body>

</html>