Skip to content

Instantly share code, notes, and snippets.

@bernatfortet bernatfortet/grubMarket.js
Last active May 25, 2017

What would you like to do?
Parse grub Market deals
$('.cards__item').each( function( item ){
console.log('item', $(this) );
var disccountStr = $(this).find('.pct-off').text();
var disccount = parseInt( disccountStr.substring(5, disccountStr.length-1) );
if( disccount < 50 ){
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.