Skip to content

madman/jquery-simple-countdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jquery-simple-countdown

Simple countdown as JQuery plugin

Usage

  1. Add jquery-simple-countdown.js to your document

  2. Prepare HTML code for countdown

	<span id="countdown" data-time="60"></span>
  1. Init countdown
$(function(){
    $('#countdown').countdown();
});

Examples

  • single element
<span id="countdown" data-time="60"></span>
$('#countdown').countdown();
  • multi elements
<span class="countdown" data-time="60"></span>
<span class="countdown" data-time="120"></span>
<span class="countdown" data-time="180"></span>
<span class="countdown" data-time="240"></span>
$('.countdown').countdown();

Demo

http://devcomm.org.ua/jcountdown

Requirements

  • jQuery