在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:hilios/jQuery.countdown开源软件地址:https://github.com/hilios/jQuery.countdown开源编程语言:JavaScript 100.0%开源软件介绍:The Final CountdownA simple and html agnostic date countdown plugin for jQueryTo get started, check-it out: http://hilios.github.io/jQuery.countdown/ The ultimate countdown plugin designed to fit in any coupon, auction site or product launch. Read our Documentation and follow our Examples to see what suits your particular needs. DownloadClick here to download the latest version If you want to clone the repo always use the files under dist folder, they are optimized for production and development. Install via Bower
Add a <script src="/bower_components/jquery.countdown/dist/jquery.countdown.js"></script> Install via NPM
Require the script: require('jquery-countdown'); Getting started<div id="getting-started"></div>
<script type="text/javascript">
$('#getting-started').countdown('2015/01/01', function(event) {
$(this).html(event.strftime('%w weeks %d days %H:%M:%S'));
});
</script> RequirementsSince version 2.0.0 we only support jQuery above 1.7 (including 2.x and 3.x). For legacy 1.6 support please use the version 1.0.2. DocumentationOur documentation is powered by Jekyll (see ExamplesThere are few ways to get started, from the most simple example to advanced, we support many different countdown styles, see wich one fits your scenario, and if anyone doesn't it's a good starting point to customize your output.
Release notesCurrent version is 2.2.0, to follow our change log please visit the release notes. What's new in 2.2.0?
What's new in 2.1.0?
ContributingThe Final Countdown uses Grunt and Bower with convenient methods for developing the plugin. It's how we compile our code and run tests. To get started install NodeJS, Bower, and then run some Grunt/Bower commands. bower install
npm install
grunt test # Lint code and run test suite
grunt build # Generate the release files (dev, min and zip)
grunt # Watch for updates than test and build This plugin is tested with QUnit, under jQuery 1.7 up to 3.1, Bootstrap 3.0 and RequireJS. The functional tests made against:
Code coverage: ---------------|----------|----------|----------|----------|----------------|
File | % Stmts | % Branch | % Funcs | % Lines |Uncovered Lines |
---------------|----------|----------|----------|----------|----------------|
src/ | 98.4 | 90.63 | 100 | 98.4 | |
countdown.js | 98.4 | 90.63 | 100 | 98.4 | 6,283 |
---------------|----------|----------|----------|----------|----------------|
All files | 98.4 | 90.63 | 100 | 98.4 | |
---------------|----------|----------|----------|----------|----------------| ContributorsThanks for bug reporting and fixes:
LicenseCopyright (c) 2011-2015 Edson Hilios. This is a free software is licensed under the MIT License.
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论