diff --git a/week-8/background-changer/index.html b/week-8/background-changer/index.html index 29581e7..a9ecaa2 100644 --- a/week-8/background-changer/index.html +++ b/week-8/background-changer/index.html @@ -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; });