Poll Widget

With OpaVote, you can add a poll widget to your own website. On the right is an example for a poll for Favorite Ice Cream Flavor.

You can create your own poll at OpaVote and use it with a widget. When you create a poll with OpaVote, it will be assigned an election id (eid) that you see in the url for the poll. The eid for the Favorite Ice Cream Flavor poll is 100002, and you can replace that value with the eid of your own poll.

The poll widget allows users to vote, to see detailed poll results, and to download the ballots so that they can count the ballots themselves using OpenSTV.

We are also working on a poll widget for elections (where each voter is sent an email with a secret voting code, and we hope to have it available soon.

To add this widget to your own website, you need to add the following html snippet:

The first line gets the javascript code for the widget and you could put this line in the head of your web page instead of the body.

The next three lines should be placed where you want the poll widget to appear on your web page. The value "100002" is the id for the poll and you can use other ids here as well. The value "400" is the width of the widget and you can adjust this as you like.

The remaining lines provide information for visitors who do not have javascript enabled in their browser.

NOTE: If your site uses HTTPS instead of HTTP, then you can replace each instance of "http://www.opavote.org" with "https://opavote.appspot.com" to also use HTTPS for the widget.