Skip to content

Instantly share code, notes, and snippets.

@vndmtrx
Created August 2, 2012 19:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vndmtrx/3239797 to your computer and use it in GitHub Desktop.
Save vndmtrx/3239797 to your computer and use it in GitHub Desktop.
Cálculo do valor gasto em jogos na Steam
(function() {
var transacoes = document.getElementsByClassName("transactionRowPrice");
total = 0;
for(var i = 0; i < transacoes.length; i++){
var custo = parseFloat(transacoes[i].innerHTML.substr(1));
if(!isNaN(custo)) {
total += custo;
}
}
console.log(total);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment