3 ms·
For science, would you svare your code? #wanttolearn
by unixhero 10y ago
For science, would you svare your code?
#wanttolearn
- tauchunfall 10y agoSure. It was quickly written in TypeScript nine hours ago. Google provides updates of the sub-DOM using JSON via AJAX. They use CSS class names like `._Lzm` and `._pRo`; similar to those in the HTML version of Google Mail. http://pastebin.com/50fS83qG http://pastebin.com/50fS83qG Sample output (a few hours ago): [["electoral vote","Trump 150 (120 needed) — Clinton 109 (161 needed)"],["popu lar vote","Trump 49% (35,302,284) — Clinton 47% (33,652,539)"],["progress","47 % reporting"]] Sample output (now; notice that needed electoral votes is changed to total popular votes): [["electoral vote","Trump 276 (57,246,646 votes) — Clinton 218 (56,294,331 votes)"],["popular vote","Trump 48% (57,246,646) — Clinton 47% (56,294,331)"],["progress","88% reporting" ]]