Created
August 2, 2012 19:05
-
-
Save vndmtrx/3239797 to your computer and use it in GitHub Desktop.
Cálculo do valor gasto em jogos na Steam
This file contains 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
(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