Skip to content

Commit

Permalink
change bg colour & number width when the player wins
Browse files Browse the repository at this point in the history
  • Loading branch information
brandond98 committed Nov 14, 2020
1 parent b0817ba commit 0f7a37f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ document.querySelector('.check').addEventListener('click', function () {
document.querySelector('.message').textContent =
'You entered the correct number! 🎉';

document.querySelector('body').style.backgroundColor = '#60b347';

document.querySelector('.number').style.width = '30rem';

// When the guess it too high
} else if (guess > secretNumber) {
if (score > 1) {
Expand Down

0 comments on commit 0f7a37f

Please sign in to comment.