Skip to content

Instantly share code, notes, and snippets.

@DominicImhof
Last active March 3, 2017 22:02
Show Gist options
  • Save DominicImhof/7b4909dfa8ee7aeb1e5f08cdd1443824 to your computer and use it in GitHub Desktop.
Save DominicImhof/7b4909dfa8ee7aeb1e5f08cdd1443824 to your computer and use it in GitHub Desktop.
Sum digitec Orders
// Bestellungen => https://www.digitec.ch/de/Order
var sum=0;$('.order-box').map(function(){sum+=parseFloat(this.children[4].innerText.replace('\'',''))});console.log(sum);
// Bestellungsarchiv => https://www.digitec.ch/de/OldDigitecOrder/Search/????????
var sum=0;$('.order-box').map(function(){sum+=parseFloat(this.children[5].innerText.replace('\'',''))});console.log(sum);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment