Commit 13e31317 by doszhang

dos

parent 3c5c571a
......@@ -458,8 +458,6 @@ function countDown(callback) {
timer = setInterval(function () {
$('.countdown-num').text(countdown).addClass('animate');
angle = ((angle * 10) + 36) / 10;
countDownCtx.clearRect(0, 0, countDownCanvas.width, countDownCanvas.height);
countDownCtx.sector(countDownCanvas.width / 2, countDownCanvas.height / 2, countDownCanvas.width / 2, 0, angle).fill();
if (angle >= 360) {
countdown--;
if (countdown == 0) {
......@@ -471,6 +469,9 @@ function countDown(callback) {
$('.countdown-num').text(countdown);
}
}
countDownCtx.clearRect(0, 0, countDownCanvas.width, countDownCanvas.height);
countDownCtx.sector(countDownCanvas.width / 2, countDownCanvas.height / 2, countDownCanvas.width / 2, 0, angle).fill();
}, 10);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment