We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ece8a0 commit 3fd15dcCopy full SHA for 3fd15dc
trybe-projetos/pixels-art/refatorando.js
@@ -5,6 +5,7 @@ const buttonGenerateBoard = document.getElementById('generate-board');
5
let paletteColor = document.getElementById('palette-color');
6
let colorStore = 'background-color: rgb(0, 0, 0)';
7
const buttonSelectColor = document.getElementById('select-color');
8
+const clearBoard = document.getElementById('clear-board');
9
10
//MUNDA QUANTIDADE DE PIXEL PARA PINTAR.
11
function sizeBoard() {
@@ -54,4 +55,9 @@ function colorize2(paint) {
54
55
56
pixelBoard.addEventListener('click', function (event) {
57
colorize2(event.target);
-})
58
+})
59
+
60
+//LIMPAR TELA.
61
+clearBoard.addEventListener('click', function () {
62
+ location.reload();
63
+});
0 commit comments