This Svelte application is a simple polling tool that allows users to create polls with two answer options. Users can add, vote on, and delete polls. Each poll displays the number of votes and the percentage of votes for each answer option.
To run this Svelte application, you need to have Node.js installed on your system.
Navigate to the 'Add a New Poll' tab in the application. Here, you can enter your question and specify the two answer options. Once you've filled in these details, click 'Add Poll' to create the poll.
To vote, simply choose a poll from the list of active polls and click on your preferred answer option. Your vote will be immediately recorded and reflected in the poll results.
After casting your vote, or when viewing an active poll, you will see a visual representation of the results. This includes both the number of votes and the percentage that each answer option has received.
If you have created a poll and wish to delete it, you can do so by clicking the 'Delete' button located next to your poll. This will remove the poll from the list of active polls.