Skip to content

Commit

Permalink
clear button fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
RusFortunat committed Nov 15, 2024
1 parent 4ec6f89 commit aafd5c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/templates/main-view.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ <h3>Draw your number here</h3>
canvas.addEventListener('mouseup', drawend, false);

function resetCanvas(){
ctx.clearRect(0, 0, canvas.width, canvas.height);
ctx.fillRect(0, 0, 280, 280);
context.clearRect(0, 0, canvas.width, canvas.height);
context.fillRect(0, 0, 280, 280);
}
</script>

Expand Down

0 comments on commit aafd5c8

Please sign in to comment.