Show HN: Proof-of-Work Vote counter widget
indutny.github.io
indutny.github.io
for (let i = 0; i < 20; i++) (() => {
const elem = document.querySelector('.votewdgt');
let widget = new VoteWidget(elem);
function vote () {
console.log('voted');
widget._state.voted = false;
widget.vote(vote);
}
vote();
})()