Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
modified background changer app
  • Loading branch information
maa17019 committed Mar 21, 2021
1 parent c5c82be commit 019661f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions week-8/background-changer/index.html
Expand Up @@ -15,11 +15,11 @@

let colorPicker = document.querySelector("input");

colorPicker.addEventListener("change", function() {
colorPicker.addEventListener("change", function() { //change event
document.body.style.backgroundColor = this.value;
});

colorPicker.addEventListener("input", function() {
colorPicker.addEventListener("input", function() { //input event
document.body.style.backgroundColor = this.value;
});

Expand Down

0 comments on commit 019661f

Please sign in to comment.