Skip to content

A really lightweight jQuery plugin to create simple an nice countdowns

License

Notifications You must be signed in to change notification settings

iJos/jquery.icountdown.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

jquery.icountdown.js

A really lightweight jQuery plugin to create simple an nice countdowns

Dependencies

This plugin uses the following dependences

Last jQuery Version

Use

Add jquery.icountdown.js, after jQuery to the head of your HTML document. Then call icountdown on document ready.

$(document).ready(function () {

    $('body').icountdown({
		future      : new Date("June 30 2015 21:15:00 GMT+0200"),
        seconds_sel : '.seconds',
        minutes_sel : '.minutes',
        hours_sel   : '.hours',
        days_sel    : '.days'
	});
	
});

PARAMETERS

future

Set the future date, the objective of our countdown. Default new Date("June 30 2018 21:15:00 GMT+0200") future : new Date("June 30 2015 21:15:00 GMT+0200")

seconds_sel

Set the CSS selector of our SECONDS wrapper. Default #seconds seconds_sel : '.seconds'

minutes_sel

Set the CSS selector of our MINUTES wrapper. Default #minutes minutes_sel : '.minutes'

hours_sel

Set the CSS selector of our HOURS wrapper. Default #hours hours_sel : '.hours'

days_sel

Set the CSS selector of our DAYS wrapper. Default #days days_sel : '.days'

Copyright

Copyright (c) 2014 Jose Luis Jimenez | @iJos.

About

A really lightweight jQuery plugin to create simple an nice countdowns

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages