Commit 2ce332c9 by doszhang

dos

parent 6ba4a585
......@@ -319,13 +319,16 @@ function showCountDownPage() {
function countDown() {
let angle = 360;
let Timer;
let timer;
countDownCtx.fillStyle = bgColor;
countDownCtx.sector(countDownCanvas.width / 2, countDownCanvas.height / 2, countDownCanvas.width / 2, 0, angle).fill();
// setInterval(function () {
// // angle += 3.6;
// }, 10);
timer = setInterval(function () {
angle -= 3.6;
countDownCtx.sector(countDownCanvas.width / 2, countDownCanvas.height / 2, countDownCanvas.width / 2, 0, angle).fill();
if (angle <= 0) {
clearInterval(timer);
}
}, 10);
}
function agreeSuggest() {
......
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