A simple jQuery plugin for countdown
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
common/css
css
js
README.md
sample.html

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/