Last active
February 3, 2016 04:12
-
-
Save sammich/935726f822acbd45ca4d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.vote-positive').each(function (i, el) { | |
var pos = +el.textContent; | |
var neg = +$(el).siblings('.vote-negative').text() | |
var tot = pos + Math.abs(neg); | |
if (tot < 40) { | |
console.log(tot) | |
$(el).closest('li').css('opacity', 0.5) | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment