jquery - Javascript advent calendar, trouble with finding date/month -


I'm back with another newbie question! :) I'am trying to use an Advent Calendar I found here:. It has been installed for demo usage, so that the first door can be opened, even if its not December. I got a good job But when I try to check it's own date, even then all the doors are available which I try. Below is the code that checks (I think) the date:

  (function ($) {/ ** calendar action ********* // set Action takes place on the click on // Example with default override: $ ('ul.component-calendar'). PINT_Calendar ({date: 12}); $ .fn.PINT_calendar = function (option) {/ * * Add user settings (pass in function) / method call init) ** / var settings = $ .extend ({// default date: 1, // new date (.) GetDate (); set limit day (this All day of selection First) Month: 12, // New date (). GetMonth () + 1; Which month (ie December) FeedTiming to set: 300, // When you hover on a calendar day, this feed 'Animation Speed ​​Dinslundution: 500 / When you click on a calendar day, this' slide' animation speed}, option); Turn it back. Function (function () {var calendar = $ (this); calendar.find ('li') .Every (function) {if (Settings.month == 12 & amp; SettingsDate> = parseInt ( $ (This) .fund ('day'). Text (), 10)) {$ (this) .addClass ('active');} and {$ (this) .removeClass ('active')}}) ; 2 lines where this date indicates: 1 and 12 months, where I think I would like to remove 2 slashes and date: 1 more month 12, so that those lines are new Start date with (). GetDate () and new date () GetMonth () Well, I tried it and it does not work. Code is originally from 2011, can it be that the script opens all the doors because it is now 2014? I have tried to find something about the year, but nothing can be found, or am I just doing the wrong things? Is there someone who knows what to do to check this code? 

I have not really tried a long time ago.

You have to manually set the date every day, as far as I have read on my Facebook: (

I am currently working on a lot of weeks I'm trying to get / create a calendar and I can not do it for this


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -