Skip to content

Commit

Permalink
alteracao final do projeto challenge
Browse files Browse the repository at this point in the history
  • Loading branch information
will787 committed Jun 11, 2023
1 parent fc74d91 commit b60d329
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,20 @@ function descriptografar() {


function copiar() {
var textoCop = document.getElementById('input-texto');
textoCop.select();
document.execCommand('copy');



var textoCop = document.querySelector('#output textarea').value;
navigator.

clipboard.writeText(textoCop);






alert('Seu texto foi copiado');
}
}

function apagarTexto() {
var TextInput = document.querySelector('#input-texto');
Expand Down

0 comments on commit b60d329

Please sign in to comment.