项目作者: renkaixin

项目描述 :
Smallest and easiest-to-use countdown jQuery plugin.
高级语言: JavaScript
项目地址: git://github.com/renkaixin/jquery.countdown.js.git
创建时间: 2017-03-28T02:20:53Z
项目社区:https://github.com/renkaixin/jquery.countdown.js

开源协议:MIT License

下载


jquery.countdown.js

Smallest and easiest countdown jQuery plugin.

Smallest

  1. <!-- Production version only 672B -->
  2. <script src="jquery.countdown.min.js"></script>

Easiest

  1. <p data-countdown="32500886400000">
  2. There's only <i data-dd="1"></i> days and <i data-hh="1"></i> hours and <i data-mm="1"></i> minutes and <i data-ss="1"></i> seconds before 21 century end.
  3. </p>

Advance

  1. <!-- use with callback -->
  2. <p data-countdown="32500886400000" data-cb="foo">
  3. There's only <i data-dd="1"></i> days and <i data-hh="1"></i> hours and <i data-mm="1"></i> minutes and <i data-ss="1"></i> seconds before 21 century end.
  4. </p>
  5. <script>
  6. window.CountdownCallback = {
  7. foo: {
  8. step: function(data) {
  9. console.log('current time is:');
  10. console.log(data);
  11. },
  12. finished: function() {
  13. alert('21 century ended!');
  14. }
  15. }
  16. };
  17. </script>