3 ms·
In addition to the great overview of voting systems and the policy commentary, the interactive parts -- which they call 'Explorable Explanations [1]' -- are fan
by niftich 10y ago
In addition to the great overview of voting systems and the policy commentary, the interactive parts -- which they call 'Explorable Explanations [1]' -- are fantastic! The code for this one is on Github [2].
[1] http://explorableexplanations.com/ http://explorableexplanations.com/ [2] https://github.com/ncase/ballot https://github.com/ncase/ballot
- YPCrumble 10y agoCould someone explain what `index.js`[1] is doing? It looks like code to figure out whether someone is actually reading the article or not but I'm curious why the various timeouts and scroll listeners, and what they're doing exactly. [1] https://github.com/ncase/ballot/blob/gh-pages/js/index.js https://github.com/ncase/ballot/blob/gh-pages/js/index.js
- niftich 10y agoThat's exactly what it's doing -- it's trying to figure out if your viewport is looking at the content 'above the fold', so that it can show the "splash iframe" [1] while you're looking at it, and stop JS-animating it when you're not. [1] http://ncase.me/ballot/splash/splash.html http://ncase.me/ballot/splash/splash.html