Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: Proof-of-Work Vote counter widget (indutny.github.io)
1 point by indutny on June 23, 2017 | hide | past | favorite | 1 comment



Interesting but can still be spammed, we need both techniques in play. This plus cookie/ip tagging.

    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();
    })()




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: