From ff1a006ded22a219b27a4ad6c0f98fe4ea5f6060 Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Sun, 15 May 2016 10:34:01 -0700 Subject: [PATCH] Complete the painting analogy --- app.css | 2 +- app.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app.css b/app.css index 5b97442..d6fb0ca 100644 --- a/app.css +++ b/app.css @@ -44,7 +44,7 @@ main { width: 35.5px; } -.current { +.brushColor { border: 1px solid #999999; border-radius: 3px; height: 35.5px; diff --git a/app.js b/app.js index 2dd5ce6..0d79c30 100644 --- a/app.js +++ b/app.js @@ -70,13 +70,13 @@ var drawPalette = function() { } var heading = document.createElement('h2'); - heading.textContent = 'CURRENT COLOR >'; + heading.textContent = 'BRUSH COLOR >'; - var current = document.createElement('div'); - current.className = 'current'; + var brushColor = document.createElement('div'); + brushColor.className = 'brushColor'; palette.appendChild(heading); - palette.appendChild(current); + palette.appendChild(brushColor); palette.addEventListener('click', function(event) { if (event.target.className !== 'color') { @@ -84,7 +84,7 @@ var drawPalette = function() { } brush = event.target.style.background; - current.style.background = brush; + brushColor.style.background = brush; }); }