Skip to content

Pressed-Solutions/wp-jquery-countdown

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jQuery Countdown

WP jQuery Countdown is a fork of jQuery Countdown which allows the plugin to be used as a WP shortcode.

Use [wp_jquery_countdown start_time="15:00"] to count down from 15 minutes.

Full list of shortcode attributes:

  • format: string with the time format; defaults to "hh:mm:ss"
  • start_time: string with the starting time for the timer to count down from; example: "5:00"
  • end_time: string with the ending time; example: "16:30:00"
  • digit_width: integer width of the image file (if you use a custom image)
  • digit_height: integer height of the image file (if you use a custom image)
  • image: absolute URL to a custom image file; defaults to img/digits.png in this plugin’s folder

jQuery Countdown is a countdown library with an amazing animation. Take a look at the demonstration.

Download the PSD file here.


#jQuery Plugin Documentation

Basic usage:

  $('#counter').countdown({startTime: "01:12:32:55"});

Complete usage:

  $('#counter').countdown({
    stepTime: 60,
    format: 'hh:mm:ss',
    startTime: "12:32:55",
    digitImages: 6,
    digitWidth: 53,
    digitHeight: 77,
    timerEnd: function() { alert('end!!'); },
    image: "digits.png"
  });

Added continuous countdown

  $('#counter').countdown({
    format: 'sss',
    startTime: "120",
    continuous: true,
    timerEnd: function() { alert('end!!'); },
    image: "digits.png"
  });

Countdown to a Date

Relative to current hour:

  $('#counter').countdown({
    image: "digits.png",
    format: "mm:ss",
    endTime: '50:00'
  });

An absolute date:

  $('#counter').countdown({
    image: "digits.png",
    format: "mm:ss",
    endTime: new Date('07/16/13 05:00:00')
  });

Did I mention that js code weighs just 2.8 KB?

Developers

Demo

Look at the demo.

About

Amazing jQuery Countdown plugin!, Check it out.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 53.8%
  • PHP 34.9%
  • HTML 7.4%
  • CSS 3.9%