Skip to content

Commit

Permalink
Oh fuck yeah fans
Browse files Browse the repository at this point in the history
  • Loading branch information
Amos Wenger committed Jun 17, 2011
1 parent 9f49778 commit cc08602
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mhd.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ function usePlayer (player) {
var previousFans = parseInt(json.response.fans.total.previous);
var currentFans = parseInt(json.response.fans.total.current);
console.log("previous/current fans? " + previousFans + "/" + currentFans);
$('#ID3').append('<p><strong>Tendency: </strong>' + ((currentFans == previousFans) ? 'holding up' : (currentFans > previousFans ? 'on the rise' : 'falling down')) + '</p>');
$('#ID3').innerHTML += ('<p><strong>Tendency: </strong>' + ((currentFans == previousFans) ? 'holding up' : (currentFans > previousFans ? 'on the rise' : 'falling down')) + '</p>');
$('#artist_span').innerHTML ++ ('<small>(' + json.response.fans.total.total + ' fans)</small>');
}
});
}
Expand Down

0 comments on commit cc08602

Please sign in to comment.