Skip to content

Commit

Permalink
fix skip popup time
Browse files Browse the repository at this point in the history
  • Loading branch information
Llavrov committed Sep 23, 2022
1 parent 93c7642 commit def3129
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
height: 8px;
width: 150px;
background: #96CC72;
animation: timer 4s ease-in-out;
animation: timer 8s ease-in-out;
position: absolute;
left: 170px;
}
Expand Down
3 changes: 2 additions & 1 deletion src/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ function drawContinueByAds() {
ctx.font = "32px sans-serif";
ctx.fillText("Continue by watch ads?",canvas.width / 2 - 170,canvas.height / 2);

continueTimeout = setInterval(handleSkip, 4000);
continueTimeout = setInterval(handleSkip, 8000);

watchAdsContainer.style.display = 'flex';
}
Expand Down Expand Up @@ -729,6 +729,7 @@ continueButton.addEventListener('click', async () => {
})

skipButton.addEventListener('click', async () => {
clearTimeoutParam = true;
watchAdsContainer.style.display = 'none';
spareLife = false;
drawGameOver();
Expand Down

0 comments on commit def3129

Please sign in to comment.