Skip to content

Commit

Permalink
event listener added to copy btn
Browse files Browse the repository at this point in the history
  • Loading branch information
eziraa committed Jan 29, 2024
1 parent 3ade8e4 commit a62a31c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@

const colorHexValue = document.querySelector(".color-hex");
const btnCopy = document.querySelector(".btn-copy");


btnCopy.addEventListener("click", copyToClipBoard);

0 comments on commit a62a31c

Please sign in to comment.