Live data from Hacker News

Rick Santorum's Fake Donation Meter

ricksantorum.com

1–10 of 100 posts

Re: Rick Santorum's Fake Donation Meter

#3
This is used to decide what dollar amount to display on the donation meter on this page: https://www.ricksantorum.com/stillneedhelp/

You can infer from the Javascript, but it just displays a dollar amount equal to the number of seconds elapsed since a certain time (edit: whoops, see below), according to your computer clock. If you refresh every second it will go up by $1 each time. If you set your clock back a year, the donation meter will read $-17 million.

Edit: Actually, this isn't quite accurate, it's closer to one dollar per two seconds. 1/(vchange*1000) = 1.7976923076923077 seconds to be exact...

Re: Rick Santorum's Fake Donation Meter

#7
Though I have no idea how much has truly been donated to Rick Santorum, but I would bet that growing thermometer did help contribute to that. Perception is an incredibly strong tool that can be used to elicit reactions like donating "because everyone else seems to be". Sad that they're using such a tacky tactic.

Re: Rick Santorum's Fake Donation Meter

#8
"The right to private variables is not the right to a common good. It’s a me-centered right, that obviously started in the sexual revolution with contraception and obviously quickly evolved to abortion, and now has found its way into the marriage debate. And all those acts that were self-giving acts, self-sacrificing acts, have been polluted by this right to privacy." -- Rick Santorum

Re: Rick Santorum's Fake Donation Meter

#9
post #6

I find it most disturbing that they are polluting the global namespace with all those variables and functions. Don't JavaScript developers these days understand how to properly scope their JavaScript?

I like that bad namespacing is what you find disturbing here.
Post reply on HN