Skip to content

Commit

Permalink
adicionadas categorias estreantes à lista padrão. Criado botão pra se…
Browse files Browse the repository at this point in the history
…lecioanr todo o texto
  • Loading branch information
saadbruno committed May 8, 2024
1 parent 2056e18 commit 146e40e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ <h2>Formatador de CSV do TicketSports</h2>
rows="15"
cols="50"
placeholder="Ordem das categorias"
spellcheck="false"
>
Estreantes Masculino
Estreantes Feminino
Estreantes
Iniciante Masculino
Iniciante Feminino
Expand All @@ -60,6 +63,7 @@ <h2>Formatador de CSV do TicketSports</h2>
</textarea
><br />

<button onclick="selectText()">Selecionar</button>
<div id="output"></div>

<script src="parser.js"></script>
Expand Down
6 changes: 6 additions & 0 deletions parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,10 @@ function printData(sortedData) {
}

document.getElementById(`output`).innerHTML = outputHTML;
}

// selecionar output
function selectText() {
let output = document.getElementById(`output`);
window.getSelection().selectAllChildren(output);
}

0 comments on commit 146e40e

Please sign in to comment.