Commit 2ce332c9 by doszhang

dos

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