-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(geradores): adiciona páginas gerar cpf e cnpj
- Loading branch information
1 parent
caaf1f0
commit 31509cb
Showing
23 changed files
with
7,888 additions
and
2,608 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 |
---|---|---|
|
@@ -9,7 +9,7 @@ eslint-results.sarif | |
package.lock.json | ||
coverage/ | ||
src/ | ||
data/ | ||
docs/ | ||
test/ | ||
temp/ | ||
rollup.config.js |
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# Gerador-BR <small>1.1.0</small> | ||
|
||
![logo](_media/icon-128.svg) | ||
|
||
# Gerador-BR<!-- <small>1.1.0</small> --> | ||
|
||
> Gerador de Dados Fictícios - Brasil. | ||
<!-- [NPM](https://www.npmjs.com/package/gerador-br) --> | ||
<!-- [GitHub](https://github.com/marcelo-lourenco/gerador-br) --> | ||
[Get Started](comecando.md) | ||
[Get Started](inicio.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
.aside-custom { | ||
display: grid; | ||
background-color: #f0f0f0; | ||
padding: 20px 0; | ||
justify-content: center; | ||
justify-items: center; | ||
align-content: center; | ||
align-items: center; | ||
} | ||
|
||
.pre-custom { | ||
width: 400px; | ||
} | ||
|
||
.code { | ||
padding: 15px !important; | ||
} | ||
|
||
.sidebar .sidebar-nav { | ||
line-height: 25px; | ||
} | ||
|
||
.app-sub-sidebar li:before { | ||
content: ""; | ||
} | ||
|
||
.sidebar li { | ||
margin: 0px; | ||
} | ||
|
||
.sidebar h1 { | ||
font-size: 1.5rem; | ||
font-weight: 300; | ||
text-align: center; | ||
} | ||
|
||
button { | ||
background-color: #0d6efd; | ||
color: white; | ||
padding: 12px 20px; | ||
border: none; | ||
cursor: pointer; | ||
border-radius: 5px; | ||
font-size: 16px; | ||
} | ||
|
||
.input-container { | ||
position: relative; | ||
display: inline-block; | ||
padding: 20px 0 40px 0; | ||
} | ||
|
||
.input-gerador { | ||
width: 250px; | ||
padding: 12px; | ||
padding-right: 30px; | ||
border: 1px solid #ccc; | ||
border-radius: 5px; | ||
font-size: 16px; | ||
margin-top: 20px; | ||
margin-bottom: 20px; | ||
text-align: center; | ||
} | ||
|
||
.icon-copy { | ||
position: absolute; | ||
top: 30%; | ||
right: 10px; | ||
transform: translateY(-50%); | ||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23cccccc' d='M11.4 0a.85.85 0 0 1 .622.273l2.743 3a.884.884 0 0 1 .235.602v9.25a.867.867 0 0 1-.857.875H3.857A.867.867 0 0 1 3 13.125V.875C3 .392 3.384 0 3.857 0zM14 4h-2.6a.4.4 0 0 1-.4-.4V1H4v12h10z'/%3E%3Cpath fill='%23cccccc' d='M3 1H2a1 1 0 0 0-1 1v13a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1v-1h-1v1H2V2h1z'/%3E%3C/svg%3E"); | ||
background-repeat: no-repeat; | ||
background-size: 100% 100%; | ||
cursor: pointer; | ||
} | ||
|
||
.icon-copy:hover { | ||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%230d6efd' d='M11.4 0a.85.85 0 0 1 .622.273l2.743 3a.884.884 0 0 1 .235.602v9.25a.867.867 0 0 1-.857.875H3.857A.867.867 0 0 1 3 13.125V.875C3 .392 3.384 0 3.857 0zM14 4h-2.6a.4.4 0 0 1-.4-.4V1H4v12h10z'/%3E%3Cpath fill='%230d6efd' d='M3 1H2a1 1 0 0 0-1 1v13a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1v-1h-1v1H2V2h1z'/%3E%3C/svg%3E"); | ||
} | ||
|
||
.icon-copy-position { | ||
position: absolute; | ||
top: 50px; | ||
right: 200px; | ||
transform: translateY(-50%); | ||
color: #0d6efd; | ||
} | ||
|
||
.icon { | ||
display: none; | ||
background-repeat: no-repeat; | ||
background-size: 100% 100%; | ||
cursor: pointer; | ||
} | ||
|
||
.icon-16 { | ||
width: 16px; | ||
height: 16px; | ||
} | ||
|
||
.copiado { | ||
position: absolute; | ||
top: -10px; | ||
left: 50%; | ||
transform: translateX(-50%); | ||
background-color: #4CAF50; | ||
color: white; | ||
padding: 7px; | ||
border-radius: 5px; | ||
opacity: 0; | ||
transition: opacity 0.3s; | ||
} | ||
|
||
.mostrar { | ||
opacity: 1; | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
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,17 @@ | ||
function copiarTexto() { | ||
const campoTexto = document.getElementById('vlrGerado'); | ||
campoTexto.select(); | ||
document.execCommand('copy'); | ||
|
||
const mensagem = document.getElementById('msgCopiado'); | ||
mensagem.classList.add('mostrar'); | ||
setTimeout(() => { | ||
mensagem.classList.remove('mostrar'); | ||
}, 1500); | ||
} | ||
|
||
function toggleIcon() { | ||
const campoTexto = document.getElementById('vlrGerado'); | ||
const icon = document.getElementById('iconCopy'); | ||
icon.style.display = campoTexto.value ? 'inline-block' : 'none'; | ||
} |
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 |
---|---|---|
@@ -1,3 +1,34 @@ | ||
* [Home](/) | ||
* [Começando](comecando.md) | ||
* [Geradores](geradores.md) | ||
* [Home](./?id=gerador-de-dados-fictícios-brasi "Gerador-BR - Home") | ||
* [Início](inicio.md "Gerador-BR - Começar") | ||
* [Guia de Utilização](guia-utilizacao.md "Gerador-BR - Guia de Utilização") | ||
|
||
--- | ||
|
||
<h1>Geradores</h1> | ||
|
||
* DOCUMENTOS PF | ||
* [Gerador de CPF](gerar/cpf.md "Gerador de CPF") | ||
* [Gerador de CNH](gerar/cnh.md "Gerador de CNH") | ||
* [Gerador de RG](gerar/rg.md "Gerador de RG") | ||
* [Gerador de CNS](gerar/cns.md "Gerador de CNS") | ||
* [Gerador de PIS](gerar/pis.md "Gerador de PIS") | ||
* [Gerador de Título de Eleitor](gerar/tituloEleitor.md "Gerador de Título de Eleitor") | ||
* [Gerador de Passaporte](gerar/passaporte.md "Gerador de Passaporte") | ||
* DOCUMENTOS PJ | ||
* [Gerador de CNPJ](gerar/cnpj.md "Gerador de CNPJ") | ||
* [Gerador de Inscrição Estadual](gerar/inscricaoEstadual.md "Gerador de Inscrição Estadual") | ||
* BANCOS | ||
* [Gerador de Banco](gerar/banco.md "Gerador de Banco") | ||
* [Gerador de Cartão de Crédito](gerar/cartaoCredito.md "Gerador de Cartão de Crédito") | ||
* [Gerador de Conta Bancária](gerar/contaBancaria.md "Gerador de Conta Bancária") | ||
* CONTATOS | ||
* [Gerador de E-mail](gerar/email.md "Gerador de email") | ||
* [Gerador de CEP](gerar/cep.md "Gerador de CEP") | ||
* [Gerador de Endereço](gerar/endereco.md "Gerador de Endereço") | ||
* VEÍCULOS | ||
* [Gerador de Placa Antiga](gerar/placaAntiga.md "Gerador de Placa Antiga") | ||
* [Gerador de Placa MERCOSUL](gerar/placaMercosul.md "Gerador de Placa MERCOSUL") | ||
* [Gerador de RENAVAM](gerar/renavam.md "Gerador de RENAVAM") | ||
* LOREM IPSUM | ||
* [Gerador de Sentenca](gerar/sentenca.md "Gerador de Sentença") | ||
* [Gerador de Parágrafos](gerar/paragrafo.md "Gerador de Parágrafo") |
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,4 @@ | ||
|
||
- Pacote | ||
- [NPM](https://www.npmjs.com/package/gerador-br) | ||
- [GitHub](https://github.com/marcelo-lourenco/gerador-br) |
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,27 @@ | ||
* [Home](../?id=gerador-de-dados-fictícios-brasil "Gerador-BR - Home") | ||
* DOCUMENTOS PF | ||
* [Gerador de CPF](gerar/cpf.md "Gerador de CPF") | ||
* [Gerador de CNH](gerar/cnh.md "Gerador de CNH") | ||
* [Gerador de RG](gerar/rg.md "Gerador de RG") | ||
* [Gerador de CNS](gerar/cns.md "Gerador de CNS") | ||
* [Gerador de PIS](gerar/pis.md "Gerador de PIS") | ||
* [Gerador de Título de Eleitor](gerar/tituloEleitor.md "Gerador de Título de Eleitor") | ||
* [Gerador de Passaporte](gerar/passaporte.md "Gerador de Passaporte") | ||
* DOCUMENTOS PJ | ||
* [Gerador de CNPJ](gerar/cnpj.md "Gerador de CNPJ") | ||
* [Gerador de Inscrição Estadual](gerar/inscricaoEstadual.md "Gerador de Inscrição Estadual") | ||
* BANCOS | ||
* [Gerador de Banco](gerar/banco.md "Gerador de Banco") | ||
* [Gerador de Cartão de Crédito](gerar/cartaoCredito.md "Gerador de Cartão de Crédito") | ||
* [Gerador de Conta Bancária](gerar/contaBancaria.md "Gerador de Conta Bancária") | ||
* CONTATOS | ||
* [Gerador de E-mail](gerar/email.md "Gerador de email") | ||
* [Gerador de CEP](gerar/cep.md "Gerador de CEP") | ||
* [Gerador de Endereço](gerar/endereco.md "Gerador de Endereço") | ||
* VEÍCULOS | ||
* [Gerador de Placa Antiga](gerar/placaAntiga.md "Gerador de Placa Antiga") | ||
* [Gerador de Placa MERCOSUL](gerar/placaMercosul.md "Gerador de Placa MERCOSUL") | ||
* [Gerador de RENAVAM](gerar/renavam.md "Gerador de RENAVAM") | ||
* LOREM IPSUM | ||
* [Gerador de Sentença](gerar/sentenca.md "Gerador de Sentença") | ||
* [Gerador de Parágrafos](gerar/paragrafo.md "Gerador de Parágrafos") |
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,8 @@ | ||
<div class="input-container"> | ||
<input id="vlrGerado" class="input-gerador" type="text" readonly><br><br> | ||
<i id="iconCopy" class="icon icon-16 icon-copy" onclick="copiarTexto() "></i> | ||
<button onclick="document.getElementById('vlrGerado').value = cnpj(true); toggleIcon();">Gerar CNPJ</button> | ||
<div id="msgCopiado" class="copiado">Copiado!</div> | ||
</div> | ||
|
||
|
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,6 @@ | ||
<div class="input-container"> | ||
<input id="vlrGerado" class="input-gerador" type="text" readonly><br><br> | ||
<i id="iconCopy" class="icon icon-16 icon-copy" onclick="copiarTexto() "></i> | ||
<button onclick="document.getElementById('vlrGerado').value = cpf(true); toggleIcon();">Gerar CPF</button> | ||
<div id="msgCopiado" class="copiado">Copiado!</div> | ||
</div> |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# GERADORES | ||
# Guia de Utilização | ||
|
||
## DOCUMENTOS PF | ||
|
||
|
Oops, something went wrong.