Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Julianooutlook authored Apr 18, 2024
1 parent 5ce85ec commit e7d339e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ document.addEventListener("DOMContentLoaded", function () {
// Event listener para separar a data e hora da expressão e devolver para o input
table.addEventListener("click", function (event) {
if (event.target.tagName === "TR") {
let textoLinha = event.target.textContent.trim();
let textoLinha = event.target.textContent;
let expressao = textoLinha.split("=")[2];

let expressaoSeparada = expressao.indexOf("=");
let expressaoSeparada = expressao.indexOf(" ");
expressao.substring(0, expressaoSeparada);
let expressaoNova = expressao.substring(expressaoSeparada, expressao.length);

Expand Down

0 comments on commit e7d339e

Please sign in to comment.