Created
January 2, 2021 19:39
-
-
Save ShuvoHabib/c63f80337536a0d0b456444551246532 to your computer and use it in GitHub Desktop.
Get Upwork total Lifetime earning: https://www.upwork.com/ab/payments/reports/relationship-values
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 total = 0; | |
document.querySelectorAll('tbody tr td a').forEach(function(el){ | |
var a = el.innerHTML; | |
var b = a.split('$')[1]; | |
var c = b.replace(/,/g, ''); | |
total = (total + parseFloat(c)); | |
}) | |
console.log(total); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment