Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
modified background changer
  • Loading branch information
maa17019 committed Mar 21, 2021
1 parent 622c36b commit c5c82be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions week-8/background-changer/index.html
Expand Up @@ -19,6 +19,10 @@
document.body.style.backgroundColor = this.value;
});

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


</script>
</body>
Expand Down

0 comments on commit c5c82be

Please sign in to comment.