Commit d5628b2e by doszhang

dos

parent 39e75ec0
...@@ -473,7 +473,6 @@ function countDown(callback) { ...@@ -473,7 +473,6 @@ function countDown(callback) {
clearInterval(timer); clearInterval(timer);
callback(); callback();
} else { } else {
angle = 0; angle = 0;
let numNode = $('.countdown-num').clone(); let numNode = $('.countdown-num').clone();
$('.countdown-num').remove(); $('.countdown-num').remove();
...@@ -482,6 +481,8 @@ function countDown(callback) { ...@@ -482,6 +481,8 @@ function countDown(callback) {
} }
} }
countDownCtx.clearRect(0, 0, countDownCanvas.width, countDownCanvas.height); countDownCtx.clearRect(0, 0, countDownCanvas.width, countDownCanvas.height);
console.log(angle);
countDownCtx.sector(countDownCanvas.width / 2, countDownCanvas.height / 2, countDownCanvas.width / 2, 0, angle).fill(); countDownCtx.sector(countDownCanvas.width / 2, countDownCanvas.height / 2, countDownCanvas.width / 2, 0, angle).fill();
}, 10); }, 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