On 2015-03-23 04:02, Alan D. Cabrera wrote:
On Mar 22, 2015, at 3:30 PM, [email protected] wrote:
- obj.innerHTML = "<b>Yes: </b>" + response.yes + "\n"
+ obj.innerHTML = "<i>(" + response.votes + " votes
cast)</i>\n\n"
+ obj.innerHTML += "<b>Yes: </b>" + response.yes +
"\n"
obj.innerHTML += "<b>No: </b>" + response.no
<http://response.no/> + "\n"
obj.innerHTML += "<b>Abstain: </b>" + response.abstain +
"\n"
You may want to consider using handlebars, http://handlebarsjs.com/
<http://handlebarsjs.com/>.
Up to you. :)
meh, this was just a quick hack to get some tallies in ;)
I'll most likely make it snazzier with real DOM work later on :)
With regards,
Daniel.
Regards,
Alan