Your vote list, inside your own website

Paste two lines. Players vote without leaving your site, and the list looks right on any design because your styles cannot reach inside.

What it does

  • Two lines

    One script and one element. Works in any page you can edit.

  • List or button

    Show the list in the page, or a button that opens it on top.

  • Only on your sites

    The widget stays blank on every domain you did not allow.

  • Knows your visitors

    Pass the name of a logged-in player and they do not type it.

  • Or unstyled

    data-style="none" gives plain HTML with class names for your own design.

  • Events

    Your page hears when a vote was confirmed, to show a message.

Copy, paste, done

The snippet in your dashboard is filled in with your server. Add your domain to the allowed websites first.

your page
<script src="https://votescript.voterank.net/embed.js" async defer></script>
<div class="votescript" data-server="your-server"></div>

Blocks for the rest of your site

Top voters, latest votes, vote count, a goal and your vote site logos. Each is one line, and you can use as many as you like.

Events are for display only

Your page can react to a confirmed vote, for example with a thank-you. Rewards are always paid through the game API, so nobody can earn one by calling a function in the browser.

JavaScript
document.querySelector('.votescript')
  .addEventListener('votescript:voted', (e) => {
    console.log(e.detail.site, e.detail.waiting);
  });

Questions

Does it need cookies?
No. Browsers block cookies in embedded pages, so the widget does not use them.
Does it work without JavaScript?
The widget needs JavaScript. The snippet includes a normal link as a fallback, and the PHP website files work without JavaScript.
Why is my widget blank?
Its domain is missing from the allowed websites. Add it under Publish, one domain per line.

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.