-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Decoder - 2. Features | ||
## 2.4. Copy | ||
### copy.js | ||
Copies the encrypted or decrypted output text to clipboard and alerts if copy was successful or failed. | ||
|
||
### Method `copy` | ||
- `copy.handle`: Copies the output text to clipboard using `navigator.clipboard.writeText` or `execCommand("copy")` method. Fails as unsupported feature if neither methods are available in browser. Opens a popup alert with success, error or unsupported message. | ||
- `message`: Variable that contains messages for each result case. | ||
- `copy.init`: Attaches `copy.handle` to copy button on click event. | ||
|
||
<br> | ||
|
||
### [🡨 previous](/docs/en/feature-cryptography.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Decoder - 2. Funcionalidades | ||
## 2.4. Cópia | ||
### copy.js | ||
Copia o texto de saída criptografado ou descriptografado para a área de transferência e alerta se a cópia foi bem-sucedida ou falhou. | ||
|
||
### Método `copy` | ||
- `copy.handle`: Copia o texto de saída para a área de transferência usando o método `navigator.clipboard.writeText` ou `execCommand("copy")`. Falha como recurso não suportado se nenhum dos métodos estiverem disponíveis no navegador. Abre um alerta popup com mensagem de sucesso, erro ou não suportado. | ||
- `message`: Variável que contém mensagens para cada caso de resultado. | ||
- `copy.init`: Anexa `copy.handle` ao botão de cópia no evento de clique. | ||
|
||
<br> | ||
|
||
### [🡨 anterior](/docs/pt/feature-cryptography.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters