/* Display a countdown timer. Attach it with options like: $('div selector').countdown( {until: new Date(2009, 1 - 1, 1, 0, 0, 0), onExpiry: happyNewYear}); */
(function($) { // Hide scope, no $ conflict
/* Countdown manager. */ function Countdown() { this.regional = []; // Available regional settings, indexed by language code this.regional[''] = { // Default regional settings // The display texts for the counters labels: ['Years', 'Months', 'Weeks', 'Days', 'Hours', 'Minutes', 'Seconds'], // The display texts for the counters if only one labels1: ['Year', 'Month', 'Week', 'Day', 'Hour', 'Minute', 'Second'], compactLabels: ['y', 'm', 'w', 'd'], // The compact texts for the counters whichLabels: null, // Function to determine which labels to use timeSeparator: ':', // Separator for time periods isRTL: false // True for right-to-left languages, false for left-to-right
Can't wait to see when the countdown will begin. Always appreciated to create Great MOMO,imo...