News for hackers. Stuff that matters.
Re:Live Presidential Forecast by the_duke on Tuesday November 08, 2016 @08:58PM (#12905538)
Haha, awesome find.

Did you just dig through the code or are you a NYT dev?

Re:Live Presidential Forecast by susw on Tuesday November 08, 2016 @09:05PM (#12905577)
Dug through the code. Just inspected the element showing the number to get the class (.widget-info-display-cont) and searched through 'general-main.js' to find where the element is created. A timer that updates the value in the element is found ~100 lines further down.
Re:Live Presidential Forecast by spacehacker on Tuesday November 08, 2016 @09:42PM (#12905718)
What does the require statement do?
Re:Live Presidential Forecast by tedmiston on Tuesday November 08, 2016 @11:49PM (#12906118)
That's how they load the module that does the jittering. So by assigning its .get() method to be a noop instead (return 0), it does nothing (besides pointlessly return zero) when attempting to load.