Skip to content

Commit

Permalink
Integeeeeeeers
Browse files Browse the repository at this point in the history
  • Loading branch information
Amos Wenger committed Jun 17, 2011
1 parent 435a16e commit 14da848
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mhd.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ function usePlayer (player) {
dataType: "json",
success: function(json) {
console.log("success? " + json.success);
var previousFans = json.response.fans.total.previous;
var currentFans = json.response.fans.total.current;
var previousFans = Integer.parseInt(json.response.fans.total.previous);
var currentFans = Integer.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').append('<p><strong>Tendency: </strong>' + ((currentFans == previousFans) ? 'holding up' : (currentFans > previousFans ? 'on the rise' : 'falling down')) + '</p>');
}
});
}
Expand Down

0 comments on commit 14da848

Please sign in to comment.