From 36d0f910f43ba310da485e0968c6e71211d0d832 Mon Sep 17 00:00:00 2001 From: lolabird Date: Fri, 10 Nov 2023 19:23:03 -0700 Subject: [PATCH] Clean up code --- script.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script.js b/script.js index f8e80f1..cfc442d 100644 --- a/script.js +++ b/script.js @@ -41,6 +41,7 @@ function pickBackground() { container.style.backgroundColor = backColorPicker.value; } + function resetGrid() { gridSlider.value = gridSlider.defaultValue; container.style.backgroundColor = "#ffffff"; @@ -51,6 +52,7 @@ function resetGrid() { getGridDimensions(); } + function getGridDimensions() { numGrid = gridSlider.value;