Last active
December 2, 2020 16:48
-
-
Save alexcmgit/11f68d0102ddd8f3c0ef30023aa5ec13 to your computer and use it in GitHub Desktop.
Script que uso pra rodar no console do site portal do aluno pra somar as notas de todos os bimestres e mostrar a nota final (é só um atalho pra não ficar precisando somar as notas na calculadora)
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
try { | |
var badges = document.querySelectorAll("span.badge"); | |
} catch (e) {} | |
badges = document.querySelectorAll("span.badge"); | |
total = 0; | |
badges.forEach((b) => { | |
let v; | |
v = parseFloat(b.innerText); | |
if (!isNaN(v)) { | |
total += v; | |
} | |
}); | |
clear(); | |
console.log(total); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment