Skip to content

Instantly share code, notes, and snippets.

@Natim
Last active January 3, 2016 11:29
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 Natim/8456937 to your computer and use it in GitHub Desktop.
Save Natim/8456937 to your computer and use it in GitHub Desktop.
Dans @capitainetrain -- Ouvrir tous les billets passé puis :
var value = 0;
var regex = /[+-]?\d+\,\d+/g;
$('.ember-view .price').each(function(){ value += $(this).html().match(regex).map(function(v) { return parseFloat(v.replace(',', '.')); })[0] });
console.log(value);
@Natim
Copy link
Author

Natim commented Jan 16, 2014

À faire dans la console du navigateur.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment