mirror of
https://github.com/10h30/odin-etch-a-sketch.git
synced 2026-07-18 14:13:21 +09:00
Add check grid size smaller than 100
This commit is contained in:
@@ -3,7 +3,7 @@ const containerWidth = document.querySelector(".container").clientWidth;
|
||||
console.log(containerWidth)
|
||||
|
||||
const button = document.querySelector("button")
|
||||
let size = 0
|
||||
let size = 16
|
||||
button.addEventListener('click', () => {
|
||||
do {
|
||||
let gridSize = prompt("Please enter grid size: ")
|
||||
@@ -36,7 +36,7 @@ function makeGrid(size) {
|
||||
}
|
||||
|
||||
}
|
||||
makeGrid(16)
|
||||
makeGrid(size)
|
||||
|
||||
function getRandomColor() {
|
||||
var letters = '0123456789ABCDEF';
|
||||
|
||||
Reference in New Issue
Block a user