Last active
May 25, 2022 12:09
-
-
Save dantetesta/236ddd3fbafbd811f7bc4231cf1bdd2e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/*BY: ASK JARVIS + DANTE TESTA */ | |
<script> | |
window.onload = function() { | |
var listaRealizados = document.querySelectorAll('.listarealizados h2'); | |
var eventos = document.querySelector('#eventos'); | |
for (var i = 0; i < listaRealizados.length; i++) { | |
var texto = listaRealizados[i].textContent; | |
for (var j = 0; j < eventos.length; j++) { | |
if (texto == eventos[j].value) { | |
eventos.remove(j); | |
} | |
} | |
} | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment