Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// first select start and end dates
var sum = 0;
var a = document.querySelectorAll('.bar-wrapper.single > ul > li > span > em');
var l = a.length;
for(var i=0;i<l;i++)
sum = sum + Math.round(a[i].childNodes[0].nodeValue);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.