jquery.countdown bug: countup and layout
Example of the bug.
by jlgrall
HTML
<script src="http://keith-wood.name/js/jquery.countdown.js"></script>
<link rel="stylesheet" href="http://keith-wood.name/jquery.countdown.css">
Weeks since the beginning of 2011:<br>
1: <span id="countup1"></span><br>
2: <span id="countup2"></span>
JavaScript
$("#countup1").countdown({since: new Date(2011, 0), layout: '{wn} {wl}'})
// Need to make it in 2 steps, otherwise the value of {wn} is not computed.
// Bug in the countdown ? (currently version 1.5.9)
$("#countup2").countdown({since: new Date(2011, 0), format: 'W'})
.countdown("change", {layout: '{wn} {wl}'});