Put your votes on your website

Works on any site where you can paste HTML.

What you need

  • A server in VoteScript
  • Access to the HTML of your website

Allow your website

Open Publish, then Script tag, and add your domain. The widget stays blank on every other site.

Tip: example.com also covers www.example.com. *.example.com allows all subdomains.

Paste the code

Paste it where the list should appear. The dashboard shows it filled in with your server. Choose what you want to show:

HTML
<script src="https://votescript.voterank.net/embed.js" async defer></script>
<div class="votescript" data-server="your-server"></div>
HTML
<script src="https://votescript.voterank.net/embed.js" async defer></script>
<div class="votescript" data-server="your-server" data-mode="button" data-label="Vote for us"></div>
HTML
<script src="https://votescript.voterank.net/embed.js" async defer></script>
<div class="votescript" data-server="your-server" data-block="top" data-period="month" data-limit="10"></div>
HTML
<script src="https://votescript.voterank.net/embed.js" async defer></script>
<div class="votescript" data-server="your-server" data-block="goal" data-goal="1000"></div>

Look at your page

Reload your website. The list takes the height it needs and follows the visitor’s light or dark mode.

You should now see: Your vote list, inside your own design.
Tip: Force a theme with data-theme="dark" or "light".

Fill in the player

If players log in on your website, pass their name and they can vote at once.

HTML
<div class="votescript" data-server="your-server" data-player="Zezima"></div>

If it does not work

The widget is blank
The domain is not allowed yet. Add it exactly as in the address bar.
Nothing appears at all
Your website may block scripts from other sites. If it has a Content-Security-Policy, allow the VoteScript address in script-src and frame-src.
I want my own design
Add data-style="none" for plain HTML with class names, or use the API.

Next

Give your players one place to vote

Your page is live as soon as you create your server. You can connect the rest step by step.