A simple jQuery plugin for countdown
JavaScript CSS
Latest commit 6048f98 Feb 3, 2015 @yyengine update readme.md
Permalink
Failed to load latest commit information.
common/css yycountdown all commit Jan 22, 2014
css yycountdown all commit Jan 22, 2014
js Minify JavaScript Feb 3, 2015
README.md update readme.md Feb 3, 2015
sample.html Minify JavaScript Feb 3, 2015

README.md

jQuery.yycountdown

A simple jQuery plugin for countdown

Refer to the jQuery yycountdown website for examples.

Usage

<link rel="stylesheet" href="css/jquery.yycountdown.css">
<script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="js/jquery.yycountdown.min.js"></script>
  $('#timer').yycountdown({
    endDateTime   : '2020/07/24 00:00:00'
  });

  $('#timer2').yycountdown({
    startDateTime : '2020/07/23 23:59:55',
    endDateTime   : '2020/07/24 00:00:00',
    unit          : {d: '', h: '時間', m: '', s: ''},
    complete      : function(_this){
                     _this.find('.yycountdown-box').fadeOut();
                     }
  });
<div id="timer"></div>
<div id="timer2"></div>

Tests

Open sample.html

Download

https://github.com/yyengine/jquery-yycountdown/