Stuff
public text v1 · immutable function faq_vote(votingresult)
{
barsize = 50;
percentage = votingresult['percentage']/100;
leftbar = Math.round(barsize*percentage);
rightbar = barsize - leftbar;
barhtml = "<img src='images/bardark.gif' height='10' width='" + leftbar + "'/>";
barhtml += "<img src='images/barlight.gif' height='10' width='" + rightbar + "'/>";
set_html("result_" + votingresult['qid'], barhtml + votingresult['percentage'] + "% said it helped");
}