Skip to content

Instantly share code, notes, and snippets.

@roblarsen
Last active February 20, 2019 21:35
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 roblarsen/1d3732bed5e792ecd7001b232d1af035 to your computer and use it in GitHub Desktop.
Save roblarsen/1d3732bed5e792ecd7001b232d1af035 to your computer and use it in GitHub Desktop.
function totals(){
const bids = document.querySelectorAll(".bid-status b");
let total = 0;
for (let bid of bids){
bid = bid.innerText.replace("$","").replace(",","");
total = total + parseInt(bid);
}
return total;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment