Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- document.body.onclick = (event) => {
- const elem = event.target;
- // console.log(elem);
- // if (elem.classList.contains('section-symbol')) {
- console.log(elem);
- navigator.clipboard.writeText(elem.innerHTML)
- .then(() => {
- document.querySelector('.out').innerHTML += 'copy<br>';
- })
- .catch(err => {
- console.log(err);
- });
- // }
- }
- document.body.onclick = (event) => {
- const elem = event.target;
- // console.log(elem);
- // if (elem.classList.contains('section-symbol')) {
- console.log(elem);
- as = elem
- as.style.fontSize = '20px'
- as.style.color = 'red'
- // }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement