Created
September 4, 2017 20:59
-
-
Save Darker/f081d5c9de04cdc31a93406f6b1e5c1a to your computer and use it in GitHub Desktop.
Sablona pro analyzu otevrenych uctu ve fio bance.
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
var halire = 0; | |
var prispevky = 0; | |
document.querySelectorAll("td.amount.amount_value").forEach(function(elm) { | |
const cash = elm.getAttribute("data-value")*1; | |
if(cash>1) prispevky +=cash; | |
else halire+=cash; | |
}); | |
[halire, prispevky] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment