Created
January 9, 2015 12:14
-
-
Save barenko/8249571401078db3f954 to your computer and use it in GitHub Desktop.
Obtém o valor de juros no simulador de habitação (financiamento) da caixa
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
//http://www8.caixa.gov.br/siopiinternet/simulaOperacaoInternet.do?method=enquadrarProdutos | |
list = document.querySelectorAll('.lista_zebrada_sem_sub tbody td:nth-child(3)'); | |
sum = 0; | |
for(var i=0;i<list.length;i++) sum += parseFloat(list[i].textContent.split(' ')[1]); | |
console.log('Valor de juros R$', (sum - 160) * 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
list = document.querySelectorAll('.simple-table:nth-child(5) tbody td:nth-child(3)');