UpvoteJS, a simple voting widget in vanilla JavaScript
0
$begingroup$
I implemented a simple voting widget like the one used on Stack Exchange sites, to use for other purposes (see live on bashoneliners.com), as a reusable package, dubbed UpvoteJS. Here's how it works:
Upvote.create('topic-123');
<link rel="stylesheet" href="https://janosgyerik.github.io/upvotejs/dist/upvotejs/upvotejs.css"> <script src="https://janosgyerik.github.io/upvotejs/dist/upvotejs/upvotejs.vanilla.js"></script> <div id="topic-123" class="upvotejs upvotejs-serverfault"> <a class="upvote upvote-on"></a> <span class="count">101</span> <a class="downvote"></a> <a class="star star-on"></a> &l