         ,100
         , ->
           newWidth = parseFloat($(element2).find(".progress-bar").attr("aria-valuenow"))
-          console.log newWidth
           $(element2).addClass "in"
           $(element2).find(".progress-bar").width newWidth + "%"
           $(element2).find(".progress-bar").html newWidth + "%"

      ,400
      , ->
        newWidth = parseFloat($(element2).find(".progress-bar").attr("aria-valuenow"))
        console.log newWidth
        $(element1).removeClass "disabled"
        $(element1).addClass "voted"
        $(element2).addClass "in"


@userHasNoVotes = (element) ->
  alert = "<div class='alert alert-danger', style='width:90%;'> You have used all of your votes! Come back tomorrow to vote more.</div>"
  $(element).before alert



