Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
jquery-countdown
Advanced tools
To 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.
Click 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.
bower install jquery.countdown
Add a script
to your html:
<script src="/bower_components/jquery.countdown/dist/jquery.countdown.js"></script>
<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>
Since 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.
Our documentation is powered by Jekyll (see gh-page
branch) and hosted in GitHub Pages at http://hilios.github.io/jQuery.countdown/.
There 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.
Current version is 2.1.0, to follow our change log please visit the release notes.
The 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 2.1, Bootstrap 3.0 and RequireJS.
The functional tests made against:
Code coverage:
---------------|----------|----------|----------|----------|----------------|
File | % Stmts | % Branch | % Funcs | % Lines |Uncovered Lines |
---------------|----------|----------|----------|----------|----------------|
src/ | 98.39 | 90.32 | 100 | 98.39 | |
countdown.js | 98.39 | 90.32 | 100 | 98.39 | 6,269 |
---------------|----------|----------|----------|----------|----------------|
All files | 98.39 | 90.32 | 100 | 98.39 | |
---------------|----------|----------|----------|----------|----------------|
Thanks for bug reporting and fixes:
Copyright (c) 2011-2015 Edson Hilios. This is a free software is licensed under the MIT License.
FAQs
The Final Countdown for jQuery
The npm package jquery-countdown receives a total of 8,128 weekly downloads. As such, jquery-countdown popularity was classified as popular.
We found that jquery-countdown demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.