Skip to content

Instantly share code, notes, and snippets.

@vlandham
Created December 4, 2015 21:57
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 vlandham/1f0304442f69b91fc6d5 to your computer and use it in GitHub Desktop.
Save vlandham/1f0304442f69b91fc6d5 to your computer and use it in GitHub Desktop.
// show only proposals you have rated as 'rating'
var rating = 6;
$('.list-item').filter(function() { return +$(this).find('.score').text() !== +rating; }).hide();
// show only proposals you have rated as 'rating' or Higher
var rating = 5;
$('.list-item').filter(function() { return +$(this).find('.score').text() < +rating; }).hide();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment