0

I am using this jQuery countdown plugin here and it seems pretty straightforward but i must be missing something. Here is my code

$(document).ready(function(){
    var austDay = new Date();
    console.log(austDay.getFullYear() + 1);

    austDay = new Date(austDay.getFullYear() + 1, 1 - 1, 26);
    $('#countdown').countdown({until: austDay, format: 'dHMS'});
});

<div id="countdown"></div>

Here is the page

Matt Elhotiby
  • 43,028
  • 85
  • 218
  • 321

1 Answers1

1

Your configuration was kind of messy. You configured the countdown plugin twice (in effect-ini.js and in a <script> tag in your HTML page). Also, you had syntax errors in your effect-ini.js.

  1. Remove the contents of your <script> tag in your index page (the one that starts with <script type="text/javascript" charset="utf-8">

  2. Replace your effect-ini.js with this: http://pastebin.com/ULtGSAUt

And it should work.

NullUserException
  • 83,810
  • 28
  • 209
  • 234