Add knob and reorder divs
This commit is contained in:
parent
eb053eca0d
commit
8acb8377a6
3 changed files with 68 additions and 35 deletions
|
|
@ -36,7 +36,7 @@ colorPicker.addEventListener("change", changeColor);
|
|||
backColorPicker.addEventListener("input", pickBackground);
|
||||
reset.addEventListener("click", resetGrid);
|
||||
gridSlider.addEventListener("input", getGridDimensions);
|
||||
|
||||
gridSlider.addEventListener("change", getGridDimensions);
|
||||
|
||||
|
||||
function resetGrid() {
|
||||
|
|
@ -69,7 +69,6 @@ function createGrid() {
|
|||
sliderLabel.textContent = numGrid;
|
||||
|
||||
grid.classList.add("grid", "grid-on");
|
||||
//grid.classList.add("grid-on");
|
||||
grid.style.width = gridWidth + '%';
|
||||
grid.style.height = gridWidth + '%';
|
||||
grid.style.opacity = 0.9;
|
||||
|
|
|
|||
Loading…
Reference in a new issue